vendor: 5,865 bytes, lines 1-9
1function wk(e,o){for(var n=0;n<o.length;n++){const a=o[n];if(typeof a!="string"&&!Array.isArray(a)){for(const i in a)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(a,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>a[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))a(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&a(u)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var Ll=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ip={exports:{}},Tl={},sp={exports:{}},Ct={};/** 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 yw;function vk(){if(yw)return Ct;yw=1;var e=Symbol.for("react.element"),o=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),d=Symbol.iterator;function f(M){return M===null||typeof M!="object"?null:(M=d&&M[d]||M["@@iterator"],typeof M=="function"?M:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,S={};function _(M,K,X){this.props=M,this.context=K,this.refs=S,this.updater=X||m}_.prototype.isReactComponent={},_.prototype.setState=function(M,K){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,K,"setState")},_.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function b(){}b.prototype=_.prototype;function x(M,K,X){this.props=M,this.context=K,this.refs=S,this.updater=X||m}var C=x.prototype=new b;C.constructor=x,k(C,_.prototype),C.isPureReactComponent=!0;var N=Array.isArray,j=Object.prototype.hasOwnProperty,L={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function z(M,K,X){var ie,oe={},ee=null,ne=null;if(K!=null)for(ie in K.ref!==void 0&&(ne=K.ref),K.key!==void 0&&(ee=""+K.key),K)j.call(K,ie)&&!P.hasOwnProperty(ie)&&(oe[ie]=K[ie]);var ce=arguments.length-2;if(ce===1)oe.children=X;else if(1<ce){for(var ae=Array(ce),Ae=0;Ae<ce;Ae++)ae[Ae]=arguments[Ae+2];oe.children=ae}if(M&&M.defaultProps)for(ie in ce=M.defaultProps,ce)oe[ie]===void 0&&(oe[ie]=ce[ie]);return{$$typeof:e,type:M,key:ee,ref:ne,props:oe,_owner:L.current}}function H(M,K){return{$$typeof:e,type:M.type,key:K,ref:M.ref,props:M.props,_owner:M._owner}}function F(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function T(M){var K={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(X){return K[X]})}var D=/\/+/g;function B(M,K){return typeof M=="object"&&M!==null&&M.key!=null?T(""+M.key):K.toString(36)}function $(M,K,X,ie,oe){var ee=typeof M;(ee==="undefined"||ee==="boolean")&&(M=null);var ne=!1;if(M===null)ne=!0;else switch(ee){case"string":case"number":ne=!0;break;case"object":switch(M.$$typeof){case e:case o:ne=!0}}if(ne)return ne=M,oe=oe(ne),M=ie===""?"."+B(ne,0):ie,N(oe)?(X="",M!=null&&(X=M.replace(D,"$&/")+"/"),$(oe,K,X,"",function(Ae){return Ae})):oe!=null&&(F(oe)&&(oe=H(oe,X+(!oe.key||ne&&ne.key===oe.key?"":(""+oe.key).replace(D,"$&/")+"/")+M)),K.push(oe)),1;if(ne=0,ie=ie===""?".":ie+":",N(M))for(var ce=0;ce<M.length;ce++){ee=M[ce];var ae=ie+B(ee,ce);ne+=$(ee,K,X,ae,oe)}else if(ae=f(M),typeof ae=="function")for(M=ae.call(M),ce=0;!(ee=M.next()).done;)ee=ee.value,ae=ie+B(ee,ce++),ne+=$(ee,K,X,ae,oe);else if(ee==="object")throw K=String(M),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.");return ne}function W(M,K,X){if(M==null)return M;var ie=[],oe=0;return $(M,ie,"","",function(ee){return K.call(X,ee,oe++)}),ie}function Q(M){if(M._status===-1){var K=M._result;K=K(),K.then(function(X){(M._status===0||M._status===-1)&&(M._status=1,M._result=X)},function(X){(M._status===0||M._status===-1)&&(M._status=2,M._result=X)}),M._status===-1&&(M._status=0,M._result=K)}if(M._status===1)return M._result.default;throw M._result}var te={current:null},Z={transition:null},J={ReactCurrentDispatcher:te,ReactCurrentBatchConfig:Z,ReactCurrentOwner:L};function V(){throw Error("act(...) is not supported in production builds of React.")}return Ct.Children={map:W,forEach:function(M,K,X){W(M,function(){K.apply(this,arguments)},X)},count:function(M){var K=0;return W(M,function(){K++}),K},toArray:function(M){return W(M,function(K){return K})||[]},only:function(M){if(!F(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Ct.Component=_,Ct.Fragment=n,Ct.Profiler=i,Ct.PureComponent=x,Ct.StrictMode=a,Ct.Suspense=h,Ct.__SECRET_INT
vendor: 5,246 bytes, lines 9-25
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,Ct.act=V,Ct.cloneElement=function(M,K,X){if(M==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+M+".");var ie=k({},M.props),oe=M.key,ee=M.ref,ne=M._owner;if(K!=null){if(K.ref!==void 0&&(ee=K.ref,ne=L.current),K.key!==void 0&&(oe=""+K.key),M.type&&M.type.defaultProps)var ce=M.type.defaultProps;for(ae in K)j.call(K,ae)&&!P.hasOwnProperty(ae)&&(ie[ae]=K[ae]===void 0&&ce!==void 0?ce[ae]:K[ae])}var ae=arguments.length-2;if(ae===1)ie.children=X;else if(1<ae){ce=Array(ae);for(var Ae=0;Ae<ae;Ae++)ce[Ae]=arguments[Ae+2];ie.children=ce}return{$$typeof:e,type:M.type,key:oe,ref:ee,props:ie,_owner:ne}},Ct.createContext=function(M){return M={$$typeof:u,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},M.Provider={$$typeof:s,_context:M},M.Consumer=M},Ct.createElement=z,Ct.createFactory=function(M){var K=z.bind(null,M);return K.type=M,K},Ct.createRef=function(){return{current:null}},Ct.forwardRef=function(M){return{$$typeof:p,render:M}},Ct.isValidElement=F,Ct.lazy=function(M){return{$$typeof:w,_payload:{_status:-1,_result:M},_init:Q}},Ct.memo=function(M,K){return{$$typeof:g,type:M,compare:K===void 0?null:K}},Ct.startTransition=function(M){var K=Z.transition;Z.transition={};try{M()}finally{Z.transition=K}},Ct.unstable_act=V,Ct.useCallback=function(M,K){return te.current.useCallback(M,K)},Ct.useContext=function(M){return te.current.useContext(M)},Ct.useDebugValue=function(){},Ct.useDeferredValue=function(M){return te.current.useDeferredValue(M)},Ct.useEffect=function(M,K){return te.current.useEffect(M,K)},Ct.useId=function(){return te.current.useId()},Ct.useImperativeHandle=function(M,K,X){return te.current.useImperativeHandle(M,K,X)},Ct.useInsertionEffect=function(M,K){return te.current.useInsertionEffect(M,K)},Ct.useLayoutEffect=function(M,K){return te.current.useLayoutEffect(M,K)},Ct.useMemo=function(M,K){return te.current.useMemo(M,K)},Ct.useReducer=function(M,K,X){return te.current.useReducer(M,K,X)},Ct.useRef=function(M){return te.current.useRef(M)},Ct.useState=function(M){return te.current.useState(M)},Ct.useSyncExternalStore=function(M,K,X){return te.current.useSyncExternalStore(M,K,X)},Ct.useTransition=function(){return te.current.useTransition()},Ct.version="18.3.1",Ct}var ww;function hd(){return ww||(ww=1,sp.exports=vk()),sp.exports}/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var vw;function bk(){if(vw)return Tl;vw=1;var e=hd(),o=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(p,h,g){var w,d={},f=null,m=null;g!==void 0&&(f=""+g),h.key!==void 0&&(f=""+h.key),h.ref!==void 0&&(m=h.ref);for(w in h)a.call(h,w)&&!s.hasOwnProperty(w)&&(d[w]=h[w]);if(p&&p.defaultProps)for(w in h=p.defaultProps,h)d[w]===void 0&&(d[w]=h[w]);return{$$typeof:o,type:p,key:f,ref:m,props:d,_owner:i.current}}return Tl.Fragment=n,Tl.jsx=u,Tl.jsxs=u,Tl}var bw;function xk(){return bw||(bw=1,ip.exports=bk()),ip.exports}var c=xk(),O=hd();const He=uu(O),Lm=wk({__proto__:null,default:He},[O]);var Ac={},lp={exports:{}},pn={},up={exports:{}},cp={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var xw;function kk(){return xw||(xw=1,(function(e){function o(Z,J){var V=Z.length;Z.push(J);e:for(;0<V;){var M=V-1>>>1,K=Z[M];if(0<i(K,J))Z[M]=J,Z[V]=K,V=M;else break e}}function n(Z){return Z.length===0?null:Z[0]}function a(Z){if(Z.length===0)return null;var J=Z[0],V=Z.pop();if(V!==J){Z[0]=V;e:for(var M=0,K=Z.length,X=K>>>1;M<X;){var ie=2*(M+1)-1,oe=Z[ie],ee=ie+1,ne=Z[ee];if(0>i(oe,V))ee<K&&0>i(ne,oe)?(Z[M]=ne,Z[ee]=V,M=ee):(Z[M]=oe,Z[ie]=V,M=ie);else if(ee<K&&0>i(ne,V))Z[M]=ne,Z[ee]=V,M=ee;else break e}}return J}function i(Z,J){var V=Z.sortIndex-J.sortIndex;return V!==0?V:Z.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,p=u.now();e.unstable_now=function(){return u.now()-p}}var h=[],g=[],w=1,d=null,f=3,m=!1,k=!1,S=!1,_=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(Z){for(var J=n(g);J!==null;){if(J.callback===null)a(g);else if(J.startTime<=Z)a(g),J.sortIndex=J.expirationTime,o(h,J);else break;J=n(g)}}function N(Z){if(S=!1,C(Z),!k)if(n(h)!==null)k=!0,Q(j);else{var J=n(g);J!==null&&te(N,J.startTime-Z)}}function j(Z,J){k=!1,S&&(S=!1,b(z),z=-1),m=!0;var V=f;try{for(C(J),d=n(h);d!==null&&(!(d.expirationTime>J)||Z&&!T());){var M=d.callback;
vendor: 40,051 bytes, lines 25-37
25if(typeof M=="function"){d.callback=null,f=d.priorityLevel;var K=M(d.expirationTime<=J);J=e.unstable_now(),typeof K=="function"?d.callback=K:d===n(h)&&a(h),C(J)}else a(h);d=n(h)}if(d!==null)var X=!0;else{var ie=n(g);ie!==null&&te(N,ie.startTime-J),X=!1}return X}finally{d=null,f=V,m=!1}}var L=!1,P=null,z=-1,H=5,F=-1;function T(){return!(e.unstable_now()-F<H)}function D(){if(P!==null){var Z=e.unstable_now();F=Z;var J=!0;try{J=P(!0,Z)}finally{J?B():(L=!1,P=null)}}else L=!1}var B;if(typeof x=="function")B=function(){x(D)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,W=$.port2;$.port1.onmessage=D,B=function(){W.postMessage(null)}}else B=function(){_(D,0)};function Q(Z){P=Z,L||(L=!0,B())}function te(Z,J){z=_(function(){Z(e.unstable_now())},J)}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(Z){Z.callback=null},e.unstable_continueExecution=function(){k||m||(k=!0,Q(j))},e.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(h)},e.unstable_next=function(Z){switch(f){case 1:case 2:case 3:var J=3;break;default:J=f}var V=f;f=J;try{return Z()}finally{f=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Z,J){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var V=f;f=Z;try{return J()}finally{f=V}},e.unstable_scheduleCallback=function(Z,J,V){var M=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?M+V:M):V=M,Z){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=V+K,Z={id:w++,callback:J,priorityLevel:Z,startTime:V,expirationTime:K,sortIndex:-1},V>M?(Z.sortIndex=V,o(g,Z),n(h)===null&&Z===n(g)&&(S?(b(z),z=-1):S=!0,te(N,V-M))):(Z.sortIndex=K,o(h,Z),k||m||(k=!0,Q(j))),Z},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(Z){var J=f;return function(){var V=f;f=J;try{return Z.apply(this,arguments)}finally{f=V}}}})(cp)),cp}var kw;function Sk(){return kw||(kw=1,up.exports=kk()),up.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 Sw;function _k(){if(Sw)return pn;Sw=1;var e=hd(),o=Sk();function n(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,l=1;l<arguments.length;l++)r+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,i={};function s(t,r){u(t,r),u(t+"Capture",r)}function u(t,r){for(i[t]=r,t=0;t<r.length;t++)a.add(r[t])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,g=/^[: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]*$/,w={},d={};function f(t){return h.call(d,t)?!0:h.call(w,t)?!1:g.test(t)?d[t]=!0:(w[t]=!0,!1)}function m(t,r,l,v){if(l!==null&&l.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return v?!1:l!==null?!l.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function k(t,r,l,v){if(r===null||typeof r>"u"||m(t,r,l,v))return!0;if(v)return!1;if(l!==null)switch(l.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function S(t,r,l,v,A,I,Y){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=v,this.attributeNamespace=A,this.mustUseProperty=l,this.propertyName=t,this.type=r,this.sanitizeURL=I,this.removeEmptyString=Y}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){_[t]=new S(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];_[r]=new S(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){_[t]=new S(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){_[t]=new S(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){_[t]=new S(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){_[t]=new S(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){_[t]=new S(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){_[t]=new S(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){_[t]=new S(t,5,!1,t.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function x(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var r=t.replace(b,x);_[r]=new S(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(b,x);_[r]=new S(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(b,x);_[r]=new S(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){_[t]=new S(t,1,!1,t.toLowerCase(),null,!1,!1)}),_.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){_[t]=new S(t,1,!1,t.toLowerCase(),null,!0,!0)});function C(t,r,l,v){var A=_.hasOwnProperty(r)?_[r]:null;(A!==null?A.type!==0:v||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(k(r,l,A,v)&&(l=null),v||A===null?f(r)&&(l===null?t.removeAttribute(r):t.setAttribute(r,""+l)):A.mustUseProperty?t[A.propertyName]=l===null?A.type===3?!1:"":l:(r=A.attributeName,v=A.attributeNamespace,l===null?t.removeAttribute(r):(A=A.type,l=A===3||A===4&&l===!0?"":""+l,v?t.setAttributeNS(v,r,l):t.setAttribute(r,l))))}var N=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,j=Symbol.for("react.element"),L=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),T=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),te=Symbol.for("react.offscreen"),Z=Symbol.iterator;function J(t){return t===null||typeof t!="object"?null:(t=Z&&t[Z]||t["@@iterator"],typeof t=="function"?t:null)}var V=Object.assign,M;function K(t){if(M===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);M=r&&r[1]||""}return` 34`+M+t}var X=!1;function ie(t,r){if(!t||X)return"";X=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(Oe){var v=Oe}Reflect.construct(t,[],r)}else{try{r.call()}catch(Oe){v=Oe}t.call(r.prototype)}else{try{throw Error()}catch(Oe){v=Oe}t()}}catch(Oe){if(Oe&&v&&typeof Oe.stack=="string"){for(var A=Oe.stack.split(` 35`),I=v.stack.split(` 36`),Y=A.length-1,se=I.length-1;1<=Y&&0<=se&&A[Y]!==I[se];)se--;for(;1<=Y&&0<=se;Y--,se--)if(A[Y]!==I[se]){if(Y!==1||se!==1)do if(Y--,se--,0>se||A[Y]!==I[se]){var pe=` 37`+A[Y].replace(" at new "," at ");return t.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",t.displayName)),pe}while(1<=Y&&0<=se);break}}}finally{X=!1,Error.prepareStackTrace=l}return(t=t?t.displayName||t.name:"")?K(t):""}function oe(t){switch(t.tag){case 5:return K(t.type);case 16:return K("Lazy");case 13:return K("Suspense");case 19:return K("SuspenseList");case 0:case 2:case 15:return t=ie(t.type,!1),t;case 11:return t=ie(t.type.render,!1),t;case 1:return t=ie(t.type,!0),t;default:return""}}function ee(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case P:return"Fragment";case L:return"Portal";case H:return"Profiler";case z:return"StrictMode";case B:return"Suspense";case $:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case T:return(t.displayName||"Context")+".Consumer";case F:return(t._context.displayName||"Context")+".Provider";case D:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case W:return r=t.displayName||null,r!==null?r:ee(t.type)||"Memo";case Q:r=t._payload,t=t._init;try{return ee(t(r))}catch{}}return null}function ne(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ee(r);case 8:return r===z?"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 r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function ce(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ae(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Ae(t){var r=ae(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),v=""+t[r];if(!t.hasOwnProperty(r)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var A=l.get,I=l.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return A.call(this)},set:function(Y){v=""+Y,I.call(this,Y)}}),Object.defineProperty(t,r,{enumerable:l.enumerable}),{getValue:function(){return v},setValue:function(Y){v=""+Y},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Ie(t){t._valueTracker||(t._valueTracker=Ae(t))}function je(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var l=r.getValue(),v="";return t&&(v=ae(t)?t.checked?"true":"false":t.value),t=v,t!==l?(r.setValue(t),!0):!1}function ze(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Xe(t,r){var l=r.checked;return V({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??t._wrapperState.initialChecked})}function ot(t,r){var l=r.defaultValue==null?"":r.defaultValue,v=r.checked!=null?r.checked:r.defaultChecked;l=ce(r.value!=null?r.value:l),t._wrapperState={initialChecked:v,initialValue:l,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function Ot(t,r){r=r.checked,r!=null&&C(t,"checked",r,!1)}function bt(t,r){Ot(t,r);var l=ce(r.value),v=r.type;if(l!=null)v==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+l):t.value!==""+l&&(t.value=""+l);else if(v==="submit"||v==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?ye(t,r.type,l):r.hasOwnProperty("defaultValue")&&ye(t,r.type,ce(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function ue(t,r,l){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var v=r.type;if(!(v!=="submit"&&v!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,l||r===t.value||(t.value=r),t.defaultValue=r}l=t.name,l!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,l!==""&&(t.name=l)}function ye(t,r,l){(r!=="number"||ze(t.ownerDocument)!==t)&&(l==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+l&&(t.defaultValue=""+l))}var Te=Array.isArray;function Re(t,r,l,v){if(t=t.options,r){r={};for(var A=0;A<l.length;A++)r["$"+l[A]]=!0;for(l=0;l<t.length;l++)A=r.hasOwnProperty("$"+t[l].value),t[l].selected!==A&&(t[l].selected=A),A&&v&&(t[l].defaultSelected=!0)}else{for(l=""+ce(l),r=null,A=0;A<t.length;A++){if(t[A].value===l){t[A].selected=!0,v&&(t[A].defaultSelected=!0);return}r!==null||t[A].disabled||(r=t[A])}r!==null&&(r.selected=!0)}}function Pe(t,r){if(r.dangerouslySetInnerHTML!=null)throw Error(n(91));return V({},r,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function at(t,r){var l=r.value;if(l==null){if(l=r.children,r=r.defaultValue,l!=null){if(r!=null)throw Error(n(92));if(Te(l)){if(1<l.length)throw Error(n(93));l=l[0]}r=l}r==null&&(r=""),l=r}t._wrapperState={initialValue:ce(l)}}function ft(t,r){var l=ce(r.value),v=ce(r.defaultValue);l!=null&&(l=""+l,l!==t.value&&(t.value=l),r.defaultValue==null&&t.defaultValue!==l&&(t.defaultValue=l)),v!=null&&(t.defaultValue=""+v)}function dt(t){var r=t.textContent;r===t._wrapperState.initialValue&&r!==""&&r!==null&&(t.value=r)}function Bt(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ht(t,r){return t==null||t==="http://www.w3.org/1999/xhtml"?Bt(r):t==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var At,Cr=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,l,v,A){MSApp.execUnsafeLocalFunction(function(){return t(r,l,v,A)})}:t})(function(t,r){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=r;else{for(At=At||document.createElement("div"),At.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=At.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function vt(t,r){if(r){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=r;return}}t.textContent=r}var Kt={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},hr=["Webkit","ms","Moz","O"];Object.keys(Kt).forEach(function(t){hr.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),Kt[r]=Kt[t]})});function sn(t,r,l){return r==null||typeof r=="boolean"||r===""?"":l||typeof r!="number"||r===0||Kt.hasOwnProperty(t)&&Kt[t]?(""+r).trim():r+"px"}function mo(t,r){t=t.style;for(var l in r)if(r.hasOwnProperty(l)){var v=l.indexOf("--")===0,A=sn(l,r[l],v);l==="float"&&(l="cssFloat"),v?t.setProperty(l,A):t[l]=A}}var Yr=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Je(t,r){if(r){if(Yr[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(n(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(n(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(n(61))}if(r.style!=null&&typeof r.style!="object")throw Error(n(62))}}function mn(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ir=null;function mr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ve=null,Zr=null,Qr=null;function Tn(t){if(t=ml(t)){if(typeof Ve!="function")throw Error(n(280));var r=t.stateNode;r&&(r=Uu(r),Ve(t.stateNode,t.type,r))}}function pt(t){Zr?Qr?Qr.push(t):Qr=[t]:Zr=t}function qt(){if(Zr){var t=Zr,r=Qr;if(Qr=Zr=null,Tn(t),r)for(t=0;t<r.length;t++)Tn(r[t])}}function Jt(t,r){return t(r)}function gr(){}var Xr=!1;function Ut(t,r,l){if(Xr)return t(r,l);Xr=!0;try{return Jt(t,r,l)}finally{Xr=!1,(Zr!==null||Qr!==null)&&(gr(),qt())}}function ur(t,r){var l=t.stateNode;if(l===null)return null;var v=Uu(l);if(v===null)return null;l=v[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(t=t.type,v=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!v;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(n(231,r,typeof l));return l}var gn=!1;if(p)try{var kt={};Object.defineProperty(kt,"passive",{get:function(){gn=!0}}),window.addEventListener("test",kt,kt),window.removeEventListener("test",kt,kt)}catch{gn=!1}function It(t,r,l,v,A,I,Y,se,pe){var Oe=Array.prototype.slice.call(arguments,3);try{r.apply(l,Oe)}catch(Fe){this.onError(Fe)}}var go=!1,Lr=null,yo=!1,va=null,$d={onError:function(t){go=!0,Lr=t}};function wo(t,r,l,v,A,I,Y,se,pe){go=!1,Lr=null,It.apply($d,arguments)}function ba(t,r,l,v,A,I,Y,se,pe){if(wo.apply(this,arguments),go){if(go){var Oe=Lr;go=!1,Lr=null}else throw Error(n(198));yo||(yo=!0,va=Oe)}}function Ur(t){var r=t,l=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(l=r.return),t=r.return;while(t)}return r.tag===3?l:null}function ri(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function wu(t){if(Ur(t)!==t)throw Error(n(188))}function vo(t){var r=t.alternate;if(!r){if(r=Ur(t),r===null)throw Error(n(188));return r!==t?null:t}for(var l=t,v=r;;){var A=l.return;if(A===null)break;var I=A.alternate;if(I===null){if(v=A.return,v!==null){l=v;continue}break}if(A.child===I.child){for(I=A.child;I;){if(I===l)return wu(A),t;if(I===v)return wu(A),r;I=I.sibling}throw Error(n(188))}if(l.return!==v.return)l=A,v=I;else{for(var Y=!1,se=A.child;se;){if(se===l){Y=!0,l=A,v=I;break}if(se===v){Y=!0,v=A,l=I;break}se=se.sibling}if(!Y){for(se=I.child;se;){if(se===l){Y=!0,l=I,v=A;break}if(se===v){Y=!0,v=I,l=A;break}se=se.sibling}if(!Y)throw Error(n(189))}}if(l.alternate!==v)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?t:r}function Ks(t){return t=vo(t),t!==null?bo(t):null}function bo(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var r=bo(t);if(r!==null)return r;t=t.sibling}return null}var Ws=o.unstable_scheduleCallback,$i=o.unstable_cancelCallback,or=o.unstable_shouldYield,Uo=o.unstable_requestPaint,Ft=o.unstable_now,vu=o.unstable_getCurrentPriorityLevel,xo=o.unstable_ImmediatePriority,ni=o.unstable_UserBlockingPriority,xa=o.unstable_NormalPriority,Vs=o.unstable_LowPriority,ko=o.unstable_IdlePriority,oi=null,Jr=null;function bu(t){if(Jr&&typeof Jr.onCommitFiberRoot=="function")try{Jr.onCommitFiberRoot(oi,t,void 0,(t.current.flags&128)===128)}catch{}}var mt=Math.clz32?Math.clz32:Ui,xu=Math.log,ku=Math.LN2;function Ui(t){return t>>>=0,t===0?32:31-(xu(t)/ku|0)|0}var So=64,ai=4194304;function ka(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function ii(t,r){var l=t.pendingLanes;if(l===0)return 0;var v=0,A=t.suspendedLanes,I=t.pingedLanes,Y=l&268435455;if(Y!==0){var se=Y&~A;se!==0?v=ka(se):(I&=Y,I!==0&&(v=ka(I)))}else Y=l&~A,Y!==0?v=ka(Y):I!==0&&(v=ka(I));if(v===0)return 0;if(r!==0&&r!==v&&(r&A)===0&&(A=v&-v,I=r&-r,A>=I||A===16&&(I&4194240)!==0))return r;if((v&4)!==0&&(v|=l&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=v;0<r;)l=31-mt(r),A=1<<l,v|=t[l],r&=~A;return v}function $t(t,r){switch(t){case 1:case 2:case 4:return r+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 r+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 si(t,r){for(var l=t.suspendedLanes,v=t.pingedLanes,A=t.expirationTimes,I=t.pendingLanes;0<I;){var Y=31-mt(I),se=1<<Y,pe=A[Y];pe===-1?((se&l)===0||(se&v)!==0)&&(A[Y]=$t(se,r)):pe<=r&&(t.expiredLanes|=se),I&=~se}}function Ho(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Ko(){var t=So;return So<<=1,(So&4194240)===0&&(So=64),t}function li(t){for(var r=[],l=0;31>l;l++)r.push(t);return r}function Wo(t,r,l){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-mt(r),t[r]=l}function Hi(t,r){var l=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var v=t.eventTimes;for(t=t.expirationTimes;0<l;){var A=31-mt(l),I=1<<A;r[A]=0,v[A]=-1,t[A]=-1,l&=~I}}function Ki(t,r){var l=t.entangledLanes|=r;for(t=t.entanglements;l;){var v=31-mt(l),A=1<<v;A&r|t[v]&r&&(t[v]|=r),l&=~A}}var Pt=0;function Gs(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Su,jt,Ys,_u,Nu,Fr=!1,Kn=[],yn=null,zr=null,Wn=null,Sa=new Map,er=new Map,br=[],ui="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 _a(t,r){switch(t){case"focusin":case"focusout":yn=null;break;case"dragenter":case"dragleave":zr=null;break;case"mouseover":case"mouseout":Wn=null;break;case"pointerover":case"pointerout":Sa.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":er.delete(r.pointerId)}}function Vo(t,r,l,v,A,I){return t===null||t.nativeEvent!==I?(t={blockedOn:r,domEventName:l,eventSystemFlags:v,nativeEvent:I,targetContainers:[A]},r!==null&&(r=ml(r),r!==null&&jt(r)),t):(t.eventSystemFlags|=v,r=t.targetContainers,A!==null&&r.indexOf(A)===-1&&r.push(A),t)}function _o(t,r,l,v,A){switch(r){case"focusin":return yn=Vo(yn,t,r,l,v,A),!0;case"dragenter":return zr=Vo(zr,t,r,l,v,A),!0;case"mouseover":return Wn=Vo(Wn,t,r,l,v,A),!0;case"pointerover":var I=A.pointerId;return Sa.set(I,Vo(Sa.get(I)||null,t,r,l,v,A)),!0;case"gotpointercapture":return I=A.pointerId,er.set(I,Vo(er.get(I)||null,t,r,l,v,A)),!0}return!1}function Eu(t){var r=gi(t.target);if(r!==null){var l=Ur(r);if(l!==null){if(r=l.tag,r===13){if(r=ri(l),r!==null){t.blockedOn=r,Nu(t.priority,function(){Ys(l)});return}}else if(r===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function en(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var l=Na(t.domEventName,t.eventSystemFlags,r[0],t.nativeEvent);if(l===null){l=t.nativeEvent;var v=new l.constructor(l.type,l);Ir=v,l.target.dispatchEvent(v),Ir=null}else return r=ml(l),r!==null&&jt(r),t.blockedOn=l,!1;r.shift()}return!0}function Wi(t,r,l){en(t)&&l.delete(r)}function Cu(){Fr=!1,yn!==null&&en(yn)&&(yn=null),zr!==null&&en(zr)&&(zr=null),Wn!==null&&en(Wn)&&(Wn=null),Sa.forEach(Wi),er.forEach(Wi)}function Go(t,r){t.blockedOn===r&&(t.blockedOn=null,Fr||(Fr=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Cu)))}function Vn(t){function r(A){return Go(A,t)}if(0<Kn.length){Go(Kn[0],t);for(var l=1;l<Kn.length;l++){var v=Kn[l];v.blockedOn===t&&(v.blockedOn=null)}}for(yn!==null&&Go(yn,t),zr!==null&&Go(zr,t),Wn!==null&&Go(Wn,t),Sa.forEach(r),er.forEach(r),l=0;l<br.length;l++)v=br[l],v.blockedOn===t&&(v.blockedOn=null);for(;0<br.length&&(l=br[0],l.blockedOn===null);)Eu(l),l.blockedOn===null&&br.shift()}var No=N.ReactCurrentBatchConfig,ci=!0;function Ud(t,r,l,v){var A=Pt,I=No.transition;No.transition=null;try{Pt=1,Zs(t,r,l,v)}finally{Pt=A,No.transition=I}}function di(t,r,l,v){var A=Pt,I=No.transition;No.transition=null;try{Pt=4,Zs(t,r,l,v)}finally{Pt=A,No.transition=I}}function Zs(t,r,l,v){if(ci){var A=Na(t,r,l,v);if(A===null)Yd(t,r,v,Vi,l),_a(t,v);else if(_o(A,t,r,l,v))v.stopPropagation();else if(_a(t,v),r&4&&-1<ui.indexOf(t)){for(;A!==null;){var I=ml(A);if(I!==null&&Su(I),I=Na(t,r,l,v),I===null&&Yd(t,r,v,Vi,l),I===A)break;A=I}A!==null&&v.stopPropagation()}else Yd(t,r,v,null,l)}}var Vi=null;function Na(t,r,l,v){if(Vi=null,t=mr(v),t=gi(t),t!==null)if(r=Ur(t),r===null)t=null;else if(l=r.tag,l===13){if(t=ri(r),t!==null)return t;t=null}else if(l===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null);return Vi=t,null}function fi(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(vu()){case xo:return 1;case ni:return 4;case xa:case Vs:return 16;case ko:return 536870912;default:return 16}default:return 16}}var On=null,Qs=null,Gi=null;function Au(){if(Gi)return Gi;var t,r=Qs,l=r.length,v,A="value"in On?On.value:On.textContent,I=A.length;for(t=0;t<l&&r[t]===A[t];t++);var Y=l-t;for(v=1;v<=Y&&r[l-v]===A[I-v];v++);return Gi=A.slice(t,1<v?1-v:void 0)}function Ea(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Ca(){return!0}function Xs(){return!1}function Ar(t){function r(l,v,A,I,Y){this._reactName=l,this._targetInst=A,this.type=v,this.nativeEvent=I,this.target=Y,this.currentTarget=null;for(var se in t)t.hasOwnProperty(se)&&(l=t[se],this[se]=l?l(I):I[se]);return this.isDefaultPrevented=(I.defaultPrevented!=null?I.defaultPrevented:I.returnValue===!1)?Ca:Xs,this.isPropagationStopped=Xs,this}return V(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ca)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ca)},persist:function(){},isPersistent:Ca}),r}var Gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Aa=Ar(Gn),ja=V({},Gn,{view:0,detail:0}),Hd=Ar(ja),Eo,pi,Yo,Ta=V({},ja,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:es,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Yo&&(Yo&&t.type==="mousemove"?(Eo=t.screenX-Yo.screenX,pi=t.screenY-Yo.screenY):pi=Eo=0,Yo=t),Eo)},movementY:function(t){return"movementY"in t?t.movementY:pi}}),Yi=Ar(Ta),jr=V({},Ta,{dataTransfer:0}),hi=Ar(jr),mi=V({},ja,{relatedTarget:0}),Zi=Ar(mi),Qi=V({},Gn,{animationName:0,elapsedTime:0,pseudoElement:0}),ju=Ar(Qi),Tu=V({},Gn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Xi=Ar(Tu),Js=V({},Gn,{data:0}),Co=Ar(Js),el={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tl={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"},Ji={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rl(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=Ji[t])?!!r[t]:!1}function es(){return rl}var Kd=V({},ja,{key:function(t){if(t.key){var r=el[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Ea(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?tl[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:es,charCode:function(t){return t.type==="keypress"?Ea(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ea(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),nl=Ar(Kd),ts=V({},Ta,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ou=Ar(ts),ol=V({},ja,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:es}),al=Ar(ol),Wd=V({},Gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pu=Ar(Wd),Vd=V({},Ta,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Ru=Ar(Vd),Du=[9,13,27,32],il=p&&"CompositionEvent"in window,Oa=null;p&&"documentMode"in document&&(Oa=document.documentMode);var sl=p&&"TextEvent"in window&&!Oa,ll=p&&(!il||Oa&&8<Oa&&11>=Oa),ul=" ",Mu=!1;function Iu(t,r){switch(t){case"keyup":return Du.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lu(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Yn=!1;function Zn(t,r){switch(t){case"compositionend":return Lu(r);case"keypress":return r.which!==32?null:(Mu=!0,ul);case"textInput":return t=r.data,t===ul&&Mu?null:t;default:return null}}function ar(t,r){if(Yn)return t==="compositionend"||!il&&Iu(t,r)?(t=Au(),Gi=Qs=On=null,Yn=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return ll&&r.locale!=="ko"?null:r.data;default:return null}}var rs={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 tn(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!rs[t.type]:r==="textarea"}function Fu(t,r,l,v){pt(v),r=Bu(r,"onChange"),0<r.length&&(l=new Aa("onChange","change",null,l,v),t.push({event:l,listeners:r}))}var Zo=null,Pa=null;function Qo(t){Rg(t,0)}function Ra(t){var r=is(t);if(je(r))return t}function Da(t,r){if(t==="change")return r}var Qn=!1;if(p){var ns;if(p){var y="oninput"in document;if(!y){var E=document.createElement("div");E.setAttribute("oninput","return;"),y=typeof E.oninput=="function"}ns=y}else ns=!1;Qn=ns&&(!document.documentMode||9<document.documentMode)}function R(){Zo&&(Zo.detachEvent("onpropertychange",q),Pa=Zo=null)}function q(t){if(t.propertyName==="value"&&Ra(Pa)){var r=[];Fu(r,Pa,t,mr(t)),Ut(Qo,r)}}function U(t,r,l){t==="focusin"?(R(),Zo=r,Pa=l,Zo.attachEvent("onpropertychange",q)):t==="focusout"&&R()}function G(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ra(Pa)}function re(t,r){if(t==="click")return Ra(r)}function le(t,r){if(t==="input"||t==="change")return Ra(r)}function he(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var fe=typeof Object.is=="function"?Object.is:he;function xe(t,r){if(fe(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var l=Object.keys(t),v=Object.keys(r);if(l.length!==v.length)return!1;for(v=0;v<l.length;v++){var A=l[v];if(!h.call(r,A)||!fe(t[A],r[A]))return!1}return!0}function de(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Se(t,r){var l=de(t);t=0;for(var v;l;){if(l.nodeType===3){if(v=t+l.textContent.length,t<=r&&v>=r)return{node:l,offset:r-t};t=v}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=de(l)}}function me(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?me(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function be(){for(var t=window,r=ze();r instanceof t.HTMLIFrameElement;){try{var l=typeof r.contentWindow.location.href=="string"}catch{l=!1}if(l)t=r.contentWindow;else break;r=ze(t.document)}return r}function ve(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function ke(t){var r=be(),l=t.focusedElem,v=t.selectionRange;if(r!==l&&l&&l.ownerDocument&&me(l.ownerDocument.documentElement,l)){if(v!==null&&ve(l)){if(r=v.start,t=v.end,t===void 0&&(t=r),"selectionStart"in l)l.selectionStart=r,l.selectionEnd=Math.min(t,l.value.length);else if(t=(r=l.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var A=l.textContent.length,I=Math.min(v.start,A);v=v.end===void 0?I:Math.min(v.end,A),!t.extend&&I>v&&(A=v,v=I,I=A),A=Se(l,I);var Y=Se(l,v);A&&Y&&(t.rangeCount!==1||t.anchorNode!==A.node||t.anchorOffset!==A.offset||t.focusNode!==Y.node||t.focusOffset!==Y.offset)&&(r=r.createRange(),r.setStart(A.node,A.offset),t.removeAllRanges(),I>v?(t.addRange(r),t.extend(Y.node,Y.offset)):(r.setEnd(Y.node,Y.offset),t.addRange(r)))}}for(r=[],t=l;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<r.length;l++)t=r[l],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var _e=p&&"documentMode"in document&&11>=document.documentMode,Ee=null,De=null,Me=null,$e=!1;function Ge(t,r,l){var v=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;$e||Ee==null||Ee!==ze(v)||(v=Ee,"selectionStart"in v&&ve(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Me&&xe(Me,v)||(Me=v,v=Bu(De,"onSelect"),0<v.length&&(r=new Aa("onSelect","select",null,r,l),t.push({event:r,listeners:v}),r.target=Ee)))}function Be(t,r){var l={};return l[t.toLowerCase()]=r.toLowerCase(),l["Webkit"+t]="webkit"+r,l["Moz"+t]="moz"+r,l}var Ue={animationend:Be("Animation","AnimationEnd"),animationiteration:Be("Animation","AnimationIteration"),animationstart:Be("Animation","AnimationStart"),transitionend:Be("Transition","TransitionEnd")},Ye={},We={};p&&(We=document.createElement("div").style,"AnimationEvent"in window||(delete Ue.animationend.animation,delete Ue.animationiteration.animation,delete Ue.animationstart.animation),"TransitionEvent"in window||delete Ue.transitionend.transition);function Ze(t){if(Ye[t])return Ye[t];if(!Ue[t])return t;var r=Ue[t],l;for(l in r)if(r.hasOwnProperty(l)&&l in We)return Ye[t]=r[l];return t}var wt=Ze("animationend"),xt=Ze("animationiteration"),St=Ze("animationstart"),Hr=Ze("transitionend"),yt=new Map,xr="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 Vt(t,r){yt.set(t,r),s(r,[t])}for(var Ma=0;Ma<xr.length;Ma++){var kr=xr[Ma],Xo=kr.toLowerCase(),cl=kr[0].toUpperCase()+kr.slice(1);Vt(Xo,"on"+cl)}Vt(wt,"onAnimationEnd"),Vt(xt,"onAnimationIteration"),Vt(St,"onAnimationStart"),Vt("dblclick","onDoubleClick"),Vt("focusin","onFocus"),Vt("focusout","onBlur"),Vt(Hr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focu
37sin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dl="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(" "),j2=new Set("cancel close invalid load scroll toggle".split(" ").concat(dl));function Pg(t,r,l){var v=t.type||"unknown-event";t.currentTarget=l,ba(v,r,void 0,t),t.currentTarget=null}function Rg(t,r){r=(r&4)!==0;for(var l=0;l<t.length;l++){var v=t[l],A=v.event;v=v.listeners;e:{var I=void 0;if(r)for(var Y=v.length-1;0<=Y;Y--){var se=v[Y],pe=se.instance,Oe=se.currentTarget;if(se=se.listener,pe!==I&&A.isPropagationStopped())break e;Pg(A,se,Oe),I=pe}else for(Y=0;Y<v.length;Y++){if(se=v[Y],pe=se.instance,Oe=se.currentTarget,se=se.listener,pe!==I&&A.isPropagationStopped())break e;Pg(A,se,Oe),I=pe}}}if(yo)throw t=va,yo=!1,va=null,t}function Gt(t,r){var l=r[tf];l===void 0&&(l=r[tf]=new Set);var v=t+"__bubble";l.has(v)||(Dg(r,t,2,!1),l.add(v))}function Gd(t,r,l){var v=0;r&&(v|=4),Dg(l,t,v,r)}var zu="_reactListening"+Math.random().toString(36).slice(2);function fl(t){if(!t[zu]){t[zu]=!0,a.forEach(function(l){l!=="selectionchange"&&(j2.has(l)||Gd(l,!1,t),Gd(l,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[zu]||(r[zu]=!0,Gd("selectionchange",!1,r))}}function Dg(t,r,l,v){switch(fi(r)){case 1:var A=Ud;break;case 4:A=di;break;default:A=Zs}l=A.bind(null,r,l,t),A=void 0,!gn||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(A=!0),v?A!==void 0?t.addEventListener(r,l,{capture:!0,passive:A}):t.addEventListener(r,l,!0):A!==void 0?t.addEventListener(r,l,{passive:A}):t.addEventListener(r,l,!1)}function Yd(t,r,l,v,A){var I=v;if((r&1)===0&&(r&2)===0&&v!==null)e:for(;;){if(v===null)return;var Y=v.tag;if(Y===3||Y===4){var se=v.stateNode.containerInfo;if(se===A||se.nodeType===8&&se.parentNode===A)break;if(Y===4)for(Y=v.return;Y!==null;){var pe=Y.tag;if((pe===3||pe===4)&&(pe=Y.stateNode.containerInfo,pe===A||pe.nodeType===8&&pe.parentNode===A))return;Y=Y.return}for(;se!==null;){if(Y=gi(se),Y===null)return;if(pe=Y.tag,pe===5||pe===6){v=I=Y;continue e}se=se.parentNode}}v=v.return}Ut(function(){var Oe=I,Fe=mr(l),qe=[];e:{var Le=yt.get(t);if(Le!==void 0){var Qe=Aa,rt=t;switch(t){case"keypress":if(Ea(l)===0)break e;case"keydown":case"keyup":Qe=nl;break;case"focusin":rt="focus",Qe=Zi;break;case"focusout":rt="blur",Qe=Zi;break;case"beforeblur":case"afterblur":Qe=Zi;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Qe=Yi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Qe=hi;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Qe=al;break;case wt:case xt:case St:Qe=ju;break;case Hr:Qe=Pu;break;case"scroll":Qe=Hd;break;case"wheel":Qe=Ru;break;case"copy":case"cut":case"paste":Qe=Xi;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Qe=Ou}var nt=(r&4)!==0,fr=!nt&&t==="scroll",Ne=nt?Le!==null?Le+"Capture":null:Le;nt=[];for(var we=Oe,Ce;we!==null;){Ce=we;var Ke=Ce.stateNode;if(Ce.tag===5&&Ke!==null&&(Ce=Ke,Ne!==null&&(Ke=ur(we,Ne),Ke!=null&&nt.push(pl(we,Ke,Ce)))),fr)break;we=we.return}0<nt.length&&(Le=new Qe(Le,rt,null,l,Fe),qe.push({event:Le,listeners:nt}))}}if((r&7)===0){e:{if(Le=t==="mouseover"||t==="pointerover",Qe=t==="mouseout"||t==="pointerout",Le&&l!==Ir&&(rt=l.relatedTarget||l.fromElement)&&(gi(rt)||rt[Jo]))break e;if((Qe||Le)&&(Le=Fe.window===Fe?Fe:(Le=Fe.ownerDocument)?Le.defaultView||Le.parentWindow:window,Qe?(rt=l.relatedTarget||l.toElement,Qe=Oe,rt=rt?gi(rt):null,rt!==null&&(fr=Ur(rt),rt!==fr||rt.tag!==5&&rt.tag!==6)&&(rt=null)):(Qe=null,rt=Oe),Qe!==rt)){if(nt=Yi,Ke="onMouseLeave",Ne="onMouseEnter",we="mouse",(t==="pointerout"||t==="pointerover")&&(nt=Ou,Ke="onPointerLeave",Ne="onPointerEnter",we="pointer"),fr=Qe==null?Le:is(Qe),Ce=rt==null?Le:is(rt),Le=new nt(Ke,we+"leave",Qe,l,Fe),Le.target=fr,Le.relatedTarget=Ce,Ke=null,gi(Fe)===Oe&&(nt=new nt(Ne,we+"enter",rt,l,Fe),nt.target=Ce,nt.relatedTarget=fr,Ke=nt),fr=Ke,Qe&&rt)t:{for(nt=Qe,Ne=rt,we=0,Ce=nt;Ce;Ce=os(Ce))we++;for(Ce=0,Ke=Ne;Ke;
vendor: 4,466 bytes, lines 37-38
37Ke=os(Ke))Ce++;for(;0<we-Ce;)nt=os(nt),we--;for(;0<Ce-we;)Ne=os(Ne),Ce--;for(;we--;){if(nt===Ne||Ne!==null&&nt===Ne.alternate)break t;nt=os(nt),Ne=os(Ne)}nt=null}else nt=null;Qe!==null&&Mg(qe,Le,Qe,nt,!1),rt!==null&&fr!==null&&Mg(qe,fr,rt,nt,!0)}}e:{if(Le=Oe?is(Oe):window,Qe=Le.nodeName&&Le.nodeName.toLowerCase(),Qe==="select"||Qe==="input"&&Le.type==="file")var it=Da;else if(tn(Le))if(Qn)it=le;else{it=G;var ut=U}else(Qe=Le.nodeName)&&Qe.toLowerCase()==="input"&&(Le.type==="checkbox"||Le.type==="radio")&&(it=re);if(it&&(it=it(t,Oe))){Fu(qe,it,l,Fe);break e}ut&&ut(t,Le,Oe),t==="focusout"&&(ut=Le._wrapperState)&&ut.controlled&&Le.type==="number"&&ye(Le,"number",Le.value)}switch(ut=Oe?is(Oe):window,t){case"focusin":(tn(ut)||ut.contentEditable==="true")&&(Ee=ut,De=Oe,Me=null);break;case"focusout":Me=De=Ee=null;break;case"mousedown":$e=!0;break;case"contextmenu":case"mouseup":case"dragend":$e=!1,Ge(qe,l,Fe);break;case"selectionchange":if(_e)break;case"keydown":case"keyup":Ge(qe,l,Fe)}var ct;if(il)e:{switch(t){case"compositionstart":var gt="onCompositionStart";break e;case"compositionend":gt="onCompositionEnd";break e;case"compositionupdate":gt="onCompositionUpdate";break e}gt=void 0}else Yn?Iu(t,l)&&(gt="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(gt="onCompositionStart");gt&&(ll&&l.locale!=="ko"&&(Yn||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&Yn&&(ct=Au()):(On=Fe,Qs="value"in On?On.value:On.textContent,Yn=!0)),ut=Bu(Oe,gt),0<ut.length&&(gt=new Co(gt,t,null,l,Fe),qe.push({event:gt,listeners:ut}),ct?gt.data=ct:(ct=Lu(l),ct!==null&&(gt.data=ct)))),(ct=sl?Zn(t,l):ar(t,l))&&(Oe=Bu(Oe,"onBeforeInput"),0<Oe.length&&(Fe=new Co("onBeforeInput","beforeinput",null,l,Fe),qe.push({event:Fe,listeners:Oe}),Fe.data=ct))}Rg(qe,r)})}function pl(t,r,l){return{instance:t,listener:r,currentTarget:l}}function Bu(t,r){for(var l=r+"Capture",v=[];t!==null;){var A=t,I=A.stateNode;A.tag===5&&I!==null&&(A=I,I=ur(t,l),I!=null&&v.unshift(pl(t,I,A)),I=ur(t,r),I!=null&&v.push(pl(t,I,A))),t=t.return}return v}function os(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Mg(t,r,l,v,A){for(var I=r._reactName,Y=[];l!==null&&l!==v;){var se=l,pe=se.alternate,Oe=se.stateNode;if(pe!==null&&pe===v)break;se.tag===5&&Oe!==null&&(se=Oe,A?(pe=ur(l,I),pe!=null&&Y.unshift(pl(l,pe,se))):A||(pe=ur(l,I),pe!=null&&Y.push(pl(l,pe,se)))),l=l.return}Y.length!==0&&t.push({event:r,listeners:Y})}var T2=/\r\n?/g,O2=/\u0000|\uFFFD/g;function Ig(t){return(typeof t=="string"?t:""+t).replace(T2,` 38`).replace(O2,"")}function qu(t,r,l){if(r=Ig(r),Ig(t)!==r&&l)throw Error(n(425))}function $u(){}var Zd=null,Qd=null;function Xd(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Jd=typeof setTimeout=="function"?setTimeout:void 0,P2=typeof clearTimeout=="function"?clearTimeout:void 0,Lg=typeof Promise=="function"?Promise:void 0,R2=typeof queueMicrotask=="function"?queueMicrotask:typeof Lg<"u"?function(t){return Lg.resolve(null).then(t).catch(D2)}:Jd;function D2(t){setTimeout(function(){throw t})}function ef(t,r){var l=r,v=0;do{var A=l.nextSibling;if(t.removeChild(l),A&&A.nodeType===8)if(l=A.data,l==="/$"){if(v===0){t.removeChild(A),Vn(r);return}v--}else l!=="$"&&l!=="$?"&&l!=="$!"||v++;l=A}while(l);Vn(r)}function Ia(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return t}function Fg(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(r===0)return t;r--}else l==="/$"&&r++}t=t.previousSibling}return null}var as=Math.random().toString(36).slice(2),Ao="__reactFiber$"+as,hl="__reactProps$"+as,Jo="__reactContainer$"+as,tf="__reactEvents$"+as,M2="__reactListeners$"+as,I2="__reactHandles$"+as;function gi(t){var r=t[Ao];if(r)return r;for(var l=t.parentNode;l;){if(r=l[Jo]||l[Ao]){if(l=r.alternate,r.child!==null||l!==null&&l.child!==null)for(t=Fg(t);t!==null;){if(l=t[Ao])return l;t=Fg(t)}return r}t=l,l=t.parentNode}return null}function ml(t){return t=t[Ao]||t[Jo],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function is(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(n(33))}function Uu(t){return t[hl]||null}var rf=[],ss=-1;function La(t){return{current:t}}function Yt(t){0>
vendor: 5,483 bytes, line 38
38ss||(t.current=rf[ss],rf[ss]=null,ss--)}function Wt(t,r){ss++,rf[ss]=t.current,t.current=r}var Fa={},Kr=La(Fa),ln=La(!1),yi=Fa;function ls(t,r){var l=t.type.contextTypes;if(!l)return Fa;var v=t.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===r)return v.__reactInternalMemoizedMaskedChildContext;var A={},I;for(I in l)A[I]=r[I];return v&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=A),A}function un(t){return t=t.childContextTypes,t!=null}function Hu(){Yt(ln),Yt(Kr)}function zg(t,r,l){if(Kr.current!==Fa)throw Error(n(168));Wt(Kr,r),Wt(ln,l)}function Bg(t,r,l){var v=t.stateNode;if(r=r.childContextTypes,typeof v.getChildContext!="function")return l;v=v.getChildContext();for(var A in v)if(!(A in r))throw Error(n(108,ne(t)||"Unknown",A));return V({},l,v)}function Ku(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Fa,yi=Kr.current,Wt(Kr,t),Wt(ln,ln.current),!0}function qg(t,r,l){var v=t.stateNode;if(!v)throw Error(n(169));l?(t=Bg(t,r,yi),v.__reactInternalMemoizedMergedChildContext=t,Yt(ln),Yt(Kr),Wt(Kr,t)):Yt(ln),Wt(ln,l)}var ea=null,Wu=!1,nf=!1;function $g(t){ea===null?ea=[t]:ea.push(t)}function L2(t){Wu=!0,$g(t)}function za(){if(!nf&&ea!==null){nf=!0;var t=0,r=Pt;try{var l=ea;for(Pt=1;t<l.length;t++){var v=l[t];do v=v(!0);while(v!==null)}ea=null,Wu=!1}catch(A){throw ea!==null&&(ea=ea.slice(t+1)),Ws(xo,za),A}finally{Pt=r,nf=!1}}return null}var us=[],cs=0,Vu=null,Gu=0,Pn=[],Rn=0,wi=null,ta=1,ra="";function vi(t,r){us[cs++]=Gu,us[cs++]=Vu,Vu=t,Gu=r}function Ug(t,r,l){Pn[Rn++]=ta,Pn[Rn++]=ra,Pn[Rn++]=wi,wi=t;var v=ta;t=ra;var A=32-mt(v)-1;v&=~(1<<A),l+=1;var I=32-mt(r)+A;if(30<I){var Y=A-A%5;I=(v&(1<<Y)-1).toString(32),v>>=Y,A-=Y,ta=1<<32-mt(r)+A|l<<A|v,ra=I+t}else ta=1<<I|l<<A|v,ra=t}function of(t){t.return!==null&&(vi(t,1),Ug(t,1,0))}function af(t){for(;t===Vu;)Vu=us[--cs],us[cs]=null,Gu=us[--cs],us[cs]=null;for(;t===wi;)wi=Pn[--Rn],Pn[Rn]=null,ra=Pn[--Rn],Pn[Rn]=null,ta=Pn[--Rn],Pn[Rn]=null}var wn=null,vn=null,tr=!1,Xn=null;function Hg(t,r){var l=Ln(5,null,null,0);l.elementType="DELETED",l.stateNode=r,l.return=t,r=t.deletions,r===null?(t.deletions=[l],t.flags|=16):r.push(l)}function Kg(t,r){switch(t.tag){case 5:var l=t.type;return r=r.nodeType!==1||l.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(t.stateNode=r,wn=t,vn=Ia(r.firstChild),!0):!1;case 6:return r=t.pendingProps===""||r.nodeType!==3?null:r,r!==null?(t.stateNode=r,wn=t,vn=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(l=wi!==null?{id:ta,overflow:ra}:null,t.memoizedState={dehydrated:r,treeContext:l,retryLane:1073741824},l=Ln(18,null,null,0),l.stateNode=r,l.return=t,t.child=l,wn=t,vn=null,!0):!1;default:return!1}}function sf(t){return(t.mode&1)!==0&&(t.flags&128)===0}function lf(t){if(tr){var r=vn;if(r){var l=r;if(!Kg(t,r)){if(sf(t))throw Error(n(418));r=Ia(l.nextSibling);var v=wn;r&&Kg(t,r)?Hg(v,l):(t.flags=t.flags&-4097|2,tr=!1,wn=t)}}else{if(sf(t))throw Error(n(418));t.flags=t.flags&-4097|2,tr=!1,wn=t}}}function Wg(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;wn=t}function Yu(t){if(t!==wn)return!1;if(!tr)return Wg(t),tr=!0,!1;var r;if((r=t.tag!==3)&&!(r=t.tag!==5)&&(r=t.type,r=r!=="head"&&r!=="body"&&!Xd(t.type,t.memoizedProps)),r&&(r=vn)){if(sf(t))throw Vg(),Error(n(418));for(;r;)Hg(t,r),r=Ia(r.nextSibling)}if(Wg(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(n(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"){if(r===0){vn=Ia(t.nextSibling);break e}r--}else l!=="$"&&l!=="$!"&&l!=="$?"||r++}t=t.nextSibling}vn=null}}else vn=wn?Ia(t.stateNode.nextSibling):null;return!0}function Vg(){for(var t=vn;t;)t=Ia(t.nextSibling)}function ds(){vn=wn=null,tr=!1}function uf(t){Xn===null?Xn=[t]:Xn.push(t)}var F2=N.ReactCurrentBatchConfig;function gl(t,r,l){if(t=l.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var v=l.stateNode}if(!v)throw Error(n(147,t));var A=v,I=""+t;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===I?r.ref:(r=function(Y){var se=A.refs;Y===null?delete se[I]:se[I]=Y},r._stringRef=I,r)}if(typeof t!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,t))}return t}function Zu(t,r){throw t=Object.prototype.toString.call(r),Error(n(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t))}function Gg(t){var r=t._init;return r(t._payload)}function Yg(t){function r(Ne,we){if(t){var Ce=Ne.deletions;Ce===null?(Ne.deletions=[we],Ne.flags|=16):Ce.push(we)}}function l(Ne,we){if(!t)return null;for(;we!==null;)r(Ne,we),we=we.sibling;return null}function v(Ne,we){for(Ne=new Map;we!==null;)we.key!==null?Ne.set(we.key,we):Ne.set(we.index,we),we=we.sibling;return Ne}function A(Ne,we){return Ne=Va(Ne,we),Ne.index=0,Ne.sibling=null,Ne}function I(Ne,we,Ce){return Ne.index=Ce,t?(Ce=Ne.alternate,Ce!==null?(Ce=Ce.index,Ce<we?(Ne.flags|=2,we):Ce):(Ne.flags|=2,we)):(Ne.flags|=1048576,we)}function Y(Ne){return t&&Ne.alternate===null&&(Ne.flags|=2),Ne}function se(Ne,we,Ce,Ke){return we===null||we.tag!==6?(we=ep(Ce,Ne.mode,Ke),we.return=Ne,we):(we=A(we,Ce),we.return=Ne,we)}function pe(Ne,we,Ce,Ke){var it=Ce.type;return it===P?Fe(Ne,we,Ce.props.children,Ke,Ce.key):we!==null&&(we.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===Q&&Gg(it)===we.type)?(Ke=A(we,Ce.props),Ke.ref=gl(Ne,we,Ce),Ke.return=Ne,
vendor: 4,621 bytes, line 38
38Ke):(Ke=bc(Ce.type,Ce.key,Ce.props,null,Ne.mode,Ke),Ke.ref=gl(Ne,we,Ce),Ke.return=Ne,Ke)}function Oe(Ne,we,Ce,Ke){return we===null||we.tag!==4||we.stateNode.containerInfo!==Ce.containerInfo||we.stateNode.implementation!==Ce.implementation?(we=tp(Ce,Ne.mode,Ke),we.return=Ne,we):(we=A(we,Ce.children||[]),we.return=Ne,we)}function Fe(Ne,we,Ce,Ke,it){return we===null||we.tag!==7?(we=Ci(Ce,Ne.mode,Ke,it),we.return=Ne,we):(we=A(we,Ce),we.return=Ne,we)}function qe(Ne,we,Ce){if(typeof we=="string"&&we!==""||typeof we=="number")return we=ep(""+we,Ne.mode,Ce),we.return=Ne,we;if(typeof we=="object"&&we!==null){switch(we.$$typeof){case j:return Ce=bc(we.type,we.key,we.props,null,Ne.mode,Ce),Ce.ref=gl(Ne,null,we),Ce.return=Ne,Ce;case L:return we=tp(we,Ne.mode,Ce),we.return=Ne,we;case Q:var Ke=we._init;return qe(Ne,Ke(we._payload),Ce)}if(Te(we)||J(we))return we=Ci(we,Ne.mode,Ce,null),we.return=Ne,we;Zu(Ne,we)}return null}function Le(Ne,we,Ce,Ke){var it=we!==null?we.key:null;if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number")return it!==null?null:se(Ne,we,""+Ce,Ke);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case j:return Ce.key===it?pe(Ne,we,Ce,Ke):null;case L:return Ce.key===it?Oe(Ne,we,Ce,Ke):null;case Q:return it=Ce._init,Le(Ne,we,it(Ce._payload),Ke)}if(Te(Ce)||J(Ce))return it!==null?null:Fe(Ne,we,Ce,Ke,null);Zu(Ne,Ce)}return null}function Qe(Ne,we,Ce,Ke,it){if(typeof Ke=="string"&&Ke!==""||typeof Ke=="number")return Ne=Ne.get(Ce)||null,se(we,Ne,""+Ke,it);if(typeof Ke=="object"&&Ke!==null){switch(Ke.$$typeof){case j:return Ne=Ne.get(Ke.key===null?Ce:Ke.key)||null,pe(we,Ne,Ke,it);case L:return Ne=Ne.get(Ke.key===null?Ce:Ke.key)||null,Oe(we,Ne,Ke,it);case Q:var ut=Ke._init;return Qe(Ne,we,Ce,ut(Ke._payload),it)}if(Te(Ke)||J(Ke))return Ne=Ne.get(Ce)||null,Fe(we,Ne,Ke,it,null);Zu(we,Ke)}return null}function rt(Ne,we,Ce,Ke){for(var it=null,ut=null,ct=we,gt=we=0,Pr=null;ct!==null&><Ce.length;gt++){ct.index>gt?(Pr=ct,ct=null):Pr=ct.sibling;var Lt=Le(Ne,ct,Ce[gt],Ke);if(Lt===null){ct===null&&(ct=Pr);break}t&&ct&&Lt.alternate===null&&r(Ne,ct),we=I(Lt,we,gt),ut===null?it=Lt:ut.sibling=Lt,ut=Lt,ct=Pr}if(gt===Ce.length)return l(Ne,ct),tr&&vi(Ne,gt),it;if(ct===null){for(;gt<Ce.length;gt++)ct=qe(Ne,Ce[gt],Ke),ct!==null&&(we=I(ct,we,gt),ut===null?it=ct:ut.sibling=ct,ut=ct);return tr&&vi(Ne,gt),it}for(ct=v(Ne,ct);gt<Ce.length;gt++)Pr=Qe(ct,Ne,gt,Ce[gt],Ke),Pr!==null&&(t&&Pr.alternate!==null&&ct.delete(Pr.key===null?gt:Pr.key),we=I(Pr,we,gt),ut===null?it=Pr:ut.sibling=Pr,ut=Pr);return t&&ct.forEach(function(Ga){return r(Ne,Ga)}),tr&&vi(Ne,gt),it}function nt(Ne,we,Ce,Ke){var it=J(Ce);if(typeof it!="function")throw Error(n(150));if(Ce=it.call(Ce),Ce==null)throw Error(n(151));for(var ut=it=null,ct=we,gt=we=0,Pr=null,Lt=Ce.next();ct!==null&&!Lt.done;gt++,Lt=Ce.next()){ct.index>gt?(Pr=ct,ct=null):Pr=ct.sibling;var Ga=Le(Ne,ct,Lt.value,Ke);if(Ga===null){ct===null&&(ct=Pr);break}t&&ct&&Ga.alternate===null&&r(Ne,ct),we=I(Ga,we,gt),ut===null?it=Ga:ut.sibling=Ga,ut=Ga,ct=Pr}if(Lt.done)return l(Ne,ct),tr&&vi(Ne,gt),it;if(ct===null){for(;!Lt.done;gt++,Lt=Ce.next())Lt=qe(Ne,Lt.value,Ke),Lt!==null&&(we=I(Lt,we,gt),ut===null?it=Lt:ut.sibling=Lt,ut=Lt);return tr&&vi(Ne,gt),it}for(ct=v(Ne,ct);!Lt.done;gt++,Lt=Ce.next())Lt=Qe(ct,Ne,gt,Lt.value,Ke),Lt!==null&&(t&&Lt.alternate!==null&&ct.delete(Lt.key===null?gt:Lt.key),we=I(Lt,we,gt),ut===null?it=Lt:ut.sibling=Lt,ut=Lt);return t&&ct.forEach(function(yk){return r(Ne,yk)}),tr&&vi(Ne,gt),it}function fr(Ne,we,Ce,Ke){if(typeof Ce=="object"&&Ce!==null&&Ce.type===P&&Ce.key===null&&(Ce=Ce.props.children),typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case j:e:{for(var it=Ce.key,ut=we;ut!==null;){if(ut.key===it){if(it=Ce.type,it===P){if(ut.tag===7){l(Ne,ut.sibling),we=A(ut,Ce.props.children),we.return=Ne,Ne=we;break e}}else if(ut.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===Q&&Gg(it)===ut.type){l(Ne,ut.sibling),we=A(ut,Ce.props),we.ref=gl(Ne,ut,Ce),we.return=Ne,Ne=we;break e}l(Ne,ut);break}else r(Ne,ut);ut=ut.sibling}Ce.type===P?(we=Ci(Ce.props.children,Ne.mode,Ke,Ce.key),we.return=Ne,Ne=we):(Ke=bc(Ce.type,Ce.key,Ce.props,null,Ne.mode,Ke),Ke.ref=gl(Ne,we,Ce),Ke.return=Ne,Ne=Ke)}return Y(Ne);case L:e:{for(ut=Ce.key;we!==null;){if(we.key===ut)if(we.tag===4&&we.stateNode.containerInfo===Ce.containerInfo&&we.stateNode.implementation===Ce.implementation){l(Ne,we.sibling),we=A(we,Ce.children||[]),we.return=Ne,Ne=we;break e}else{l(Ne,we);break}else r(Ne,we);we=we.sibling}we=tp(Ce,Ne.mode,Ke),we.return=Ne,Ne=we}return Y(Ne);case Q:return ut=Ce._init,fr(Ne,we,ut(Ce._payload),Ke)}if(Te(Ce))return rt(Ne,we,Ce,Ke);
vendor: 4,719 bytes, line 38
38if(J(Ce))return nt(Ne,we,Ce,Ke);Zu(Ne,Ce)}return typeof Ce=="string"&&Ce!==""||typeof Ce=="number"?(Ce=""+Ce,we!==null&&we.tag===6?(l(Ne,we.sibling),we=A(we,Ce),we.return=Ne,Ne=we):(l(Ne,we),we=ep(Ce,Ne.mode,Ke),we.return=Ne,Ne=we),Y(Ne)):l(Ne,we)}return fr}var fs=Yg(!0),Zg=Yg(!1),Qu=La(null),Xu=null,ps=null,cf=null;function df(){cf=ps=Xu=null}function ff(t){var r=Qu.current;Yt(Qu),t._currentValue=r}function pf(t,r,l){for(;t!==null;){var v=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,v!==null&&(v.childLanes|=r)):v!==null&&(v.childLanes&r)!==r&&(v.childLanes|=r),t===l)break;t=t.return}}function hs(t,r){Xu=t,cf=ps=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&r)!==0&&(cn=!0),t.firstContext=null)}function Dn(t){var r=t._currentValue;if(cf!==t)if(t={context:t,memoizedValue:r,next:null},ps===null){if(Xu===null)throw Error(n(308));ps=t,Xu.dependencies={lanes:0,firstContext:t}}else ps=ps.next=t;return r}var bi=null;function hf(t){bi===null?bi=[t]:bi.push(t)}function Qg(t,r,l,v){var A=r.interleaved;return A===null?(l.next=l,hf(r)):(l.next=A.next,A.next=l),r.interleaved=l,na(t,v)}function na(t,r){t.lanes|=r;var l=t.alternate;for(l!==null&&(l.lanes|=r),l=t,t=t.return;t!==null;)t.childLanes|=r,l=t.alternate,l!==null&&(l.childLanes|=r),l=t,t=t.return;return l.tag===3?l.stateNode:null}var Ba=!1;function mf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xg(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function oa(t,r){return{eventTime:t,lane:r,tag:0,payload:null,callback:null,next:null}}function qa(t,r,l){var v=t.updateQueue;if(v===null)return null;if(v=v.shared,(Mt&2)!==0){var A=v.pending;return A===null?r.next=r:(r.next=A.next,A.next=r),v.pending=r,na(t,l)}return A=v.interleaved,A===null?(r.next=r,hf(v)):(r.next=A.next,A.next=r),v.interleaved=r,na(t,l)}function Ju(t,r,l){if(r=r.updateQueue,r!==null&&(r=r.shared,(l&4194240)!==0)){var v=r.lanes;v&=t.pendingLanes,l|=v,r.lanes=l,Ki(t,l)}}function Jg(t,r){var l=t.updateQueue,v=t.alternate;if(v!==null&&(v=v.updateQueue,l===v)){var A=null,I=null;if(l=l.firstBaseUpdate,l!==null){do{var Y={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};I===null?A=I=Y:I=I.next=Y,l=l.next}while(l!==null);I===null?A=I=r:I=I.next=r}else A=I=r;l={baseState:v.baseState,firstBaseUpdate:A,lastBaseUpdate:I,shared:v.shared,effects:v.effects},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=r:t.next=r,l.lastBaseUpdate=r}function ec(t,r,l,v){var A=t.updateQueue;Ba=!1;var I=A.firstBaseUpdate,Y=A.lastBaseUpdate,se=A.shared.pending;if(se!==null){A.shared.pending=null;var pe=se,Oe=pe.next;pe.next=null,Y===null?I=Oe:Y.next=Oe,Y=pe;var Fe=t.alternate;Fe!==null&&(Fe=Fe.updateQueue,se=Fe.lastBaseUpdate,se!==Y&&(se===null?Fe.firstBaseUpdate=Oe:se.next=Oe,Fe.lastBaseUpdate=pe))}if(I!==null){var qe=A.baseState;Y=0,Fe=Oe=pe=null,se=I;do{var Le=se.lane,Qe=se.eventTime;if((v&Le)===Le){Fe!==null&&(Fe=Fe.next={eventTime:Qe,lane:0,tag:se.tag,payload:se.payload,callback:se.callback,next:null});e:{var rt=t,nt=se;switch(Le=r,Qe=l,nt.tag){case 1:if(rt=nt.payload,typeof rt=="function"){qe=rt.call(Qe,qe,Le);break e}qe=rt;break e;case 3:rt.flags=rt.flags&-65537|128;case 0:if(rt=nt.payload,Le=typeof rt=="function"?rt.call(Qe,qe,Le):rt,Le==null)break e;qe=V({},qe,Le);break e;case 2:Ba=!0}}se.callback!==null&&se.lane!==0&&(t.flags|=64,Le=A.effects,Le===null?A.effects=[se]:Le.push(se))}else Qe={eventTime:Qe,lane:Le,tag:se.tag,payload:se.payload,callback:se.callback,next:null},Fe===null?(Oe=Fe=Qe,pe=qe):Fe=Fe.next=Qe,Y|=Le;if(se=se.next,se===null){if(se=A.shared.pending,se===null)break;Le=se,se=Le.next,Le.next=null,A.lastBaseUpdate=Le,A.shared.pending=null}}while(!0);if(Fe===null&&(pe=qe),A.baseState=pe,A.firstBaseUpdate=Oe,A.lastBaseUpdate=Fe,r=A.shared.interleaved,r!==null){A=r;do Y|=A.lane,A=A.next;while(A!==r)}else I===null&&(A.shared.lanes=0);Si|=Y,t.lanes=Y,t.memoizedState=qe}}function ey(t,r,l){if(t=r.effects,r.effects=null,t!==null)for(r=0;r<t.length;r++){var v=t[r],A=v.callback;if(A!==null){if(v.callback=null,v=l,typeof A!="function")throw Error(n(191,A));A.call(v)}}}var yl={},jo=La(yl),wl=La(yl),vl=La(yl);function xi(t){if(t===yl)throw Error(n(174));return t}function gf(t,r){switch(Wt(vl,r),Wt(wl,t),Wt(jo,yl),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:Ht(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=Ht(r,t)}Yt(jo),Wt(jo,r)}function ms(){Yt(jo),Yt(wl),Yt(vl)}
vendor: 5,620 bytes, line 38
38function ty(t){xi(vl.current);var r=xi(jo.current),l=Ht(r,t.type);r!==l&&(Wt(wl,t),Wt(jo,l))}function yf(t){wl.current===t&&(Yt(jo),Yt(wl))}var ir=La(0);function tc(t){for(var r=t;r!==null;){if(r.tag===13){var l=r.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(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 null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var wf=[];function vf(){for(var t=0;t<wf.length;t++)wf[t]._workInProgressVersionPrimary=null;wf.length=0}var rc=N.ReactCurrentDispatcher,bf=N.ReactCurrentBatchConfig,ki=0,sr=null,Sr=null,Tr=null,nc=!1,bl=!1,xl=0,z2=0;function Wr(){throw Error(n(321))}function xf(t,r){if(r===null)return!1;for(var l=0;l<r.length&&l<t.length;l++)if(!fe(t[l],r[l]))return!1;return!0}function kf(t,r,l,v,A,I){if(ki=I,sr=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,rc.current=t===null||t.memoizedState===null?U2:H2,t=l(v,A),bl){I=0;do{if(bl=!1,xl=0,25<=I)throw Error(n(301));I+=1,Tr=Sr=null,r.updateQueue=null,rc.current=K2,t=l(v,A)}while(bl)}if(rc.current=ic,r=Sr!==null&&Sr.next!==null,ki=0,Tr=Sr=sr=null,nc=!1,r)throw Error(n(300));return t}function Sf(){var t=xl!==0;return xl=0,t}function To(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tr===null?sr.memoizedState=Tr=t:Tr=Tr.next=t,Tr}function Mn(){if(Sr===null){var t=sr.alternate;t=t!==null?t.memoizedState:null}else t=Sr.next;var r=Tr===null?sr.memoizedState:Tr.next;if(r!==null)Tr=r,Sr=t;else{if(t===null)throw Error(n(310));Sr=t,t={memoizedState:Sr.memoizedState,baseState:Sr.baseState,baseQueue:Sr.baseQueue,queue:Sr.queue,next:null},Tr===null?sr.memoizedState=Tr=t:Tr=Tr.next=t}return Tr}function kl(t,r){return typeof r=="function"?r(t):r}function _f(t){var r=Mn(),l=r.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=t;var v=Sr,A=v.baseQueue,I=l.pending;if(I!==null){if(A!==null){var Y=A.next;A.next=I.next,I.next=Y}v.baseQueue=A=I,l.pending=null}if(A!==null){I=A.next,v=v.baseState;var se=Y=null,pe=null,Oe=I;do{var Fe=Oe.lane;if((ki&Fe)===Fe)pe!==null&&(pe=pe.next={lane:0,action:Oe.action,hasEagerState:Oe.hasEagerState,eagerState:Oe.eagerState,next:null}),v=Oe.hasEagerState?Oe.eagerState:t(v,Oe.action);else{var qe={lane:Fe,action:Oe.action,hasEagerState:Oe.hasEagerState,eagerState:Oe.eagerState,next:null};pe===null?(se=pe=qe,Y=v):pe=pe.next=qe,sr.lanes|=Fe,Si|=Fe}Oe=Oe.next}while(Oe!==null&&Oe!==I);pe===null?Y=v:pe.next=se,fe(v,r.memoizedState)||(cn=!0),r.memoizedState=v,r.baseState=Y,r.baseQueue=pe,l.lastRenderedState=v}if(t=l.interleaved,t!==null){A=t;do I=A.lane,sr.lanes|=I,Si|=I,A=A.next;while(A!==t)}else A===null&&(l.lanes=0);return[r.memoizedState,l.dispatch]}function Nf(t){var r=Mn(),l=r.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=t;var v=l.dispatch,A=l.pending,I=r.memoizedState;if(A!==null){l.pending=null;var Y=A=A.next;do I=t(I,Y.action),Y=Y.next;while(Y!==A);fe(I,r.memoizedState)||(cn=!0),r.memoizedState=I,r.baseQueue===null&&(r.baseState=I),l.lastRenderedState=I}return[I,v]}function ry(){}function ny(t,r){var l=sr,v=Mn(),A=r(),I=!fe(v.memoizedState,A);if(I&&(v.memoizedState=A,cn=!0),v=v.queue,Ef(iy.bind(null,l,v,t),[t]),v.getSnapshot!==r||I||Tr!==null&&Tr.memoizedState.tag&1){if(l.flags|=2048,Sl(9,ay.bind(null,l,v,A,r),void 0,null),Or===null)throw Error(n(349));(ki&30)!==0||oy(l,r,A)}return A}function oy(t,r,l){t.flags|=16384,t={getSnapshot:r,value:l},r=sr.updateQueue,r===null?(r={lastEffect:null,stores:null},sr.updateQueue=r,r.stores=[t]):(l=r.stores,l===null?r.stores=[t]:l.push(t))}function ay(t,r,l,v){r.value=l,r.getSnapshot=v,sy(r)&&ly(t)}function iy(t,r,l){return l(function(){sy(r)&&ly(t)})}function sy(t){var r=t.getSnapshot;t=t.value;try{var l=r();return!fe(t,l)}catch{return!0}}function ly(t){var r=na(t,1);r!==null&&ro(r,t,1,-1)}function uy(t){var r=To();return typeof t=="function"&&(t=t()),r.memoizedState=r.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:kl,lastRenderedState:t},r.queue=t,t=t.dispatch=$2.bind(null,sr,t),[r.memoizedState,t]}function Sl(t,r,l,v){return t={tag:t,create:r,destroy:l,deps:v,next:null},r=sr.updateQueue,r===null?(r={lastEffect:null,stores:null},sr.updateQueue=r,r.lastEffect=t.next=t):(l=r.lastEffect,l===null?r.lastEffect=t.next=t:(v=l.next,l.next=t,t.next=v,r.lastEffect=t)),t}function cy(){return Mn().memoizedState}function oc(t,r,l,v){var A=To();sr.flags|=t,A.memoizedState=Sl(1|r,l,void 0,v===void 0?null:v)}function ac(t,r,l,v){var A=Mn();v=v===void 0?null:v;var I=void 0;if(Sr!==null){var Y=Sr.memoizedState;if(I=Y.destroy,v!==null&&xf(v,Y.deps)){A.memoizedState=Sl(r,l,I,v);return}}sr.flags|=t,A.memoizedState=Sl(1|r,l,I,v)}function dy(t,r){return oc(8390656,8,t,r)}function Ef(t,r){return ac(2048,8,t,r)}function fy(t,r){return ac(4,2,t,r)}function py(t,r){return ac(4,4,t,r)}function hy(t,r){if(typeof r=="function")return t=t(),r(t),function(){r(null)};if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function my(t,r,l){return l=l!=null?l.concat([t]):null,ac(4,4,hy.bind(null,r,t),l)}function Cf(){}function gy(t,r){var l=Mn();r=r===void 0?null:r;var v=l.memoizedState;return v!==null&&r!==null&&xf(r,v[1])?v[0]:(l.memoizedState=[t,r],t)}function yy(t,r){var l=Mn();r=r===void 0?null:r;var v=l.memoizedState;return v!==null&&r!==null&&xf(r,v[1])?v[0]:(t=t(),l.memoizedState=[t,r],t)}function wy(t,r,l){return(ki&21)===0?(t.baseState&&(t.baseState=!1,
vendor: 9,606 bytes, lines 38-40
38cn=!0),t.memoizedState=l):(fe(l,r)||(l=Ko(),sr.lanes|=l,Si|=l,t.baseState=!0),r)}function B2(t,r){var l=Pt;Pt=l!==0&&4>l?l:4,t(!0);var v=bf.transition;bf.transition={};try{t(!1),r()}finally{Pt=l,bf.transition=v}}function vy(){return Mn().memoizedState}function q2(t,r,l){var v=Ka(t);if(l={lane:v,action:l,hasEagerState:!1,eagerState:null,next:null},by(t))xy(r,l);else if(l=Qg(t,r,l,v),l!==null){var A=nn();ro(l,t,v,A),ky(l,r,v)}}function $2(t,r,l){var v=Ka(t),A={lane:v,action:l,hasEagerState:!1,eagerState:null,next:null};if(by(t))xy(r,A);else{var I=t.alternate;if(t.lanes===0&&(I===null||I.lanes===0)&&(I=r.lastRenderedReducer,I!==null))try{var Y=r.lastRenderedState,se=I(Y,l);if(A.hasEagerState=!0,A.eagerState=se,fe(se,Y)){var pe=r.interleaved;pe===null?(A.next=A,hf(r)):(A.next=pe.next,pe.next=A),r.interleaved=A;return}}catch{}finally{}l=Qg(t,r,A,v),l!==null&&(A=nn(),ro(l,t,v,A),ky(l,r,v))}}function by(t){var r=t.alternate;return t===sr||r!==null&&r===sr}function xy(t,r){bl=nc=!0;var l=t.pending;l===null?r.next=r:(r.next=l.next,l.next=r),t.pending=r}function ky(t,r,l){if((l&4194240)!==0){var v=r.lanes;v&=t.pendingLanes,l|=v,r.lanes=l,Ki(t,l)}}var ic={readContext:Dn,useCallback:Wr,useContext:Wr,useEffect:Wr,useImperativeHandle:Wr,useInsertionEffect:Wr,useLayoutEffect:Wr,useMemo:Wr,useReducer:Wr,useRef:Wr,useState:Wr,useDebugValue:Wr,useDeferredValue:Wr,useTransition:Wr,useMutableSource:Wr,useSyncExternalStore:Wr,useId:Wr,unstable_isNewReconciler:!1},U2={readContext:Dn,useCallback:function(t,r){return To().memoizedState=[t,r===void 0?null:r],t},useContext:Dn,useEffect:dy,useImperativeHandle:function(t,r,l){return l=l!=null?l.concat([t]):null,oc(4194308,4,hy.bind(null,r,t),l)},useLayoutEffect:function(t,r){return oc(4194308,4,t,r)},useInsertionEffect:function(t,r){return oc(4,2,t,r)},useMemo:function(t,r){var l=To();return r=r===void 0?null:r,t=t(),l.memoizedState=[t,r],t},useReducer:function(t,r,l){var v=To();return r=l!==void 0?l(r):r,v.memoizedState=v.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},v.queue=t,t=t.dispatch=q2.bind(null,sr,t),[v.memoizedState,t]},useRef:function(t){var r=To();return t={current:t},r.memoizedState=t},useState:uy,useDebugValue:Cf,useDeferredValue:function(t){return To().memoizedState=t},useTransition:function(){var t=uy(!1),r=t[0];return t=B2.bind(null,t[1]),To().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,l){var v=sr,A=To();if(tr){if(l===void 0)throw Error(n(407));l=l()}else{if(l=r(),Or===null)throw Error(n(349));(ki&30)!==0||oy(v,r,l)}A.memoizedState=l;var I={value:l,getSnapshot:r};return A.queue=I,dy(iy.bind(null,v,I,t),[t]),v.flags|=2048,Sl(9,ay.bind(null,v,I,l,r),void 0,null),l},useId:function(){var t=To(),r=Or.identifierPrefix;if(tr){var l=ra,v=ta;l=(v&~(1<<32-mt(v)-1)).toString(32)+l,r=":"+r+"R"+l,l=xl++,0<l&&(r+="H"+l.toString(32)),r+=":"}else l=z2++,r=":"+r+"r"+l.toString(32)+":";return t.memoizedState=r},unstable_isNewReconciler:!1},H2={readContext:Dn,useCallback:gy,useContext:Dn,useEffect:Ef,useImperativeHandle:my,useInsertionEffect:fy,useLayoutEffect:py,useMemo:yy,useReducer:_f,useRef:cy,useState:function(){return _f(kl)},useDebugValue:Cf,useDeferredValue:function(t){var r=Mn();return wy(r,Sr.memoizedState,t)},useTransition:function(){var t=_f(kl)[0],r=Mn().memoizedState;return[t,r]},useMutableSource:ry,useSyncExternalStore:ny,useId:vy,unstable_isNewReconciler:!1},K2={readContext:Dn,useCallback:gy,useContext:Dn,useEffect:Ef,useImperativeHandle:my,useInsertionEffect:fy,useLayoutEffect:py,useMemo:yy,useReducer:Nf,useRef:cy,useState:function(){return Nf(kl)},useDebugValue:Cf,useDeferredValue:function(t){var r=Mn();return Sr===null?r.memoizedState=t:wy(r,Sr.memoizedState,t)},useTransition:function(){var t=Nf(kl)[0],r=Mn().memoizedState;return[t,r]},useMutableSource:ry,useSyncExternalStore:ny,useId:vy,unstable_isNewReconciler:!1};function Jn(t,r){if(t&&t.defaultProps){r=V({},r),t=t.defaultProps;for(var l in t)r[l]===void 0&&(r[l]=t[l]);return r}return r}function Af(t,r,l,v){r=t.memoizedState,l=l(v,r),l=l==null?r:V({},r,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var sc={isMounted:function(t){return(t=t._reactInternals)?Ur(t)===t:!1},enqueueSetState:function(t,r,l){t=t._reactInternals;var v=nn(),A=Ka(t),I=oa(v,A);I.payload=r,l!=null&&(I.callback=l),r=qa(t,I,A),r!==null&&(ro(r,t,A,v),Ju(r,t,A))},enqueueReplaceState:function(t,r,l){t=t._reactInternals;var v=nn(),A=Ka(t),I=oa(v,A);I.tag=1,I.payload=r,l!=null&&(I.callback=l),r=qa(t,I,A),r!==null&&(ro(r,t,A,v),Ju(r,t,A))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var l=nn(),v=Ka(t),A=oa(l,v);A.tag=2,r!=null&&(A.callback=r),r=qa(t,A,v),r!==null&&(ro(r,t,v,l),Ju(r,t,v))}};function Sy(t,r,l,v,A,I,Y){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(v,I,Y):r.prototype&&r.prototype.isPureReactComponent?!xe(l,v)||!xe(A,I):!0}function _y(t,r,l){var v=!1,A=Fa,I=r.contextType;return typeof I=="object"&&I!==null?I=Dn(I):(A=un(r)?yi:Kr.current,v=r.contextTypes,I=(v=v!=null)?ls(t,A):Fa),r=new r(l,I),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=sc,t.stateNode=r,r._reactInternals=t,v&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=A,t.__reactInternalMemoizedMaskedChildContext=I),r}function Ny(t,r,l,v){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(l,v),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(l,v),r.state!==t&&sc.enqueueReplaceState(r,r.state,null)}function jf(t,r,l,v){var A=t.stateNode;A.props=l,A.state=t.memoizedState,A.refs={},mf(t);var I=r.contextType;typeof I=="object"&&I!==null?A.context=Dn(I):(I=un(r)?yi:Kr.current,A.context=ls(t,I)),A.state=t.memoizedState,I=r.getDerivedStateFromProps,typeof I=="function"&&(Af(t,r,I,l),A.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(r=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),r!==A.state&&sc.enqueueReplaceState(A,A.state,null),ec(t,l,A,v),A.state=t.memoizedState),typeof A.componentDidMount=="function"&&(t.flags|=4194308)}function gs(t,r){try{var l="",v=r;do l+=oe(v),v=v.return;while(v);var A=l}catch(I){A=` 39Error generating stack: `+I.message+` 40`+I.stack}return{value:t,source:r,stack:A,digest:null}}function Tf(t,r,l){return{value:t,source:null,stack:l??null,digest:r??null}}function Of(t,r){try{console.error(r.value)}catch(l){setTimeout(function(){throw l})}}var W2=typeof WeakMap=="function"?WeakMap:Map;function Ey(t,r,l){l=oa(-1,l),l.tag=3,l.payload={element:null};var v=r.value;return l.callback=function(){hc||(hc=!0,Wf=v),Of(t,r)},l}function Cy(t,r,l){l=oa(-1,l),l.tag=3;var v=t.type.getDerivedStateFromError;if(typeof v=="function"){var A=r.value;l.payload=function(){return v(A)},l.callback=function(){Of(t,r)}}var I=t.stateNode;return I!==null&&typeof I.componentDidCatch=="function"&&(l.callback=function(){Of(t,r),typeof v!="function"&&(Ua===null?Ua=new Set([this]):Ua.add(this));var Y=r.stack;this.componentDidCatch(r.value,{componentStack:Y!==null?Y:""})}),l}function Ay(t,r,l){var v=t.pingCache;if(v===null){v=t.pingCache=new W2;var A=new Set;v.set(r,A)}else A=v.get(r),A===void 0&&(A=new Set,v.set(r,A));A.has(l)||(A.add(l),t=ik.bind(null,t,r,l),r.then(t,t))}function jy(t){do{var r;if((r=t.tag===13)&&(r=t.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return t;t=t.return}while(t!==null);return null}function Ty(t,r,l,v,A){return(t.mode&1)===0?(t===r?t.flags|=65536:(t.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(r=oa(-1,1),r.tag=2,qa(l,r,1))),l.lanes|=1),t):(t.flags|=65536,t.lanes=A,t)}var V2=N.ReactCurrentOwner,cn=!1;function rn(t,r,l,v){r.child=t===null?Zg(r,null,l,v):fs(r,t.child,l,v)}function Oy(t,r,l,v,A){l=l.render;var I=r.ref;return hs(r,A),v=kf(t,r,l,v,I,A),l=Sf(),t!==null&&!cn?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~A,aa(t,r,A)):(tr&&l&&of(r),r.flags|=1,rn(t,r,v,A),r.child)}function Py(t,r,l,v,A){if(t===null){var I=l.type;return typeof I=="function"&&!Jf(I)&&I.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(r.tag=15,r.type=I,Ry(t,r,I,v,A)):(t=bc(l.type,null,v,r,r.mode,A),t.ref=r.ref,t.return=r,r.child=t)}if(I=t.child,(t.lanes&A)===0){var Y=I.memoizedProps;if(l=l.compare,l=l!==null?l:xe,l(Y,v)&&t.ref===r.ref)return aa(t,r,A)}return r.flags|=1,t=Va(I,v),t.ref=r.ref,t.return=r,r.child=t}function Ry(t,r,l,v,A){if(t!==null){var I=t.memoizedProps;if(xe(I,v)&&t.ref===r.ref)if(cn=!1,r.pendingProps=v=I,(t.lanes&A)!==0)(t.flags&131072)!==0&&(cn=!0);else return r.lanes=t.lanes,aa(t,r,A)}return Pf(t,r,l,v,A)}function Dy(t,r,l){var v=r.pendingProps,A=v.children,I=t!==null?t.memoizedState:null;if(v.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Wt(ws,bn),bn|=l;else{if((l&1073741824)===0)return t=I!==null?I.baseLanes|l:l,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:t,cachePool:null,transitions:null},r.updateQueue=null,Wt(ws,bn),bn|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},v=I!==null?I.baseLanes:l,Wt(ws,bn),bn|=v}else I!==null?(v=I.baseLanes|l,r.memoizedState=null):v=l,Wt(ws,bn),bn|=v;return rn(t,r,A,l),r.child}function My(t,r){var l=r.ref;(t===null&&l!==null||t!==null&&t.ref!==l)&&(r.flags|=512,r.flags|=2097152)}
vendor: 5,644 bytes, line 40
40function Pf(t,r,l,v,A){var I=un(l)?yi:Kr.current;return I=ls(r,I),hs(r,A),l=kf(t,r,l,v,I,A),v=Sf(),t!==null&&!cn?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~A,aa(t,r,A)):(tr&&v&&of(r),r.flags|=1,rn(t,r,l,A),r.child)}function Iy(t,r,l,v,A){if(un(l)){var I=!0;Ku(r)}else I=!1;if(hs(r,A),r.stateNode===null)uc(t,r),_y(r,l,v),jf(r,l,v,A),v=!0;else if(t===null){var Y=r.stateNode,se=r.memoizedProps;Y.props=se;var pe=Y.context,Oe=l.contextType;typeof Oe=="object"&&Oe!==null?Oe=Dn(Oe):(Oe=un(l)?yi:Kr.current,Oe=ls(r,Oe));var Fe=l.getDerivedStateFromProps,qe=typeof Fe=="function"||typeof Y.getSnapshotBeforeUpdate=="function";qe||typeof Y.UNSAFE_componentWillReceiveProps!="function"&&typeof Y.componentWillReceiveProps!="function"||(se!==v||pe!==Oe)&&Ny(r,Y,v,Oe),Ba=!1;var Le=r.memoizedState;Y.state=Le,ec(r,v,Y,A),pe=r.memoizedState,se!==v||Le!==pe||ln.current||Ba?(typeof Fe=="function"&&(Af(r,l,Fe,v),pe=r.memoizedState),(se=Ba||Sy(r,l,se,v,Le,pe,Oe))?(qe||typeof Y.UNSAFE_componentWillMount!="function"&&typeof Y.componentWillMount!="function"||(typeof Y.componentWillMount=="function"&&Y.componentWillMount(),typeof Y.UNSAFE_componentWillMount=="function"&&Y.UNSAFE_componentWillMount()),typeof Y.componentDidMount=="function"&&(r.flags|=4194308)):(typeof Y.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=v,r.memoizedState=pe),Y.props=v,Y.state=pe,Y.context=Oe,v=se):(typeof Y.componentDidMount=="function"&&(r.flags|=4194308),v=!1)}else{Y=r.stateNode,Xg(t,r),se=r.memoizedProps,Oe=r.type===r.elementType?se:Jn(r.type,se),Y.props=Oe,qe=r.pendingProps,Le=Y.context,pe=l.contextType,typeof pe=="object"&&pe!==null?pe=Dn(pe):(pe=un(l)?yi:Kr.current,pe=ls(r,pe));var Qe=l.getDerivedStateFromProps;(Fe=typeof Qe=="function"||typeof Y.getSnapshotBeforeUpdate=="function")||typeof Y.UNSAFE_componentWillReceiveProps!="function"&&typeof Y.componentWillReceiveProps!="function"||(se!==qe||Le!==pe)&&Ny(r,Y,v,pe),Ba=!1,Le=r.memoizedState,Y.state=Le,ec(r,v,Y,A);var rt=r.memoizedState;se!==qe||Le!==rt||ln.current||Ba?(typeof Qe=="function"&&(Af(r,l,Qe,v),rt=r.memoizedState),(Oe=Ba||Sy(r,l,Oe,v,Le,rt,pe)||!1)?(Fe||typeof Y.UNSAFE_componentWillUpdate!="function"&&typeof Y.componentWillUpdate!="function"||(typeof Y.componentWillUpdate=="function"&&Y.componentWillUpdate(v,rt,pe),typeof Y.UNSAFE_componentWillUpdate=="function"&&Y.UNSAFE_componentWillUpdate(v,rt,pe)),typeof Y.componentDidUpdate=="function"&&(r.flags|=4),typeof Y.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof Y.componentDidUpdate!="function"||se===t.memoizedProps&&Le===t.memoizedState||(r.flags|=4),typeof Y.getSnapshotBeforeUpdate!="function"||se===t.memoizedProps&&Le===t.memoizedState||(r.flags|=1024),r.memoizedProps=v,r.memoizedState=rt),Y.props=v,Y.state=rt,Y.context=pe,v=Oe):(typeof Y.componentDidUpdate!="function"||se===t.memoizedProps&&Le===t.memoizedState||(r.flags|=4),typeof Y.getSnapshotBeforeUpdate!="function"||se===t.memoizedProps&&Le===t.memoizedState||(r.flags|=1024),v=!1)}return Rf(t,r,l,v,I,A)}function Rf(t,r,l,v,A,I){My(t,r);var Y=(r.flags&128)!==0;if(!v&&!Y)return A&&qg(r,l,!1),aa(t,r,I);v=r.stateNode,V2.current=r;var se=Y&&typeof l.getDerivedStateFromError!="function"?null:v.render();return r.flags|=1,t!==null&&Y?(r.child=fs(r,t.child,null,I),r.child=fs(r,null,se,I)):rn(t,r,se,I),r.memoizedState=v.state,A&&qg(r,l,!0),r.child}function Ly(t){var r=t.stateNode;r.pendingContext?zg(t,r.pendingContext,r.pendingContext!==r.context):r.context&&zg(t,r.context,!1),gf(t,r.containerInfo)}function Fy(t,r,l,v,A){return ds(),uf(A),r.flags|=256,rn(t,r,l,v),r.child}var Df={dehydrated:null,treeContext:null,retryLane:0};function Mf(t){return{baseLanes:t,cachePool:null,transitions:null}}function zy(t,r,l){var v=r.pendingProps,A=ir.current,I=!1,Y=(r.flags&128)!==0,se;if((se=Y)||(se=t!==null&&t.memoizedState===null?!1:(A&2)!==0),se?(I=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(A|=1),Wt(ir,A&1),t===null)return lf(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((r.mode&1)===0?r.lanes=1:t.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(Y=v.children,t=v.fallback,I?(v=r.mode,I=r.child,Y={mode:"hidden",children:Y},(v&1)===0&&I!==null?(I.childLanes=0,I.pendingProps=Y):I=xc(Y,v,0,null),t=Ci(t,v,l,null),I.return=r,t.return=r,I.sibling=t,r.child=I,r.child.memoizedState=Mf(l),r.memoizedState=Df,t):If(r,Y));if(A=t.memoizedState,A!==null&&(se=A.dehydrated,se!==null))return G2(t,r,Y,v,se,A,l);if(I){I=v.fallback,Y=r.mode,A=t.child,se=A.sibling;var pe={mode:"hidden",children:v.children};return(Y&1)===0&&r.child!==A?(v=r.child,v.childLanes=0,v.pendingProps=pe,r.deletions=null):(v=Va(A,pe),v.subtreeFlags=A.subtreeFlags&14680064),se!==null?I=Va(se,I):(I=Ci(I,Y,l,null),I.flags|=2),I.return=r,v.return=r,v.sibling=I,r.child=v,v=I,I=r.child,Y=t.child.memoizedState,Y=Y===null?Mf(l):{baseLanes:Y.baseLanes|l,cachePool:null,transitions:Y.transitions},I.memoizedState=Y,I.childLanes=t.childLanes&~l,r.memoizedState=Df,v}return I=t.child,t=I.sibling,v=Va(I,{mode:"visible",children:v.children}),(r.mode&1)===0&&(v.lanes=l),v.return=r,v.sibling=null,t!==null&&(l=r.deletions,l===null?(r.deletions=[t],r.flags|=16):l.push(t)),r.child=v,r.memoizedState=null,v}function If(t,r){return r=xc({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function lc(t,r,l,v){return v!==null&&uf(v),fs(r,t.child,null,l),t=If(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function G2(t,r,l,v,A,I,Y){if(l)return r.flags&256?(r.flags&=-257,v=Tf(Error(n(422))),lc(t,r,Y,v)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(I=v.fallback,A=r.mode,v=xc({mode:"visible",children:v.children}
vendor: 7,871 bytes, line 40
40,A,0,null),I=Ci(I,A,Y,null),I.flags|=2,v.return=r,I.return=r,v.sibling=I,r.child=v,(r.mode&1)!==0&&fs(r,t.child,null,Y),r.child.memoizedState=Mf(Y),r.memoizedState=Df,I);if((r.mode&1)===0)return lc(t,r,Y,null);if(A.data==="$!"){if(v=A.nextSibling&&A.nextSibling.dataset,v)var se=v.dgst;return v=se,I=Error(n(419)),v=Tf(I,v,void 0),lc(t,r,Y,v)}if(se=(Y&t.childLanes)!==0,cn||se){if(v=Or,v!==null){switch(Y&-Y){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&(v.suspendedLanes|Y))!==0?0:A,A!==0&&A!==I.retryLane&&(I.retryLane=A,na(t,A),ro(v,t,A,-1))}return Xf(),v=Tf(Error(n(421))),lc(t,r,Y,v)}return A.data==="$?"?(r.flags|=128,r.child=t.child,r=sk.bind(null,t),A._reactRetry=r,null):(t=I.treeContext,vn=Ia(A.nextSibling),wn=r,tr=!0,Xn=null,t!==null&&(Pn[Rn++]=ta,Pn[Rn++]=ra,Pn[Rn++]=wi,ta=t.id,ra=t.overflow,wi=r),r=If(r,v.children),r.flags|=4096,r)}function By(t,r,l){t.lanes|=r;var v=t.alternate;v!==null&&(v.lanes|=r),pf(t.return,r,l)}function Lf(t,r,l,v,A){var I=t.memoizedState;I===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:v,tail:l,tailMode:A}:(I.isBackwards=r,I.rendering=null,I.renderingStartTime=0,I.last=v,I.tail=l,I.tailMode=A)}function qy(t,r,l){var v=r.pendingProps,A=v.revealOrder,I=v.tail;if(rn(t,r,v.children,l),v=ir.current,(v&2)!==0)v=v&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&By(t,l,r);else if(t.tag===19)By(t,l,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}v&=1}if(Wt(ir,v),(r.mode&1)===0)r.memoizedState=null;else switch(A){case"forwards":for(l=r.child,A=null;l!==null;)t=l.alternate,t!==null&&tc(t)===null&&(A=l),l=l.sibling;l=A,l===null?(A=r.child,r.child=null):(A=l.sibling,l.sibling=null),Lf(r,!1,A,l,I);break;case"backwards":for(l=null,A=r.child,r.child=null;A!==null;){if(t=A.alternate,t!==null&&tc(t)===null){r.child=A;break}t=A.sibling,A.sibling=l,l=A,A=t}Lf(r,!0,l,null,I);break;case"together":Lf(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function uc(t,r){(r.mode&1)===0&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function aa(t,r,l){if(t!==null&&(r.dependencies=t.dependencies),Si|=r.lanes,(l&r.childLanes)===0)return null;if(t!==null&&r.child!==t.child)throw Error(n(153));if(r.child!==null){for(t=r.child,l=Va(t,t.pendingProps),r.child=l,l.return=r;t.sibling!==null;)t=t.sibling,l=l.sibling=Va(t,t.pendingProps),l.return=r;l.sibling=null}return r.child}function Y2(t,r,l){switch(r.tag){case 3:Ly(r),ds();break;case 5:ty(r);break;case 1:un(r.type)&&Ku(r);break;case 4:gf(r,r.stateNode.containerInfo);break;case 10:var v=r.type._context,A=r.memoizedProps.value;Wt(Qu,v._currentValue),v._currentValue=A;break;case 13:if(v=r.memoizedState,v!==null)return v.dehydrated!==null?(Wt(ir,ir.current&1),r.flags|=128,null):(l&r.child.childLanes)!==0?zy(t,r,l):(Wt(ir,ir.current&1),t=aa(t,r,l),t!==null?t.sibling:null);Wt(ir,ir.current&1);break;case 19:if(v=(l&r.childLanes)!==0,(t.flags&128)!==0){if(v)return qy(t,r,l);r.flags|=128}if(A=r.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),Wt(ir,ir.current),v)break;return null;case 22:case 23:return r.lanes=0,Dy(t,r,l)}return aa(t,r,l)}var $y,Ff,Uy,Hy;$y=function(t,r){for(var l=r.child;l!==null;){if(l.tag===5||l.tag===6)t.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===r)break;for(;l.sibling===null;){if(l.return===null||l.return===r)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Ff=function(){},Uy=function(t,r,l,v){var A=t.memoizedProps;if(A!==v){t=r.stateNode,xi(jo.current);var I=null;switch(l){case"input":A=Xe(t,A),v=Xe(t,v),I=[];break;case"select":A=V({},A,{value:void 0}),v=V({},v,{value:void 0}),I=[];break;case"textarea":A=Pe(t,A),v=Pe(t,v),I=[];break;default:typeof A.onClick!="function"&&typeof v.onClick=="function"&&(t.onclick=$u)}Je(l,v);var Y;l=null;for(Oe in A)if(!v.hasOwnProperty(Oe)&&A.hasOwnProperty(Oe)&&A[Oe]!=null)if(Oe==="style"){var se=A[Oe];for(Y in se)se.hasOwnProperty(Y)&&(l||(l={}),l[Y]="")}else Oe!=="dangerouslySetInnerHTML"&&Oe!=="children"&&Oe!=="suppressContentEditableWarning"&&Oe!=="suppressHydrationWarning"&&Oe!=="autoFocus"&&(i.hasOwnProperty(Oe)?I||(I=[]):(I=I||[]).push(Oe,null));for(Oe in v){var pe=v[Oe];if(se=A?.[Oe],v.hasOwnProperty(Oe)&&pe!==se&&(pe!=null||se!=null))if(Oe==="style")if(se){for(Y in se)!se.hasOwnProperty(Y)||pe&&pe.hasOwnProperty(Y)||(l||(l={}),l[Y]="");for(Y in pe)pe.hasOwnProperty(Y)&&se[Y]!==pe[Y]&&(l||(l={}),l[Y]=pe[Y])}else l||(I||(I=[]),I.push(Oe,l)),l=pe;else Oe==="dangerouslySetInnerHTML"?(pe=pe?pe.__html:void 0,se=se?se.__html:void 0,pe!=null&&se!==pe&&(I=I||[]).push(Oe,pe)):Oe==="children"?typeof pe!="string"&&typeof pe!="number"||(I=I||[]).push(Oe,""+pe):Oe!=="suppressContentEditableWarning"&&Oe!=="suppressHydrationWarning"&&(i.hasOwnProperty(Oe)?(pe!=null&&Oe==="onScroll"&&Gt("scroll",t),I||se===pe||(I=[])):(I=I||[]).push(Oe,pe))}l&&(I=I||[]).push("style",l);var Oe=I;(r.updateQueue=Oe)&&(r.flags|=4)}},Hy=function(t,r,l,v){l!==v&&(r.flags|=4)};function _l(t,r){if(!tr)switch(t.tailMode){case"hidden":r=t.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var v=null;l!==null;)l.alternate!==null&&(v=l),l=l.sibling;v===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:v.sibling=null}}function Vr(t){var r=t.alternate!==null&&t.alternate.child===t.child,l=0,v=0;if(r)for(var A=t.child;A!==null;)l|=A.lanes|A.childLanes,v|=A.subtreeFlags&14680064,v|=A.flags&14680064,A.return=t,A=A.sibling;else for(A=t.child;A!==null;)l|=A.lanes|A.childLanes,v|=A.subtreeFlags,v|=A.flags,A.return=t,A=A.sibling;return t.subtreeFlags|=v,t.childLanes=l,r}function Z2(t,r,l){var v=r.pendingProps;switch(af(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vr(r),null;case 1:return un(r.type)&&Hu(),Vr(r),null;case 3:return v=r.stateNode,ms(),Yt(ln),Yt(Kr),vf(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(t===null||t.child===null)&&(Yu(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Xn!==null&&(Yf(Xn),Xn=null))),Ff(t,r),Vr(r),null;case 5:yf(r);var A=xi(vl.current);if(l=r.type,t!==null&&r.stateNode!=null)Uy(t,r,l,v,A),t.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!v){if(r.stateNode===null)throw Error(n(166));return Vr(r),null}if(t=xi(jo.current),Yu(r)){v=r.stateNode,l=r.type;var I=r.memoizedProps;switch(v[Ao]=r,v[hl]=I,t=(r.mode&1)!==0,l){case"dialog":Gt("cancel",v),Gt("close",v);break;case"iframe":case"object":case"embed":Gt("load",v);break;case"video":case"audio":for(A=0;A<dl.length;A++)Gt(dl[A],v);break;case"source":Gt("error",v);break;case"img":case"image":case"link":Gt("error",v),Gt("load",v);break;case"details":Gt("toggle",v);break;case"input":ot(v,I),Gt("invalid",v);break;case"select":v._wrapperState={wasMultiple:!!I.multiple},Gt("invalid",v);break;case"textarea":at(v,I),Gt("invalid",v)}Je(l,I),A=null;for(var Y in I)if(I.hasOwnProperty(Y)){var se=I[Y];Y==="children"?typeof se=="string"?v.textContent!==se&&(I.suppressHydrationWarning!==!0&&qu(v.textContent,se,t),A=["children",se]):typeof se=="number"&&v.textContent!==""+se&&(I.suppressHydrationWarning!==!0&&qu(v.textContent,se,t),A=["children",""+se]):i.hasOwnProperty(Y)&&se!=null&&Y==="onScroll"&&Gt("scroll",v)}switch(l){case"input":Ie(v),ue(v,I,!0);break;
vendor: 25,734 bytes, line 40
40case"textarea":Ie(v),dt(v);break;case"select":case"option":break;default:typeof I.onClick=="function"&&(v.onclick=$u)}v=A,r.updateQueue=v,v!==null&&(r.flags|=4)}else{Y=A.nodeType===9?A:A.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Bt(l)),t==="http://www.w3.org/1999/xhtml"?l==="script"?(t=Y.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof v.is=="string"?t=Y.createElement(l,{is:v.is}):(t=Y.createElement(l),l==="select"&&(Y=t,v.multiple?Y.multiple=!0:v.size&&(Y.size=v.size))):t=Y.createElementNS(t,l),t[Ao]=r,t[hl]=v,$y(t,r,!1,!1),r.stateNode=t;e:{switch(Y=mn(l,v),l){case"dialog":Gt("cancel",t),Gt("close",t),A=v;break;case"iframe":case"object":case"embed":Gt("load",t),A=v;break;case"video":case"audio":for(A=0;A<dl.length;A++)Gt(dl[A],t);A=v;break;case"source":Gt("error",t),A=v;break;case"img":case"image":case"link":Gt("error",t),Gt("load",t),A=v;break;case"details":Gt("toggle",t),A=v;break;case"input":ot(t,v),A=Xe(t,v),Gt("invalid",t);break;case"option":A=v;break;case"select":t._wrapperState={wasMultiple:!!v.multiple},A=V({},v,{value:void 0}),Gt("invalid",t);break;case"textarea":at(t,v),A=Pe(t,v),Gt("invalid",t);break;default:A=v}Je(l,A),se=A;for(I in se)if(se.hasOwnProperty(I)){var pe=se[I];I==="style"?mo(t,pe):I==="dangerouslySetInnerHTML"?(pe=pe?pe.__html:void 0,pe!=null&&Cr(t,pe)):I==="children"?typeof pe=="string"?(l!=="textarea"||pe!=="")&&vt(t,pe):typeof pe=="number"&&vt(t,""+pe):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(i.hasOwnProperty(I)?pe!=null&&I==="onScroll"&&Gt("scroll",t):pe!=null&&C(t,I,pe,Y))}switch(l){case"input":Ie(t),ue(t,v,!1);break;case"textarea":Ie(t),dt(t);break;case"option":v.value!=null&&t.setAttribute("value",""+ce(v.value));break;case"select":t.multiple=!!v.multiple,I=v.value,I!=null?Re(t,!!v.multiple,I,!1):v.defaultValue!=null&&Re(t,!!v.multiple,v.defaultValue,!0);break;default:typeof A.onClick=="function"&&(t.onclick=$u)}switch(l){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}}v&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return Vr(r),null;case 6:if(t&&r.stateNode!=null)Hy(t,r,t.memoizedProps,v);else{if(typeof v!="string"&&r.stateNode===null)throw Error(n(166));if(l=xi(vl.current),xi(jo.current),Yu(r)){if(v=r.stateNode,l=r.memoizedProps,v[Ao]=r,(I=v.nodeValue!==l)&&(t=wn,t!==null))switch(t.tag){case 3:qu(v.nodeValue,l,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&qu(v.nodeValue,l,(t.mode&1)!==0)}I&&(r.flags|=4)}else v=(l.nodeType===9?l:l.ownerDocument).createTextNode(v),v[Ao]=r,r.stateNode=v}return Vr(r),null;case 13:if(Yt(ir),v=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(tr&&vn!==null&&(r.mode&1)!==0&&(r.flags&128)===0)Vg(),ds(),r.flags|=98560,I=!1;else if(I=Yu(r),v!==null&&v.dehydrated!==null){if(t===null){if(!I)throw Error(n(318));if(I=r.memoizedState,I=I!==null?I.dehydrated:null,!I)throw Error(n(317));I[Ao]=r}else ds(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Vr(r),I=!1}else Xn!==null&&(Yf(Xn),Xn=null),I=!0;if(!I)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=l,r):(v=v!==null,v!==(t!==null&&t.memoizedState!==null)&&v&&(r.child.flags|=8192,(r.mode&1)!==0&&(t===null||(ir.current&1)!==0?_r===0&&(_r=3):Xf())),r.updateQueue!==null&&(r.flags|=4),Vr(r),null);case 4:return ms(),Ff(t,r),t===null&&fl(r.stateNode.containerInfo),Vr(r),null;case 10:return ff(r.type._context),Vr(r),null;case 17:return un(r.type)&&Hu(),Vr(r),null;case 19:if(Yt(ir),I=r.memoizedState,I===null)return Vr(r),null;if(v=(r.flags&128)!==0,Y=I.rendering,Y===null)if(v)_l(I,!1);else{if(_r!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(Y=tc(t),Y!==null){for(r.flags|=128,_l(I,!1),v=Y.updateQueue,v!==null&&(r.updateQueue=v,r.flags|=4),r.subtreeFlags=0,v=l,l=r.child;l!==null;)I=l,t=v,I.flags&=14680066,Y=I.alternate,Y===null?(I.childLanes=0,I.lanes=t,I.child=null,I.subtreeFlags=0,I.memoizedProps=null,I.memoizedState=null,I.updateQueue=null,I.dependencies=null,I.stateNode=null):(I.childLanes=Y.childLanes,I.lanes=Y.lanes,I.child=Y.child,I.subtreeFlags=0,I.deletions=null,I.memoizedProps=Y.memoizedProps,I.memoizedState=Y.memoizedState,I.updateQueue=Y.updateQueue,I.type=Y.type,t=Y.dependencies,I.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l=l.sibling;return Wt(ir,ir.current&1|2),r.child}t=t.sibling}I.tail!==null&&Ft()>vs&&(r.flags|=128,v=!0,_l(I,!1),r.lanes=4194304)}else{if(!v)if(t=tc(Y),t!==null){if(r.flags|=128,v=!0,l=t.updateQueue,l!==null&&(r.updateQueue=l,r.flags|=4),_l(I,!0),I.tail===null&&I.tailMode==="hidden"&&!Y.alternate&&!tr)return Vr(r),null}else 2*Ft()-I.renderingStartTime>vs&&l!==1073741824&&(r.flags|=128,v=!0,_l(I,!1),r.lanes=4194304);I.isBackwards?(Y.sibling=r.child,r.child=Y):(l=I.last,l!==null?l.sibling=Y:r.child=Y,I.last=Y)}return I.tail!==null?(r=I.tail,I.rendering=r,I.tail=r.sibling,I.renderingStartTime=Ft(),r.sibling=null,l=ir.current,Wt(ir,v?l&1|2:l&1),r):(Vr(r),null);case 22:case 23:return Qf(),v=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==v&&(r.flags|=8192),v&&(r.mode&1)!==0?(bn&1073741824)!==0&&(Vr(r),r.subtreeFlags&6&&(r.flags|=8192)):Vr(r),null;case 24:return null;case 25:return null}throw Error(n(156,r.tag))}function Q2(t,r){switch(af(r),r.tag){case 1:return un(r.type)&&Hu(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return ms(),Yt(ln),Yt(Kr),vf(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return yf(r),null;case 13:if(Yt(ir),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(n(340));ds()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return Yt(ir),null;case 4:return ms(),null;case 10:return ff(r.type._context),null;case 22:case 23:return Qf(),null;case 24:return null;default:return null}}var cc=!1,Gr=!1,X2=typeof WeakSet=="function"?WeakSet:Set,tt=null;function ys(t,r){var l=t.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(v){cr(t,r,v)}else l.current=null}function zf(t,r,l){try{l()}catch(v){cr(t,r,v)}}var Ky=!1;function J2(t,r){if(Zd=ci,t=be(),ve(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var v=l.getSelection&&l.getSelection();if(v&&v.rangeCount!==0){l=v.anchorNode;var A=v.anchorOffset,I=v.focusNode;v=v.focusOffset;try{l.nodeType,I.nodeType}catch{l=null;break e}var Y=0,se=-1,pe=-1,Oe=0,Fe=0,qe=t,Le=null;t:for(;;){for(var Qe;qe!==l||A!==0&&qe.nodeType!==3||(se=Y+A),qe!==I||v!==0&&qe.nodeType!==3||(pe=Y+v),qe.nodeType===3&&(Y+=qe.nodeValue.length),(Qe=qe.firstChild)!==null;)Le=qe,qe=Qe;for(;;){if(qe===t)break t;if(Le===l&&++Oe===A&&(se=Y),Le===I&&++Fe===v&&(pe=Y),(Qe=qe.nextSibling)!==null)break;qe=Le,Le=qe.parentNode}qe=Qe}l=se===-1||pe===-1?null:{start:se,end:pe}}else l=null}l=l||{start:0,end:0}}else l=null;for(Qd={focusedElem:t,selectionRange:l},ci=!1,tt=r;tt!==null;)if(r=tt,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,tt=t;else for(;tt!==null;){r=tt;try{var rt=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(rt!==null){var nt=rt.memoizedProps,fr=rt.memoizedState,Ne=r.stateNode,we=Ne.getSnapshotBeforeUpdate(r.elementType===r.type?nt:Jn(r.type,nt),fr);Ne.__reactInternalSnapshotBeforeUpdate=we}break;case 3:var Ce=r.stateNode.containerInfo;Ce.nodeType===1?Ce.textContent="":Ce.nodeType===9&&Ce.documentElement&&Ce.removeChild(Ce.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Ke){cr(r,r.return,Ke)}if(t=r.sibling,t!==null){t.return=r.return,tt=t;break}tt=r.return}return rt=Ky,Ky=!1,rt}function Nl(t,r,l){var v=r.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var A=v=v.next;do{if((A.tag&t)===t){var I=A.destroy;A.destroy=void 0,I!==void 0&&zf(r,l,I)}A=A.next}while(A!==v)}}function dc(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&t)===t){var v=l.create;l.destroy=v()}l=l.next}while(l!==r)}}function Bf(t){var r=t.ref;if(r!==null){var l=t.stateNode;switch(t.tag){case 5:t=l;break;default:t=l}typeof r=="function"?r(t):r.current=t}}function Wy(t){var r=t.alternate;r!==null&&(t.alternate=null,Wy(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[Ao],delete r[hl],delete r[tf],delete r[M2],delete r[I2])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Vy(t){return t.tag===5||t.tag===3||t.tag===4}function Gy(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Vy(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function qf(t,r,l){var v=t.tag;if(v===5||v===6)t=t.stateNode,r?l.nodeType===8?l.parentNode.insertBefore(t,r):l.insertBefore(t,r):(l.nodeType===8?(r=l.parentNode,r.insertBefore(t,l)):(r=l,r.appendChild(t)),l=l._reactRootContainer,l!=null||r.onclick!==null||(r.onclick=$u));else if(v!==4&&(t=t.child,t!==null))for(qf(t,r,l),t=t.sibling;t!==null;)qf(t,r,l),t=t.sibling}function $f(t,r,l){var v=t.tag;if(v===5||v===6)t=t.stateNode,r?l.insertBefore(t,r):l.appendChild(t);else if(v!==4&&(t=t.child,t!==null))for($f(t,r,l),t=t.sibling;t!==null;)$f(t,r,l),t=t.sibling}var Br=null,eo=!1;function $a(t,r,l){for(l=l.child;l!==null;)Yy(t,r,l),l=l.sibling}function Yy(t,r,l){if(Jr&&typeof Jr.onCommitFiberUnmount=="function")try{Jr.onCommitFiberUnmount(oi,l)}catch{}switch(l.tag){case 5:Gr||ys(l,r);case 6:var v=Br,A=eo;Br=null,$a(t,r,l),Br=v,eo=A,Br!==null&&(eo?(t=Br,l=l.stateNode,t.nodeType===8?t.parentNode.removeChild(l):t.removeChild(l)):Br.removeChild(l.stateNode));break;case 18:Br!==null&&(eo?(t=Br,l=l.stateNode,t.nodeType===8?ef(t.parentNode,l):t.nodeType===1&&ef(t,l),Vn(t)):ef(Br,l.stateNode));break;case 4:v=Br,A=eo,Br=l.stateNode.containerInfo,eo=!0,$a(t,r,l),Br=v,eo=A;break;case 0:case 11:case 14:case 15:if(!Gr&&(v=l.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){A=v=v.next;do{var I=A,Y=I.destroy;I=I.tag,Y!==void 0&&((I&2)!==0||(I&4)!==0)&&zf(l,r,Y),A=A.next}while(A!==v)}$a(t,r,l);break;case 1:if(!Gr&&(ys(l,r),v=l.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=l.memoizedProps,v.state=l.memoizedState,v.componentWillUnmount()}catch(se){cr(l,r,se)}$a(t,r,l);break;case 21:$a(t,r,l);break;case 22:l.mode&1?(Gr=(v=Gr)||l.memoizedState!==null,$a(t,r,l),Gr=v):$a(t,r,l);break;default:$a(t,r,l)}}function Zy(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var l=t.stateNode;l===null&&(l=t.stateNode=new X2),r.forEach(function(v){var A=lk.bind(null,t,v);l.has(v)||(l.add(v),v.then(A,A))})}}function to(t,r){var l=r.deletions;if(l!==null)for(var v=0;v<l.length;v++){var A=l[v];try{var I=t,Y=r,se=Y;e:for(;se!==null;){switch(se.tag){case 5:Br=se.stateNode,eo=!1;break e;case 3:Br=se.stateNode.containerInfo,eo=!0;break e;case 4:Br=se.stateNode.containerInfo,eo=!0;break e}se=se.return}if(Br===null)throw Error(n(160));Yy(I,Y,A),Br=null,eo=!1;var pe=A.alternate;pe!==null&&(pe.return=null),A.return=null}catch(Oe){cr(A,r,Oe)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)Qy(r,t),r=r.sibling}function Qy(t,r){var l=t.alternate,v=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(to(r,t),Oo(t),v&4){try{Nl(3,t,t.return),dc(3,t)}catch(nt){cr(t,t.return,nt)}try{Nl(5,t,t.return)}catch(nt){cr(t,t.return,nt)}}break;case 1:to(r,t),Oo(t),v&512&&l!==null&&ys(l,l.return);break;case 5:if(to(r,t),Oo(t),v&512&&l!==null&&ys(l,l.return),t.flags&32){var A=t.stateNode;try{vt(A,"")}catch(nt){cr(t,t.return,nt)}}if(v&4&&(A=t.stateNode,A!=null)){var I=t.memoizedProps,Y=l!==null?l.memoizedProps:I,se=t.type,pe=t.updateQueue;if(t.updateQueue=null,pe!==null)try{se==="input"&&I.type==="radio"&&I.name!=null&&Ot(A,I),mn(se,Y);var Oe=mn(se,I);for(Y=0;Y<pe.length;Y+=2){var Fe=pe[Y],qe=pe[Y+1];Fe==="style"?mo(A,qe):Fe==="dangerouslySetInnerHTML"?Cr(A,qe):Fe==="children"?vt(A,qe):C(A,Fe,qe,Oe)}switch(se){case"input":bt(A,I);break;case"textarea":ft(A,I);break;case"select":var Le=A._wrapperState.wasMultiple;A._wrapperState.wasMultiple=!!I.multiple;var Qe=I.value;Qe!=null?Re(A,!!I.multiple,Qe,!1):Le!==!!I.multiple&&(I.defaultValue!=null?Re(A,!!I.multiple,I.defaultValue,!0):Re(A,!!I.multiple,I.multiple?[]:"",!1))}A[hl]=I}catch(nt){cr(t,t.return,nt)}}break;case 6:if(to(r,t),Oo(t),v&4){if(t.stateNode===null)throw Error(n(162));A=t.stateNode,I=t.memoizedProps;try{A.nodeValue=I}catch(nt){cr(t,t.return,nt)}}break;case 3:if(to(r,t),Oo(t),v&4&&l!==null&&l.memoizedState.isDehydrated)try{Vn(r.containerInfo)}catch(nt){cr(t,t.return,nt)}break;case 4:to(r,t),Oo(t);break;case 13:to(r,t),Oo(t),A=t.child,A.flags&8192&&(I=A.memoizedState!==null,A.stateNode.isHidden=I,!I||A.alternate!==null&&A.alternate.memoizedState!==null||(Kf=Ft())),v&4&&Zy(t);break;case 22:if(Fe=l!==null&&l.memoizedState!==null,t.mode&1?(Gr=(Oe=Gr)||Fe,to(r,t),Gr=Oe):to(r,t),Oo(t),v&8192){if(Oe=t.memoizedState!==null,(t.stateNode.isHidden=Oe)&&!Fe&&(t.mode&1)!==0)for(tt=t,Fe=t.child;Fe!==null;){for(qe=tt=Fe;tt!==null;){switch(Le=tt,Qe=Le.child,Le.tag){case 0:case 11:case 14:case 15:Nl(4,Le,Le.return);break;case 1:ys(Le,Le.return);var rt=Le.stateNode;if(typeof rt.componentWillUnmount=="function"){v=Le,l=Le.return;try{r=v,rt.props=r.memoizedProps,rt.state=r.memoizedState,rt.componentWillUnmount()}catch(nt){cr(v,l,nt)}}break;case 5:ys(Le,Le.return);break;case 22:if(Le.memoizedState!==null){ew(qe);continue}}Qe!==null?(Qe.return=Le,tt=Qe):ew(qe)}Fe=Fe.sibling}e:for(Fe=null,qe=t;;){if(qe.tag===5){if(Fe===null){Fe=qe;try{A=qe.stateNode,Oe?(I=A.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none"):(se=qe.stateNode,pe=qe.memoizedProps.style,Y=pe!=null&&pe.hasOwnProperty("display")?pe.display:null,se.style.display=sn("display",Y))}catch(nt){cr(t,t.return,nt)}}}else if(qe.tag===6){if(Fe===null)try{qe.stateNode.nodeValue=Oe?"":qe.memoizedProps}catch(nt){cr(t,t.return,nt)}}else if((qe.tag!==22&&qe.tag!==23||qe.memoizedState===null||qe===t)&&qe.child!==null){qe.child.return=qe,qe=qe.child;continue}if(qe===t)break e;for(;qe.sibling===null;){if(qe.return===null||qe.return===t)break e;Fe===qe&&(Fe=null),qe=qe.return}Fe===qe&&(Fe=null),qe.sibling.return=qe.return,qe=qe.sibling}}break;case 19:to(r,t),Oo(t),v&4&&Zy(t);break;case 21:break;default:to(r,t),Oo(t)}}function Oo(t){var r=t.flags;if(r&2){try{e:{for(var l=t.return;l!==null;){if(Vy(l)){var v=l;break e}l=l.return}throw Error(n(160))}switch(v.tag){case 5:var A=v.stateNode;v.flags&32&&(vt(A,""),v.flags&=-33);var I=Gy(t);$f(t,I,A);break;case 3:case 4:var Y=v.stateNode.containerInfo,se=Gy(t);qf(t,se,Y);break;default:throw Error(n(161))}}catch(pe){cr(t,t.return,pe)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function ek(t,r,l){tt=t,Xy(t)}function Xy(t,r,l){for(var v=(t.mode&1)!==0;tt!==null;){var A=tt,I=A.child;if(A.tag===22&&v){var Y=A.memoizedState!==null||cc;if(!Y){var se=A.alternate,pe=se!==null&&se.memoizedState!==null||Gr;se=cc;var Oe=Gr;if(cc=Y,(Gr=pe)&&!Oe)for(tt=A;tt!==null;)Y=tt,pe=Y.child,Y.tag===22&&Y.memoizedState!==null?tw(A):pe!==null?(pe.return=Y,tt=pe):tw(A);for(;I!==null;)tt=I,Xy(I),I=I.sibling;tt=A,cc=se,Gr=Oe}Jy(t)}else(A.subtreeFlags&8772)!==0&&I!==null?(I.return=A,tt=I):Jy(t)}}function Jy(t){for(;tt!==null;){var r=tt;if((r.flags&8772)!==0){var l=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:Gr||dc(5,r);break;case 1:var v=r.stateNode;if(r.flags&4&&!Gr)if(l===null)v.componentDidMount();else{var A=r.elementType===r.type?l.memoizedProps:Jn(r.type,l.memoizedProps);v.componentDidUpdate(A,l.memoizedState,v.__reactInternalSnapshotBeforeUpdate)}var I=r.updateQueue;I!==null&&ey(r,I,v);break;case 3:var Y=r.updateQueue;if(Y!==null){if(l=null,r.child!==null)switch(r.child.tag){case 5:l=r.child.stateNode;break;case 1:l=r.child.stateNode}ey(r,Y,l)}break;case 5:var se=r.stateNode;if(l===null&&r.flags&4){l=se;var pe=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":pe.autoFocus&&l.focus();break;case"img":pe.src&&(l.src=pe.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var Oe=r.alternate;if(Oe!==null){var Fe=Oe.memoizedState;if(Fe!==null){var qe=Fe.dehydrated;qe!==null&&Vn(qe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Gr||r.flags&512&&Bf(r)}catch(Le){cr(r,r.return,Le)}}if(r===t){tt=null;break}if(l=r.sibling,l!==null){l.return=r.return,tt=l;break}tt=r.return}}function ew(t){for(;tt!==null;){var r=tt;if(r===t){tt=null;break}var l=r.sibling;if(l!==null){l.return=r.return,tt=l;break}tt=r.return}}function tw(t){for(;tt!==null;){var r=tt;try{switch(r.tag){case 0:case 11:case 15:var l=r.return;try{dc(4,r)}catch(pe){cr(r,l,pe)}break;case 1:var v=r.stateNode;if(typeof v.componentDidMount=="function"){var A=r.return;try{v.componentDidMount()}catch(pe){cr(r,A,pe)}}var I=r.return;try{Bf(r)}catch(pe){cr(r,I,pe)}break;case 5:var Y=r.return;try{Bf(r)}catch(pe){cr(r,Y,pe)}}}catch(pe){cr(r,r.return,pe)}if(r===t){tt=null;break}var se=r.sibling;if(se!==null){se.return=r.return,tt=se;break}tt=r.return}}var tk=Math.ceil,fc=N.ReactCurrentDispatcher,Uf=N.ReactCurrentOwner,In=N.ReactCurrentBatchConfig,Mt=0,Or=null,yr=null,qr=0,bn=0,ws=La(0),_r=0,El=null,Si=0,pc=0,Hf=0,Cl=null,dn=null,Kf=0,vs=1/0,ia=null,hc=!1,Wf=null,Ua=null,mc=!1,Ha=null,gc=0,Al=0,Vf=null,yc=-1,wc=0;function nn(){return(Mt&6)!==0?Ft():yc!==-1?yc:yc=Ft()}function Ka(t){return(t.mode&1)===0?1:(Mt&2)!==0&&qr!==0?qr&-qr:F2.transition!==null?(wc===0&&(wc=Ko()),wc):(t=Pt,t!==0||(t=window.event,t=t===void 0?16:fi(t.type)),t)}function ro(t,r,l,v){if(50<Al)throw Al=0,Vf=null,Error(n(185));Wo(t,l,v),((Mt&2)===0||t!==Or)&&(t===Or&&((Mt&2)===0&&(pc|=l),_r===4&&Wa(t,qr)),fn(t,v),l===1&&Mt===0&&(r.mode&1)===0&&(vs=Ft()+500,Wu&&za()))}function fn(t,r){var l=t.callbackNode;si(t,r);var v=ii(t,t===Or?qr:0);if(v===0)l!==null&&$i(l),t.callbackNode=null,t.callbackPriority=0;else if(r=v&-v,t.callbackPriority!==r){if(l!=null&&$i(l),r===1)t.tag===0?L2(nw.bind(null,t)):$g(nw.bind(null,t)),R2(function(){(Mt&6)===0&&za()}),l=null;else{switch(Gs(v)){case 1:l=xo;break;case 4:l=ni;break;case 16:l=xa;break;case 536870912:l=ko;break;default:l=xa}l=dw(l,rw.bind(null,t))}t.callbackPriority=r,t.callbackNode=l}}function rw(t,r){if(yc=-1,wc=0,(Mt&6)!==0)throw Error(n(327));var l=t.callbackNode;if(bs()&&t.callbackNode!==l)return null;var v=ii(t,t===Or?qr:0);if(v===0)return null;if((v&30)!==0||(v&t.expiredLanes)!==0||r)r=vc(t,v);else{r=v;var A=Mt;Mt|=2;var I=aw();(Or!==t||qr!==r)&&(ia=null,vs=Ft()+500,Ni(t,r));do try{ok();break}catch(se){ow(t,se)}while(!0);df(),fc.current=I,Mt=A,yr!==null?r=0:(Or=null,qr=0,r=_r)}if(r!==0){if(r===2&&(A=Ho(t),A!==0&&(v=A,r=Gf(t,A))),r===1)throw l=El,Ni(t,0),Wa(t,v),fn(t,Ft()),l;if(r===6)Wa(t,v);else{if(A=t.current.alternate,(v&30)===0&&!rk(A)&&(r=vc(t,v),r===2&&(I=Ho(t),I!==0&&(v=I,r=Gf(t,I))),r===1))throw l=El,Ni(t,0),Wa(t,v),fn(t,Ft()),l;switch(t.finishedWork=A,t.finishedLanes=v,r){case 0:case 1:throw Error(n(345));case 2:Ei(t,dn,ia);break;case 3:if(Wa(t,v),(v&130023424)===v&&(r=Kf+500-Ft(),10<r)){if(ii(t,0)!==0)break;if(A=t.suspendedLanes,(A&v)!==v){nn(),t.pingedLanes|=t.suspendedLanes&A;break}t.timeoutHandle=Jd(Ei.bind(null,t,dn,ia),r);break}Ei(t,dn,ia);break;case 4:if(Wa(t,v),(v&4194240)===v)break;for(r=t.eventTimes,A=-1;0<v;){var Y=31-mt(v);I=1<<Y,Y=r[Y],Y>A&&(A=Y),v&=~I}if(v=A,v=Ft()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*tk(v/1960))-v,10<v){t.timeoutHandle=Jd(Ei.bind(null,t,dn,ia),v);break}Ei(t,dn,ia);break;case 5:Ei(t,dn,ia);break;default:throw Error(n(329))}}}return fn(t,Ft()),t.callbackNode===l?rw.bind(null,t):null}function Gf(t,r){var l=Cl;return t.current.memoizedState.isDehydrated&&(Ni(t,r).flags|=256),t=vc(t,r),t!==2&&(r=dn,dn=l,r!==null&&Yf(r)),t}function Yf(t){dn===null?dn=t:dn.push.apply(dn,t)}function rk(t){for(var r=t;;){if(r.flags&16384){var l=r.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var v=0;v<l.length;v++){var A=l[v],I=A.getSnapshot;A=A.value;try{if(!fe(I(),A))return!1}catch{return!1}}}if(l=r.child,r.subtreeFlags&16384&&l!==null)l.return=r,r=l;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Wa(t,r){for(r&=~Hf,r&=~pc,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var l=31-mt(r),v=1<<l;t[l]=-1,r&=~v}}function nw(t){if((Mt&6)!==0)throw Error(n(327));bs();var r=ii(t,0);if((r&1)===0)return fn(t,Ft()),null;var l=vc(t,r);if(t.tag!==0&&l===2){var v=Ho(t);v!==0&&(r=v,l=Gf(t,v))}if(l===1)throw l=El,Ni(t,0),Wa(t,r),fn(t,Ft()),l;if(l===6)throw Error(n(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,Ei(t,dn,ia),fn(t,Ft()),null}function Zf(t,r){var l=Mt;Mt|=1;try{return t(r)}finally{Mt=l,Mt===0&&(vs=Ft()+500,Wu&&za())}}function _i(t){Ha!==null&&Ha.tag===0&&(Mt&6)===0&&bs();var r=Mt;Mt|=1;var l=In.transition,v=Pt;try{if(In.transition=null,Pt=1,t)return t()}finally{Pt=v,In.transition=l,Mt=r,(Mt&6)===0&&za()}}function Qf(){bn=ws.current,Yt(ws)}function Ni(t,r){t.finishedWork=null,t.finishedLanes=0;var l=t.timeoutHandle;if(l!==-1&&(t.timeoutHandle=-1,P2(l)),yr!==null)for(l=yr.return;l!==null;){var v=l;switch(af(v),v.tag){case 1:v=v.type.childContextTypes,v!=null&&Hu();break;case 3:ms(),Yt(ln),Yt(Kr),vf();break;case 5:yf(v);break;case 4:ms();break;case 13:Yt(ir);break;case 19:Yt(ir);break;case 10:ff(v.type._context);break;case 22:case 23:Qf()}l=l.return}if(Or=t,yr=t=Va(t.current,null),qr=bn=r,_r=0,El=null,Hf=pc=Si=0,dn=Cl=null,bi!==null){for(r=0;r<bi.length;r++)if(l=bi[r],v=l.interleaved,v!==null){l.interleaved=null;var A=v.next,I=l.pending;if(I!==null){var Y=I.next;I.next=A,v.next=Y}l.pending=v}bi=null}return t}function ow(t,r){do{var l=yr;try{if(df(),rc.current=ic,nc){for(var v=sr.memoizedState;v!==null;){var A=v.queue;A!==null&&(A.pending=null),v=v.next}nc=!1}if(ki=0,Tr=Sr=sr=null,bl=!1,xl=0,Uf.current=null,l===null||l.return===null){_r=1,El=r,yr=null;break}e:{var I=t,Y=l.return,se=l,pe=r;if(r=qr,se.flags|=32768,pe!==null&&typeof pe=="object"&&typeof pe.then=="function"){var Oe=pe,Fe=se,qe=Fe.tag;if((Fe.mode&1)===0&&(qe===0||qe===11||qe===15)){var Le=Fe.alternate;Le?(Fe.updateQueue=Le.updateQueue,Fe.memoizedState=Le.memoizedState,Fe.lanes=Le.lanes):(Fe.updateQueue=null,Fe.memoizedState=null)}var Qe=jy(Y);if(Qe!==null){Qe.flags&=-257,Ty(Qe,Y,se,I,r),Qe.mode&1&&Ay(I,Oe,r),r=Qe,pe=Oe;var rt=r.updateQueue;if(rt===null){var nt=new Set;nt.add(pe),r.updateQueue=nt}else rt.add(pe);break e}else{if((r&1)===0){Ay(I,Oe,r),Xf();break e}pe=Error(n(426))}}else if(tr&&se.mode&1){var fr=jy(Y);if(fr!==null){(fr.flags&65536)===0&&(fr.flags|=256),Ty(fr,Y,se,I,r),uf(gs(pe,se));break e}}I=pe=gs(pe,se),_r!==4&&(_r=2),Cl===null?Cl=[I]:Cl.push(I),I=Y;do{switch(I.tag){case 3:I.flags|=65536,r&=-r,I.lanes|=r;var Ne=Ey(I,pe,r);Jg(I,Ne);break e;case 1:se=pe;var we=I.type,Ce=I.stateNode;if((I.flags&128)===0&&(typeof we.getDerivedStateFromError=="function"||Ce!==null&&typeof Ce.componentDidCatch=="function"&&(Ua===null||!Ua.has(Ce)))){I.flags|=65536,r&=-r,I.lanes|=r;var Ke=Cy(I,se,r);Jg(I,Ke);break e}}I=I.return}while(I!==null)}sw(l)}catch(it){r=it,yr===l&&l!==null&&(yr=l=l.return);continue}break}while(!0)}function aw(){var t=fc.current;return fc.current=ic,t===null?ic:t}function Xf(){(_r===0||_r===3||_r===2)&&(_r=4),Or===null||(Si&268435455)===0&&(pc&268435455)===0||Wa(Or,qr)}function vc(t,r){var l=Mt;Mt|=2;var v=aw();(Or!==t||qr!==r)&&(ia=null,Ni(t,r));do try{nk();break}catch(A){ow(t,A)}while(!0);if(df(),Mt=l,fc.current=v,yr!==null)throw Error(n(261));return Or=null,qr=0,_r}function nk(){for(;yr!==null;)iw(yr)}function ok(){for(;yr!==null&&!or();)iw(yr)}function iw(t){var r=cw(t.alternate,t,bn);t.memoizedProps=t.pendingProps,r===null?sw(t):yr=r,Uf.current=null}function sw(t){var r=t;do{var l=r.alternate;if(t=r.return,(r.flags&32768)===0){if(l=Z2(l,r,bn),l!==null){yr=l;return}}else{if(l=Q2(l,r),l!==null){l.flags&=32767,yr=l;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{_r=6,yr=null;return}}if(r=r.sibling,r!==null){yr=r;return}yr=r=t}while(r!==null);_r===0&&(_r=5)}function Ei(t,r,l){var v=Pt,A=In.transition;try{In.transition=null,Pt=1,ak(t,r,l,v)}finally{In.transition=A,Pt=v}return null}function ak(t,r,l,v){do bs();while(Ha!==null);if((Mt&6)!==0)throw Error(n(327));l=t.finishedWork;var A=t.finishedLanes;if(l===null)return null;if(t.finishedWork=null,t.finishedLanes=0,l===t.current)throw Error(n(177));t.callbackNode=null,t.callbackPriority=0;var I=l.lanes|l.childLanes;if(Hi(t,I),t===Or&&(yr=Or=null,qr=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||mc||(mc=!0,dw(xa,function(){return bs(),null})),I=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||I){I=In.transition,In.transition=null;var Y=Pt;Pt=1;var se=Mt;Mt|=4,Uf.current=null,J2(t,l),Qy(l,t),ke(Qd),ci=!!Zd,Qd=Zd=null,t.current=l,ek(l),Uo(),Mt=se,Pt=Y,In.transition=I}else t.current=l;if(mc&&(mc=!1,Ha=t,gc=A),I=t.pendingLanes,I===0&&(Ua=null),bu(l.stateNode),fn(t,Ft()),r!==null)for(v=t.onRecoverableError,l=0;l<r.length;l++)A=r[l],v(A.value,{componentStack:A.stack,digest:A.digest});if(hc)throw hc=!1,t=Wf,Wf=null,t;return(gc&1)!==0&&t.tag!==0&&bs(),I=t.pendingLanes,(I&1)!==0?t===Vf?Al++:(Al=0,Vf=t):Al=0,za(),null}function bs(){if(Ha!==null){var t=Gs(gc),r=In.transition,l=Pt;try{if(In.transition=null,Pt=16>t?16:t,Ha===null)var v=!1;else{if(t=Ha,Ha=null,gc=0,(Mt&6)!==0)throw Error(n(331));var A=Mt;for(Mt|=4,tt=t.current;tt!==null;){var I=tt,Y=I.child;
vendor: 5,426 bytes, line 40
40if((tt.flags&16)!==0){var se=I.deletions;if(se!==null){for(var pe=0;pe<se.length;pe++){var Oe=se[pe];for(tt=Oe;tt!==null;){var Fe=tt;switch(Fe.tag){case 0:case 11:case 15:Nl(8,Fe,I)}var qe=Fe.child;if(qe!==null)qe.return=Fe,tt=qe;else for(;tt!==null;){Fe=tt;var Le=Fe.sibling,Qe=Fe.return;if(Wy(Fe),Fe===Oe){tt=null;break}if(Le!==null){Le.return=Qe,tt=Le;break}tt=Qe}}}var rt=I.alternate;if(rt!==null){var nt=rt.child;if(nt!==null){rt.child=null;do{var fr=nt.sibling;nt.sibling=null,nt=fr}while(nt!==null)}}tt=I}}if((I.subtreeFlags&2064)!==0&&Y!==null)Y.return=I,tt=Y;else e:for(;tt!==null;){if(I=tt,(I.flags&2048)!==0)switch(I.tag){case 0:case 11:case 15:Nl(9,I,I.return)}var Ne=I.sibling;if(Ne!==null){Ne.return=I.return,tt=Ne;break e}tt=I.return}}var we=t.current;for(tt=we;tt!==null;){Y=tt;var Ce=Y.child;if((Y.subtreeFlags&2064)!==0&&Ce!==null)Ce.return=Y,tt=Ce;else e:for(Y=we;tt!==null;){if(se=tt,(se.flags&2048)!==0)try{switch(se.tag){case 0:case 11:case 15:dc(9,se)}}catch(it){cr(se,se.return,it)}if(se===Y){tt=null;break e}var Ke=se.sibling;if(Ke!==null){Ke.return=se.return,tt=Ke;break e}tt=se.return}}if(Mt=A,za(),Jr&&typeof Jr.onPostCommitFiberRoot=="function")try{Jr.onPostCommitFiberRoot(oi,t)}catch{}v=!0}return v}finally{Pt=l,In.transition=r}}return!1}function lw(t,r,l){r=gs(l,r),r=Ey(t,r,1),t=qa(t,r,1),r=nn(),t!==null&&(Wo(t,1,r),fn(t,r))}function cr(t,r,l){if(t.tag===3)lw(t,t,l);else for(;r!==null;){if(r.tag===3){lw(r,t,l);break}else if(r.tag===1){var v=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(Ua===null||!Ua.has(v))){t=gs(l,t),t=Cy(r,t,1),r=qa(r,t,1),t=nn(),r!==null&&(Wo(r,1,t),fn(r,t));break}}r=r.return}}function ik(t,r,l){var v=t.pingCache;v!==null&&v.delete(r),r=nn(),t.pingedLanes|=t.suspendedLanes&l,Or===t&&(qr&l)===l&&(_r===4||_r===3&&(qr&130023424)===qr&&500>Ft()-Kf?Ni(t,0):Hf|=l),fn(t,r)}function uw(t,r){r===0&&((t.mode&1)===0?r=1:(r=ai,ai<<=1,(ai&130023424)===0&&(ai=4194304)));var l=nn();t=na(t,r),t!==null&&(Wo(t,r,l),fn(t,l))}function sk(t){var r=t.memoizedState,l=0;r!==null&&(l=r.retryLane),uw(t,l)}function lk(t,r){var l=0;switch(t.tag){case 13:var v=t.stateNode,A=t.memoizedState;A!==null&&(l=A.retryLane);break;case 19:v=t.stateNode;break;default:throw Error(n(314))}v!==null&&v.delete(r),uw(t,l)}var cw;cw=function(t,r,l){if(t!==null)if(t.memoizedProps!==r.pendingProps||ln.current)cn=!0;else{if((t.lanes&l)===0&&(r.flags&128)===0)return cn=!1,Y2(t,r,l);cn=(t.flags&131072)!==0}else cn=!1,tr&&(r.flags&1048576)!==0&&Ug(r,Gu,r.index);switch(r.lanes=0,r.tag){case 2:var v=r.type;uc(t,r),t=r.pendingProps;var A=ls(r,Kr.current);hs(r,l),A=kf(null,r,v,t,A,l);var I=Sf();return r.flags|=1,typeof A=="object"&&A!==null&&typeof A.render=="function"&&A.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,un(v)?(I=!0,Ku(r)):I=!1,r.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,mf(r),A.updater=sc,r.stateNode=A,A._reactInternals=r,jf(r,v,t,l),r=Rf(null,r,v,!0,I,l)):(r.tag=0,tr&&I&&of(r),rn(null,r,A,l),r=r.child),r;case 16:v=r.elementType;e:{switch(uc(t,r),t=r.pendingProps,A=v._init,v=A(v._payload),r.type=v,A=r.tag=ck(v),t=Jn(v,t),A){case 0:r=Pf(null,r,v,t,l);break e;case 1:r=Iy(null,r,v,t,l);break e;case 11:r=Oy(null,r,v,t,l);break e;case 14:r=Py(null,r,v,Jn(v.type,t),l);break e}throw Error(n(306,v,""))}return r;case 0:return v=r.type,A=r.pendingProps,A=r.elementType===v?A:Jn(v,A),Pf(t,r,v,A,l);case 1:return v=r.type,A=r.pendingProps,A=r.elementType===v?A:Jn(v,A),Iy(t,r,v,A,l);case 3:e:{if(Ly(r),t===null)throw Error(n(387));v=r.pendingProps,I=r.memoizedState,A=I.element,Xg(t,r),ec(r,v,null,l);var Y=r.memoizedState;if(v=Y.element,I.isDehydrated)if(I={element:v,isDehydrated:!1,cache:Y.cache,pendingSuspenseBoundaries:Y.pendingSuspenseBoundaries,transitions:Y.transitions},r.updateQueue.baseState=I,r.memoizedState=I,r.flags&256){A=gs(Error(n(423)),r),r=Fy(t,r,v,l,A);break e}else if(v!==A){A=gs(Error(n(424)),r),r=Fy(t,r,v,l,A);break e}else for(vn=Ia(r.stateNode.containerInfo.firstChild),wn=r,tr=!0,Xn=null,l=Zg(r,null,v,l),r.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(ds(),v===A){r=aa(t,r,l);break e}rn(t,r,v,l)}r=r.child}return r;case 5:return ty(r),t===null&&lf(r),v=r.type,A=r.pendingProps,I=t!==null?t.memoizedProps:null,Y=A.children,Xd(v,A)?Y=null:I!==null&&Xd(v,I)&&(r.flags|=32),My(t,r),rn(t,r,Y,l),r.child;case 6:return t===null&&lf(r),null;case 13:return zy(t,r,l);case 4:return gf(r,r.stateNode.containerInfo),v=r.pendingProps,t===null?r.child=fs(r,null,v,l):rn(t,r,v,l),r.child;case 11:return v=r.type,A=r.pendingProps,A=r.elementType===v?A:Jn(v,A),Oy(t,r,v,A,l);case 7:return rn(t,r,r.pendingProps,l),r.child;case 8:return rn(t,r,r.pendingProps.children,l),r.child;case 12:return rn(t,r,r.pendingProps.children,l),r.child;case 10:e:{if(v=r.type._context,A=r.pendingProps,I=r.memoizedProps,Y=A.value,Wt(Qu,v._currentValue),v._currentValue=Y,I!==null)if(fe(I.value,Y)){if(I.children===A.children&&!ln.current){r=aa(t,r,l);break e}}else for(I=r.child,I!==null&&(I.return=r);I!==null;){var se=I.dependencies;if(se!==null){Y=I.child;for(var pe=se.firstContext;pe!==null;){if(pe.context===v){if(I.tag===1){pe=oa(-1,l&-l),pe.tag=2;var Oe=I.updateQueue;if(Oe!==null){Oe=Oe.shared;var Fe=Oe.pending;Fe===null?pe.next=pe:(pe.next=Fe.next,Fe.next=pe),Oe.pending=pe}}I.lanes|=l,pe=I.alternate,pe!==null&&(pe.lanes|=l),pf(I.return,l,r),se.lanes|=l;break}pe=pe.next}}
vendor: 6,118 bytes, line 40
40else if(I.tag===10)Y=I.type===r.type?null:I.child;else if(I.tag===18){if(Y=I.return,Y===null)throw Error(n(341));Y.lanes|=l,se=Y.alternate,se!==null&&(se.lanes|=l),pf(Y,l,r),Y=I.sibling}else Y=I.child;if(Y!==null)Y.return=I;else for(Y=I;Y!==null;){if(Y===r){Y=null;break}if(I=Y.sibling,I!==null){I.return=Y.return,Y=I;break}Y=Y.return}I=Y}rn(t,r,A.children,l),r=r.child}return r;case 9:return A=r.type,v=r.pendingProps.children,hs(r,l),A=Dn(A),v=v(A),r.flags|=1,rn(t,r,v,l),r.child;case 14:return v=r.type,A=Jn(v,r.pendingProps),A=Jn(v.type,A),Py(t,r,v,A,l);case 15:return Ry(t,r,r.type,r.pendingProps,l);case 17:return v=r.type,A=r.pendingProps,A=r.elementType===v?A:Jn(v,A),uc(t,r),r.tag=1,un(v)?(t=!0,Ku(r)):t=!1,hs(r,l),_y(r,v,A),jf(r,v,A,l),Rf(null,r,v,!0,t,l);case 19:return qy(t,r,l);case 22:return Dy(t,r,l)}throw Error(n(156,r.tag))};function dw(t,r){return Ws(t,r)}function uk(t,r,l,v){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ln(t,r,l,v){return new uk(t,r,l,v)}function Jf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ck(t){if(typeof t=="function")return Jf(t)?1:0;if(t!=null){if(t=t.$$typeof,t===D)return 11;if(t===W)return 14}return 2}function Va(t,r){var l=t.alternate;return l===null?(l=Ln(t.tag,r,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=r,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&14680064,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,r=t.dependencies,l.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l}function bc(t,r,l,v,A,I){var Y=2;if(v=t,typeof t=="function")Jf(t)&&(Y=1);else if(typeof t=="string")Y=5;else e:switch(t){case P:return Ci(l.children,A,I,r);case z:Y=8,A|=8;break;case H:return t=Ln(12,l,r,A|2),t.elementType=H,t.lanes=I,t;case B:return t=Ln(13,l,r,A),t.elementType=B,t.lanes=I,t;case $:return t=Ln(19,l,r,A),t.elementType=$,t.lanes=I,t;case te:return xc(l,A,I,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case F:Y=10;break e;case T:Y=9;break e;case D:Y=11;break e;case W:Y=14;break e;case Q:Y=16,v=null;break e}throw Error(n(130,t==null?t:typeof t,""))}return r=Ln(Y,l,r,A),r.elementType=t,r.type=v,r.lanes=I,r}function Ci(t,r,l,v){return t=Ln(7,t,v,r),t.lanes=l,t}function xc(t,r,l,v){return t=Ln(22,t,v,r),t.elementType=te,t.lanes=l,t.stateNode={isHidden:!1},t}function ep(t,r,l){return t=Ln(6,t,null,r),t.lanes=l,t}function tp(t,r,l){return r=Ln(4,t.children!==null?t.children:[],t.key,r),r.lanes=l,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function dk(t,r,l,v,A){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=li(0),this.expirationTimes=li(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=li(0),this.identifierPrefix=v,this.onRecoverableError=A,this.mutableSourceEagerHydrationData=null}function rp(t,r,l,v,A,I,Y,se,pe){return t=new dk(t,r,l,se,pe),r===1?(r=1,I===!0&&(r|=8)):r=0,I=Ln(3,null,null,r),t.current=I,I.stateNode=t,I.memoizedState={element:v,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},mf(I),t}function fk(t,r,l){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:v==null?null:""+v,children:t,containerInfo:r,implementation:l}}function fw(t){if(!t)return Fa;t=t._reactInternals;e:{if(Ur(t)!==t||t.tag!==1)throw Error(n(170));var r=t;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(un(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(n(171))}if(t.tag===1){var l=t.type;if(un(l))return Bg(t,l,r)}return r}function pw(t,r,l,v,A,I,Y,se,pe){return t=rp(l,v,!0,t,A,I,Y,se,pe),t.context=fw(null),l=t.current,v=nn(),A=Ka(l),I=oa(v,A),I.callback=r??null,qa(l,I,A),t.current.lanes=A,Wo(t,A,v),fn(t,v),t}function kc(t,r,l,v){var A=r.current,I=nn(),Y=Ka(A);return l=fw(l),r.context===null?r.context=l:r.pendingContext=l,r=oa(I,Y),r.payload={element:t},v=v===void 0?null:v,v!==null&&(r.callback=v),t=qa(A,r,Y),t!==null&&(ro(t,A,Y,I),Ju(t,A,Y)),Y}function Sc(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function hw(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<r?l:r}}function np(t,r){hw(t,r),(t=t.alternate)&&hw(t,r)}function pk(){return null}var mw=typeof reportError=="function"?reportError:function(t){console.error(t)};function op(t){this._internalRoot=t}_c.prototype.render=op.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(n(409));kc(t,r,null,null)},_c.prototype.unmount=op.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;_i(function(){kc(null,t,null,null)}),r[Jo]=null}};function _c(t){this._internalRoot=t}_c.prototype.unstable_scheduleHydration=function(t){if(t){var r=_u();t={blockedOn:null,target:t,priority:r};for(var l=0;l<br.length&&r!==0&&r<br[l].priority;l++);br.splice(l,0,t),l===0&&Eu(t)}};function ap(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Nc(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function gw(){}function hk(t,r,l,v,A){if(A){if(typeof v=="function"){var I=v;v=function(){var Oe=Sc(Y);
vendor: 5,867 bytes, lines 40-49
40I.call(Oe)}}var Y=pw(r,v,t,0,null,!1,!1,"",gw);return t._reactRootContainer=Y,t[Jo]=Y.current,fl(t.nodeType===8?t.parentNode:t),_i(),Y}for(;A=t.lastChild;)t.removeChild(A);if(typeof v=="function"){var se=v;v=function(){var Oe=Sc(pe);se.call(Oe)}}var pe=rp(t,0,!1,null,null,!1,!1,"",gw);return t._reactRootContainer=pe,t[Jo]=pe.current,fl(t.nodeType===8?t.parentNode:t),_i(function(){kc(r,pe,l,v)}),pe}function Ec(t,r,l,v,A){var I=l._reactRootContainer;if(I){var Y=I;if(typeof A=="function"){var se=A;A=function(){var pe=Sc(Y);se.call(pe)}}kc(r,Y,t,A)}else Y=hk(l,r,t,A,v);return Sc(Y)}Su=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var l=ka(r.pendingLanes);l!==0&&(Ki(r,l|1),fn(r,Ft()),(Mt&6)===0&&(vs=Ft()+500,za()))}break;case 13:_i(function(){var v=na(t,1);if(v!==null){var A=nn();ro(v,t,1,A)}}),np(t,1)}},jt=function(t){if(t.tag===13){var r=na(t,134217728);if(r!==null){var l=nn();ro(r,t,134217728,l)}np(t,134217728)}},Ys=function(t){if(t.tag===13){var r=Ka(t),l=na(t,r);if(l!==null){var v=nn();ro(l,t,r,v)}np(t,r)}},_u=function(){return Pt},Nu=function(t,r){var l=Pt;try{return Pt=t,r()}finally{Pt=l}},Ve=function(t,r,l){switch(r){case"input":if(bt(t,l),r=l.name,l.type==="radio"&&r!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<l.length;r++){var v=l[r];if(v!==t&&v.form===t.form){var A=Uu(v);if(!A)throw Error(n(90));je(v),bt(v,A)}}}break;case"textarea":ft(t,l);break;case"select":r=l.value,r!=null&&Re(t,!!l.multiple,r,!1)}},Jt=Zf,gr=_i;var mk={usingClientEntryPoint:!1,Events:[ml,is,Uu,pt,qt,Zf]},jl={findFiberByHostInstance:gi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},gk={bundleType:jl.bundleType,version:jl.version,rendererPackageName:jl.rendererPackageName,rendererConfig:jl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:N.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Ks(t),t===null?null:t.stateNode},findFiberByHostInstance:jl.findFiberByHostInstance||pk,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 Cc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cc.isDisabled&&Cc.supportsFiber)try{oi=Cc.inject(gk),Jr=Cc}catch{}}return pn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mk,pn.createPortal=function(t,r){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ap(r))throw Error(n(200));return fk(t,r,null,l)},pn.createRoot=function(t,r){if(!ap(t))throw Error(n(299));var l=!1,v="",A=mw;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(v=r.identifierPrefix),r.onRecoverableError!==void 0&&(A=r.onRecoverableError)),r=rp(t,1,!1,null,null,l,!1,v,A),t[Jo]=r.current,fl(t.nodeType===8?t.parentNode:t),new op(r)},pn.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(n(188)):(t=Object.keys(t).join(","),Error(n(268,t)));return t=Ks(r),t=t===null?null:t.stateNode,t},pn.flushSync=function(t){return _i(t)},pn.hydrate=function(t,r,l){if(!Nc(r))throw Error(n(200));return Ec(null,t,r,!0,l)},pn.hydrateRoot=function(t,r,l){if(!ap(t))throw Error(n(405));var v=l!=null&&l.hydratedSources||null,A=!1,I="",Y=mw;if(l!=null&&(l.unstable_strictMode===!0&&(A=!0),l.identifierPrefix!==void 0&&(I=l.identifierPrefix),l.onRecoverableError!==void 0&&(Y=l.onRecoverableError)),r=pw(r,null,t,1,l??null,A,!1,I,Y),t[Jo]=r.current,fl(t),v)for(t=0;t<v.length;t++)l=v[t],A=l._getVersion,A=A(l._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[l,A]:r.mutableSourceEagerHydrationData.push(l,A);return new _c(r)},pn.render=function(t,r,l){if(!Nc(r))throw Error(n(200));return Ec(null,t,r,!1,l)},pn.unmountComponentAtNode=function(t){if(!Nc(t))throw Error(n(40));return t._reactRootContainer?(_i(function(){Ec(null,null,t,!1,function(){t._reactRootContainer=null,t[Jo]=null})}),!0):!1},pn.unstable_batchedUpdates=Zf,pn.unstable_renderSubtreeIntoContainer=function(t,r,l,v){if(!Nc(l))throw Error(n(200));if(t==null||t._reactInternals===void 0)throw Error(n(38));return Ec(t,r,l,!1,v)},pn.version="18.3.1-next-f1338f8080-20240426",pn}var _w;function Fm(){if(_w)return lp.exports;_w=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(o){console.error(o)}}return e(),lp.exports=_k(),lp.exports}var Nw;function Nk(){if(Nw)return Ac;Nw=1;var e=Fm();return Ac.createRoot=e.createRoot,Ac.hydrateRoot=e.hydrateRoot,Ac}var Ek=Nk();const Ew=uu(Ek);/** 41 * react-router v7.9.5 42 * 43 * Copyright (c) Remix Software Inc. 44 * 45 * This source code is licensed under the MIT license found in the 46 * LICENSE.md file in the root directory of this source tree. 47 * 48 * @license MIT 49 */var Cw="popstate";function Ck(e={}){function o(a,i){let{pathname:s,search:u,hash:p}=a.location;return sm("",{pathname:s,search:u,hash:p},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(a,i){return typeof i=="string"?i:Ql(i)}return jk(o,n,null,e)}function nr(e,o){if(e===!1||e===null||typeof e>"u")throw new Error(o)}function uo(e,o){if(!e){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function Ak(){return Math.random().toString(36).substring(2,10)}function Aw(e,o){return{usr:e.state,key:e.key,idx:o}}function sm(e,o,n=null,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof o=="str
49ing"?Ls(o):o,state:n,key:o&&o.key||a||Ak()}}function Ql({pathname:e="/",search:o="",hash:n=""}){return o&&o!=="?"&&(e+=o.charAt(0)==="?"?o:"?"+o),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Ls(e){let o={};if(e){let n=e.indexOf("#");n>=0&&(o.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(o.search=e.substring(a),e=e.substring(0,a)),e&&(o.pathname=e)}return o}function jk(e,o,n,a={}){let{window:i=document.defaultView,v5Compat:s=!1}=a,u=i.history,p="POP",h=null,g=w();g==null&&(g=0,u.replaceState({...u.state,idx:g},""));function w(){return(u.state||{idx:null}).idx}function d(){p="POP";let _=w(),b=_==null?null:_-g;g=_,h&&h({action:p,location:S.location,delta:b})}function f(_,b){p="PUSH";let x=sm(S.location,_,b);g=w()+1;let C=Aw(x,g),N=S.createHref(x);try{u.pushState(C,"",N)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;i.location.assign(N)}s&&h&&h({action:p,location:S.location,delta:1})}function m(_,b){p="REPLACE";let x=sm(S.location,_,b);g=w();let C=Aw(x,g),N=S.createHref(x);u.replaceState(C,"",N),s&&h&&h({action:p,location:S.location,delta:0})}function k(_){return Tk(_)}let S={get action(){return p},get location(){return e(i,u)},listen(_){if(h)throw new Error("A history only accepts one active listener");return i.addEventListener(Cw,d),h=_,()=>{i.removeEventListener(Cw,d),h=null}},createHref(_){return o(i,_)},createURL:k,encodeLocation(_){let b=k(_);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:f,replace:m,go(_){return u.go(_)}};return S}function Tk(e,o=!1){let n="http://localhost";
49typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),nr(n,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:Ql(e);return a=a.replace(/ $/,"%20"),!o&&a.startsWith("//")&&(a=n+a),new URL(a,n)}function mb(e,o,n="/"){return Ok(e,o,n,!1)}function Ok(e,o,n,a){let i=typeof o=="string"?Ls(o):o,s=ma(i.pathname||"/",n);if(s==null)return null;let u=gb(e);Pk(u);let p=null;for(let h=0;p==null&&h<u.length;++h){let g=Uk(s);p=qk(u[h],g,a)}return p}function gb(e,o=[],n=[],a="",i=!1){let s=(u,p,h=i,g)=>{let w={relativePath:g===void 0?u.path||"":g,caseSensitive:u.caseSensitive===!0,childrenIndex:p,route:u};if(w.relativePath.startsWith("/")){if(!w.relativePath.startsWith(a)&&h)return;nr(w.relativePath.startsWith(a),`Absolute route path "${w.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),w.relativePath=w.relativePath.slice(a.length)}let d=fa([a,w.relativePath]),f=n.concat(w);u.children&&u.children.length>0&&(nr(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),gb(u.children,o,f,d,h)),!(u.path==null&&!u.index)&&o.push({path:d,score:zk(d,u.index),routesMeta:f})};return e.forEach((u,p)=>{if(u.path===""||!u.path?.includes("?"))s(u,p);else for(let h of yb(u.path))s(u,p,!0,h)}),o}function yb(e){let o=e.split("/");if(o.length===0)return[];let[n,...a]=o,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(a.length===0)return i?[s,""]:[s];let u=yb(a.join("/")),p=[];return p.push(...u.map(h=>h===""?s:[s,h].join("/"))),i&&p.push(...u),p.map(h=>e.startsWith("/")&&h===""?"/":h)}function Pk(e){e.sort((o,n)=>o.score!==n.score?n.score-o.score:Bk(o.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}var Rk=/^:[\w-]+$/,Dk=3,Mk=2,Ik=1,Lk=10,Fk=-2,jw=e=>e==="*";function zk(e,o){let n=e.split("/"),a=n.length;return n.some(jw)&&(a+=Fk),o&&(a+=Mk),n.filter(i=>!jw(i)).reduce((i,s)=>i+(Rk.test(s)?Dk:s===""?Ik:Lk),a)}function Bk(e,o){return e.length===o.length&&e.slice(0,-1).every((a,i)=>a===o[i])?e[e.length-1]-o[o.length-1]:0}function qk(e,o,n=!1){let{routesMeta:a}=e,i={},s="/",u=[];for(let p=0;p<a.length;++p){let h=a[p],g=p===a.length-1,w=s==="/"?o:o.slice(s.length)||"/",d=Jc({path:h.relativePath,caseSensitive:h.caseSensitive,end:g},w),f=h.route;if(!d&&g&&n&&!a[a.length-1].route.index&&(d=Jc({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},w)),!d)return null;
49Object.assign(i,d.params),u.push({params:i,pathname:fa([s,d.pathname]),pathnameBase:Vk(fa([s,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(s=fa([s,d.pathnameBase]))}return u}function Jc(e,o){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=$k(e.path,e.caseSensitive,e.end),i=o.match(n);if(!i)return null;let s=i[0],u=s.replace(/(.)\/+$/,"$1"),p=i.slice(1);return{params:a.reduce((g,{paramName:w,isOptional:d},f)=>{if(w==="*"){let k=p[f]||"";u=s.slice(0,s.length-k.length).replace(/(.)\/+$/,"$1")}const m=p[f];return d&&!m?g[w]=void 0:g[w]=(m||"").replace(/%2F/g,"/"),g},{}),pathname:s,pathnameBase:u,pattern:e}}function $k(e,o=!1,n=!0){uo(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 a=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,p,h)=>(a.push({paramName:p,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,o?void 0:"i"),a]}function Uk(e){try{return e.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return uo(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),e}}function ma(e,o){if(o==="/")return e;if(!e.toLowerCase().startsWith(o.toLowerCase()))return null;let n=o.endsWith("/")?o.length-1:o.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}function Hk(e,o="/"){let{pathname:n,search:a="",hash:i=""}=typeof e=="string"?Ls(e):e;return{pathname:n?n.startsWith("/")?n:Kk(n,o):o,search:Gk(a),hash:Yk(i)}}function Kk(e,o){let n=o.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function dp(e,o,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${o}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Wk(e){return e.filter((o,n)=>n===0||o.route.path&&o.route.path.length>0)}function zm(e){let o=Wk(e);return o.map((n,a)=>a===o.length-1?n.pathname:n.pathnameBase)}function Bm(e,o,n,a=!1){let i;typeof e=="string"?i=Ls(e):(i={...e},nr(!i.pathname||!i.pathname.includes("?"),dp("?","pathname","search",i)),nr(!i.pathname||!i.pathname.includes("#"),dp("#","pathname","hash",i)),nr(!i.search||!i.search.includes("#"),dp("#","search","hash",i)));let s=e===""||i.pathname==="",u=s?"/":i.pathname,p;if(u==null)p=n;else{let d=o.length-1;if(!a&&u.startsWith("..")){let f=u.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}p=d>=0?o[d]:"/"}let h=Hk(i,p),g=u&&u!=="/"&&u.endsWith("/"),w=(s||u===".")&&n.endsWith("/");return!h.pathname.endsWith("/")&&(g||w)&&(h.pathname+="/"),h}var fa=e=>e.join("/").replace(/\/\/+/g,"/"),Vk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Gk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Yk=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Zk(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var wb=["POST","PUT","PATCH","DELETE"];new Set(wb);var Qk=["GET",...wb];new Set(Qk);var Fs=O.createContext(null);Fs.displayName="DataRouter";var md=O.createContext(null);md.displayName="DataRouterState";O.createContext(!1);var vb=O.createContext({isTransitioning:!1});vb.displayName="ViewTransition";var Xk=O.createContext(new Map);Xk.displayName="Fetchers";var Jk=O.createContext(null);Jk.displayName="Await";var po=O.createContext(null);po.displayName="Navigation";var cu=O.createContext(null);cu.displayName="Location";var ho=O.createContext({outlet:null,matches:[],isDataRoute:!1});ho.displayName="Route";var qm=O.createContext(null);qm.displayName="RouteError";function eS(e,{relative:o}={}){nr(zs(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=O.useContext(po),{hash:i,pathname:s,search:u}=du(e,{relative:o}),p=s;return n!=="/"&&(p=s==="/"?n:fa([n,s])),a.createHref({pathname:p,search:u,hash:i})}function zs(){return O.useContext(cu)!=null}function jn(){return nr(zs(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(cu).location}var bb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xb(e){O.useContext(po).static||O.useLayoutEffect(e)}function qo(){let{isDataRoute:e}=O.useContext(ho);return e?hS():tS()}function tS(){nr(zs(),"useNavigate() may be used only in the context of a <Router> component.");let e=O.useContext(Fs),{basename:o,navigator:n}=O.useContext(po),{matches:a}=O.useContext(ho),{pathname:i}=jn(),s=JSON.stringify(zm(a)),u=O.useRef(!1);return xb(()=>{u.current=!0}),O.useCallback((h,g={})=>
49{if(uo(u.current,bb),!u.current)return;if(typeof h=="number"){n.go(h);return}let w=Bm(h,JSON.parse(s),i,g.relative==="path");e==null&&o!=="/"&&(w.pathname=w.pathname==="/"?o:fa([o,w.pathname])),(g.replace?n.replace:n.push)(w,g.state,g)},[o,n,s,i,e])}O.createContext(null);function rS(){let{matches:e}=O.useContext(ho),o=e[e.length-1];return o?o.params:{}}function du(e,{relative:o}={}){let{matches:n}=O.useContext(ho),{pathname:a}=jn(),i=JSON.stringify(zm(n));return O.useMemo(()=>Bm(e,JSON.parse(i),a,o==="path"),[e,i,a,o])}function nS(e,o){return kb(e,o)}function kb(e,o,n,a,i){nr(zs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=O.useContext(po),{matches:u}=O.useContext(ho),p=u[u.length-1],h=p?p.params:{},g=p?p.pathname:"/",w=p?p.pathnameBase:"/",d=p&&p.route;{let x=d&&d.path||"";Sb(g,!d||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 50 51Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let f=jn(),m;if(o){let x=typeof o=="string"?Ls(o):o;nr(w==="/"||x.pathname?.startsWith(w),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${w}" but pathname "${x.pathname}" was given in the \`location\` prop.`),m=x}else m=f;let k=m.pathname||"/",S=k;if(w!=="/"){let x=w.replace(/^\//,"").split("/");S="/"+k.replace(/^\//,"").split("/").slice(x.length).join("/")}let _=mb(e,{pathname:S});uo(d||_!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),uo(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=lS(_&&_.map(x=>Object.assign({},x,{params:Object.assign({},h,x.params),pathname:fa([w,s.encodeLocation?s.encodeLocation(x.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?w:fa([w,s.encodeLocation?s.encodeLocation(x.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),u,n,a,i);return o&&b?O.createElement(cu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},b):b}function oS(){let e=pS(),o=Zk(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:a},s={padding:"2px 4px",backgroundColor:a},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=O.createElement(O.Fragment,null,O.createElement("p",null,"ð¿ Hey developer ð"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:s},"ErrorBoundary")," or"," ",O.createElement("code",{style:s},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},o),n?O.createElement("pre",{style:i},n):null,u)}var aS=O.createElement(oS,null),iS=class extends O.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,o){return o.location!==e.location||o.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:o.error,location:o.location,revalidation:e.revalidation||o.revalidation}}componentDidCatch(e,o){this.props.unstable_onError?this.props.unstable_onError(e,o):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?O.createElement(ho.Provider,{value:this.props.routeContext},O.createElement(qm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function sS({routeContext:e,match:o,children:n}){let a=O.useContext(Fs);return a&&a.static&&a.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=o.route.id),O.createElement(ho.Provider,{value:e},n)}function lS(e,o=[],n=null,a=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(o.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,u=n?.errors;if(u!=null){let g=s.findIndex(w=>w.route.id&&u?.[w.route.id]!==void 0);nr(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),s=s.slice(0,Math.min(s.length,g+1))}let p=!1,h=-1;if(n)for(let g=0;g<s.length;g++){let w=s[g];if((w.route.HydrateFallback||w.route.hydrateFallbackElement)&&(h=g),w.route.id){let{loaderData:d,errors:f}
51=n,m=w.route.loader&&!d.hasOwnProperty(w.route.id)&&(!f||f[w.route.id]===void 0);if(w.route.lazy||m){p=!0,h>=0?s=s.slice(0,h+1):s=[s[0]];break}}}return s.reduceRight((g,w,d)=>{let f,m=!1,k=null,S=null;n&&(f=u&&w.route.id?u[w.route.id]:void 0,k=w.route.errorElement||aS,p&&(h<0&&d===0?(Sb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,S=null):h===d&&(m=!0,S=w.route.hydrateFallbackElement||null)));let _=o.concat(s.slice(0,d+1)),b=()=>{let x;return f?x=k:m?x=S:w.route.Component?x=O.createElement(w.route.Component,null):w.route.element?x=w.route.element:x=g,O.createElement(sS,{match:w,routeContext:{outlet:g,matches:_,isDataRoute:n!=null},children:x})};return n&&(w.route.ErrorBoundary||w.route.errorElement||d===0)?O.createElement(iS,{location:n.location,revalidation:n.revalidation,component:k,error:f,children:b(),routeContext:{outlet:null,matches:_,isDataRoute:!0},unstable_onError:a}):b()},null)}function $m(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function uS(e){let o=O.useContext(Fs);return nr(o,$m(e)),o}function cS(e){let o=O.useContext(md);return nr(o,$m(e)),o}function dS(e){let o=O.useContext(ho);return nr(o,$m(e)),o}function Um(e){let o=dS(e),n=o.matches[o.matches.length-1];return nr(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function fS(){return Um("useRouteId")}function pS(){let e=O.useContext(qm),o=cS("useRouteError"),n=Um("useRouteError");return e!==void 0?e:o.errors?.[n]}function hS(){let{router:e}=uS("useNavigate"),o=Um("useNavigate"),n=O.useRef(!1);return xb(()=>{n.current=!0}),O.useCallback(async(i,s={})=>{uo(n.current,bb),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:o,...s}))},[e,o])}var Tw={};function Sb(e,o,n){!o&&!Tw[e]&&(Tw[e]=!0,uo(!1,n))}O.memo(mS);function mS({routes:e,future:o,state:n,unstable_onError:a}){return kb(e,void 0,n,a,o)}function _b({to:e,replace:o,state:n,relative:a}){nr(zs(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=O.useContext(po);uo(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=O.useContext(ho),{pathname:u}=jn(),p=qo(),h=Bm(e,zm(s),u,a==="path"),g=JSON.stringify(h);return O.useEffect(()=>{p(JSON.parse(g),{replace:o,state:n,relative:a})},[p,g,a,o,n]),null}function wr(e){nr(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function gS({basename:e="/",children:o=null,location:n,navigationType:a="POP",navigator:i,static:s=!1}){nr(!zs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),p=O.useMemo(()=>({basename:u,navigator:i,static:s,future:{}}),[u,i,s]);typeof n=="string"&&(n=Ls(n));let{pathname:h="/",search:g="",hash:w="",state:d=null,key:f="default"}=n,m=O.useMemo(()=>{let k=ma(h,u);return k==null?null:{location:{pathname:k,search:g,hash:w,state:d,key:f},navigationType:a}},[u,h,g,w,d,f,a]);return uo(m!=null,`<Router basename="${u}"> is not able to match the URL "${h}${g}${w}" because it does not start with the basename, so the <Router> won't render anything.`),m==null?null:O.createElement(po.Provider,{value:p},O.createElement(cu.Provider,{children:o,value:m}))}function yS({children:e,location:o}){return nS(lm(e),o)}function lm(e,o=[]){let n=[];return O.Children.forEach(e,(a,i)=>{if(!O.isValidElement(a))return;let s=[...o,i];if(a.type===O.Fragment){n.push.apply(n,lm(a.props.children,s));return}nr(a.type===wr,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),nr(!a.props.index||!a.props.children,"An index route cannot have child routes.");let u={id:a.props.id||s.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,
51shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(u.children=lm(a.props.children,s)),n.push(u)}),n}var Uc="get",Hc="application/x-www-form-urlencoded";function gd(e){return e!=null&&typeof e.tagName=="string"}function wS(e){return gd(e)&&e.tagName.toLowerCase()==="button"}function vS(e){return gd(e)&&e.tagName.toLowerCase()==="form"}function bS(e){return gd(e)&&e.tagName.toLowerCase()==="input"}function xS(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function kS(e,o){return e.button===0&&(!o||o==="_self")&&!xS(e)}var jc=null;function SS(){if(jc===null)try{new FormData(document.createElement("form"),0),jc=!1}catch{jc=!0}return jc}var _S=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function fp(e){return e!=null&&!_S.has(e)?(uo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Hc}"`),null):e}function NS(e,o){let n,a,i,s,u;if(vS(e)){let p=e.getAttribute("action");a=p?ma(p,o):null,n=e.getAttribute("method")||Uc,i=fp(e.getAttribute("enctype"))||Hc,s=new FormData(e)}else if(wS(e)||bS(e)&&(e.type==="submit"||e.type==="image")){let p=e.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||p.getAttribute("action");if(a=h?ma(h,o):null,n=e.getAttribute("formmethod")||p.getAttribute("method")||Uc,i=fp(e.getAttribute("formenctype"))||fp(p.getAttribute("enctype"))||Hc,s=new FormData(p,e),!SS()){let{name:g,type:w,value:d}=e;if(w==="image"){let f=g?`${g}.`:"";s.append(`${f}x`,"0"),s.append(`${f}y`,"0")}else g&&s.append(g,d)}}else{if(gd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Uc,a=null,i=Hc,u=e}return s&&i==="text/plain"&&(u=s,s=void 0),{action:a,method:n.toLowerCase(),encType:i,formData:s,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Hm(e,o){if(e===!1||e===null||typeof e>"u")throw new Error(o)}function ES(e,o,n){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return a.pathname==="/"?a.pathname=`_root.${n}`:o&&ma(a.pathname,o)==="/"?a.pathname=`${o.replace(/\/$/,"")}/_root.${n}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${n}`,a}async function CS(e,o){if(e.id in o)return o[e.id];try{let n=await import(e.module);return o[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function AS(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function jS(e,o,n){let a=await Promise.all(e.map(async i=>{let s=o.routes[i.route.id];if(s){let u=await CS(s,n);return u.links?u.links():[]}return[]}));return RS(a.flat(1).filter(AS).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Ow(e,o,n,a,i,s){let u=(h,g)=>n[g]?h.route.id!==n[g].route.id:!0,p=(h,g)=>n[g].pathname!==h.pathname||n[g].route.path?.endsWith("*")&&n[g].params["*"]!==h.params["*"];return s==="assets"?o.filter((h,g)=>u(h,g)||p(h,g)):s==="data"?o.filter((h,g)=>{let w=a.routes[h.route.id];if(!w||!w.hasLoader)return!1;if(u(h,g)||p(h,g))return!0;if(h.route.shouldRevalidate){let d=h.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function TS(e,o,{includeHydrateFallback:n}={}){return OS(e.map(a=>{let i=o.routes[a.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function OS(e){return[...new Set(e)]}function PS(e){let o={},n=Object.keys(e).sort();for(let a of n)o[a]=e[a];return o}function RS(e,o){let n=new Set;return new Set(o),e.reduce((a,i)=>{let s=JSON.stringify(PS(i));return n.has(s)||(n.add(s),a.push({key:s,link:i})),a},[])}function Nb(){let e=O.useContext(Fs);return Hm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function DS(){let e=O.useContext(md);return Hm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Km=O.createContext(void 0);Km.displayName="FrameworkContext";function Eb(){let e=O.useContext(Km);return Hm(e,"You must render this element inside a <HydratedRouter> element"),e}function MS(e,o){let n=O.useContext(Km),[a,i]=O.useState(!1),[s,u]=O.useState(!1),{onFocus:p,onBlur:h,onMouseEnter:g,onMouseLeave:w,onTouchStart:d}=o,f=O.useRef(null);O.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let S=b=>{b.forEach(x=>{u(x.isIntersecting)})},_=new IntersectionObserver(S,{threshold:.5});return f.current&&_.observe(f.current),()=>{_.disconnect()}}},[e]),O.useEffect(()=>{if(a){let S=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(S)}}},[a]);let m=()=>{i(!0)},k=()=>{i(!1),u(!1)};return n?e!=="intent"?[s,f,{}]:[s,f,{onFocus:Ol(p,m),onBlur:Ol(h,k),onMouseEnter:Ol(g,m),onMouseLeave:Ol(w,k),onTouchStart:Ol(d,m)}]:[!1,f,{}]}function Ol(e,o){return n=>{e&&e(n),n.defaultPrevented||o(n)}}function IS({page:e,...o}){let{router:n}=Nb(),a=O.useMemo(()=>mb(n.routes,e,n.basename),[n.routes,e,n.basename]);return a?O.createElement(FS,{page:e,matches:a,...o}):null}function LS(e){let{manifest:o,routeModules:n}=Eb(),[a,i]=O.useState([]);return O.useEffect(()=>{let s=!1;return jS(e,o,n).then(u=>{s||i(u)}),()=>{s=!0}},[e,o,n]),a}function FS({page:e,matches:o,...n}){let a=jn(),{manifest:i,routeModules:s}=Eb(),{basename:u}=Nb(),{loaderData:p,matches:h}=DS(),g=O.useMemo(()=>Ow(e,o,h,i,a,"data"),[e,o,h,i,a]),w=O.useMemo(()=>Ow(e,o,h,i,a,"assets"),[e,o,h,i,a]),d=O.useMemo(()=>
51{if(e===a.pathname+a.search+a.hash)return[];let k=new Set,S=!1;if(o.forEach(b=>{let x=i.routes[b.route.id];!x||!x.hasLoader||(!g.some(C=>C.route.id===b.route.id)&&b.route.id in p&&s[b.route.id]?.shouldRevalidate||x.hasClientLoader?S=!0:k.add(b.route.id))}),k.size===0)return[];let _=ES(e,u,"data");return S&&k.size>0&&_.searchParams.set("_routes",o.filter(b=>k.has(b.route.id)).map(b=>b.route.id).join(",")),[_.pathname+_.search]},[u,p,a,i,g,o,e,s]),f=O.useMemo(()=>TS(w,i),[w,i]),m=LS(w);return O.createElement(O.Fragment,null,d.map(k=>O.createElement("link",{key:k,rel:"prefetch",as:"fetch",href:k,...n})),f.map(k=>O.createElement("link",{key:k,rel:"modulepreload",href:k,...n})),m.map(({key:k,link:S})=>O.createElement("link",{key:k,nonce:n.nonce,...S})))}function zS(...e){return o=>{e.forEach(n=>{typeof n=="function"?n(o):n!=null&&(n.current=o)})}}var Cb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Cb&&(window.__reactRouterVersion="7.9.5")}catch{}function BS({basename:e,children:o,window:n}){let a=O.useRef();a.current==null&&(a.current=Ck({window:n,v5Compat:!0}));let i=a.current,[s,u]=O.useState({action:i.action,location:i.location}),p=O.useCallback(h=>{O.startTransition(()=>u(h))},[u]);return O.useLayoutEffect(()=>i.listen(p),[i,p]),O.createElement(gS,{basename:e,children:o,location:s.location,navigationType:s.action,navigator:i})}var Ab=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,io=O.forwardRef(function({onClick:o,discover:n="render",prefetch:a="none",relative:i,reloadDocument:s,replace:u,state:p,target:h,to:g,preventScrollReset:w,viewTransition:d,...f},m){let{basename:k}=O.useContext(po),S=typeof g=="string"&&Ab.test(g),_,b=!1;if(typeof g=="string"&&S&&(_=g,Cb))try{let H=new URL(window.location.href),F=g.startsWith("//")?new URL(H.protocol+g):new URL(g),T=ma(F.pathname,k);F.origin===H.origin&&T!=null?g=T+F.search+F.hash:b=!0}catch{uo(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=eS(g,{relative:i}),[C,N,j]=MS(a,f),L=HS(g,{replace:u,state:p,target:h,preventScrollReset:w,relative:i,viewTransition:d});function P(H){o&&o(H),H.defaultPrevented||L(H)}let z=O.createElement("a",{...f,...j,href:_||x,onClick:b||s?o:P,ref:zS(m,N),target:h,"data-discover":!S&&n==="render"?"true":void 0});return C&&!S?O.createElement(O.Fragment,null,z,O.createElement(IS,{page:x})):z});io.displayName="Link";var qS=O.forwardRef(function({"aria-current":o="page",caseSensitive:n=!1,className:a="",end:i=!1,style:s,to:u,viewTransition:p,children:h,...g},w){let d=du(u,{relative:g.relative}),f=jn(),m=O.useContext(md),{navigator:k,basename:S}=O.useContext(po),_=m!=null&&YS(d)&&p===!0,b=k.encodeLocation?k.encodeLocation(d).pathname:d.pathname,x=f.pathname,C=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;n||(x=x.toLowerCase(),C=C?C.toLowerCase():null,b=b.toLowerCase()),C&&S&&(C=ma(C,S)||C);const N=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let j=x===b||!i&&x.startsWith(b)&&x.charAt(N)==="/",L=C!=null&&(C===b||!i&&C.startsWith(b)&&C.charAt(b.length)==="/"),P={isActive:j,isPending:L,isTransitioning:_},z=j?o:void 0,H;typeof a=="function"?H=a(P):H=[a,j?"active":null,L?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(P):s;return O.createElement(io,{...g,"aria-current":z,className:H,ref:w,style:F,to:u,viewTransition:p},typeof h=="function"?h(P):h)});qS.displayName="NavLink";var $S=O.forwardRef(({discover:e="render",fetcherKey:o,navigate:n,reloadDocument:a,replace:i,state:s,method:u=Uc,action:p,onSubmit:h,relative:g,preventScrollReset:w,viewTransition:d,...f},m)=>{let k=VS(),S=GS(p,{relative:g}),_=u.toLowerCase()==="get"?"get":"post",b=typeof p=="string"&&Ab.test(p),x=C=>{if(h&&h(C),C.defaultPrevented)return;C.preventDefault();let N=C.nativeEvent.submitter,j=N?.getAttribute("formmethod")||u;k(N||C.currentTarget,{fetcherKey:o,method:j,navigate:n,replace:i,state:s,relative:g,preventScrollReset:w,viewTransition:d})};return O.createElement("form",{ref:m,method:_,action:S,onSubmit:a?h:x,...f,"data-discover":!b&&e==="render"?"true":void 0})});$S.displayName="Form";function US(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jb(e){let o=O.useContext(Fs);return nr(o,US(e)),o}function HS(e,{target:o,replace:n,state:a,preventScrollReset:i,relative:s,viewTransition:u}={}){let p=qo(),h=jn(),g=du(e,{relative:s});return O.useCallback(w=>{if(kS(w,o)){w.preventDefault();let d=n!==void 0?n:Ql(h)===Ql(g);p(e,{replace:d,state:a,preventScrollReset:i,relative:s,viewTransition:u})}},[h,p,g,n,a,o,e,i,s,u])}var KS=0,WS=()=>`__${String(++KS)}__`;function VS(){let{router:e}=jb("useSubmit"),{basename:o}=O.useContext(po),n=fS();return O.useCallback(async(a,i={})=>{let{action:s,method:u,encType:p,formData:h,body:g}=NS(a,o);if(i.navigate===!1){let w=i.fetcherKey||WS();await e.fetch(w,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:h,body:g,formMethod:i.method||u,formEncType:i.encType||p,flushSync:i.flushSync})}else await e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:h,body:g,formMethod:i.method||u,formEncType:i.encType||p,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,o,n])}function GS(e,{relative:o}={}){let{basename:n}=O.useContext(po),a=O.useContext(ho);nr(a,"useFormAction must be used inside a RouteContext");let[i]=a.matches.slice(-1),s={...du(e||".",{relative:o})},u=jn();if(e==null){s.search=u.search;let p=new URLSearchParams(s.search),h=p.getAll("index");if(h.some(w=>w==="")){p.delete("index"),h.filter(d=>
51d).forEach(d=>p.append("index",d));let w=p.toString();s.search=w?`?${w}`:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:fa([n,s.pathname])),Ql(s)}function YS(e,{relative:o}={}){let n=O.useContext(vb);nr(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=jb("useViewTransitionState"),i=du(e,{relative:o});if(!n.isTransitioning)return!1;let s=ma(n.currentLocation.pathname,a)||n.currentLocation.pathname,u=ma(n.nextLocation.pathname,a)||n.nextLocation.pathname;return Jc(i.pathname,u)!=null||Jc(i.pathname,s)!=null}var yd=Fm();const ZS=uu(yd);var QS=(e,o,n,a,i,s,u,p)=>{let h=document.documentElement,g=["light","dark"];function w(m){(Array.isArray(e)?e:[e]).forEach(k=>{let S=k==="class",_=S&&s?i.map(b=>s[b]||b):i;S?(h.classList.remove(..._),h.classList.add(s&&s[m]?s[m]:m)):h.setAttribute(k,m)}),d(m)}function d(m){p&&g.includes(m)&&(h.style.colorScheme=m)}function f(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(a)w(a);else try{let m=localStorage.getItem(o)||n,k=u&&m==="system"?f():m;w(k)}catch{}},Pw=["light","dark"],Tb="(prefers-color-scheme: dark)",XS=typeof window>"u",Wm=O.createContext(void 0),JS={setTheme:e=>{},themes:[]},e4=()=>{var e;return(e=O.useContext(Wm))!=null?e:JS},t4=e=>O.useContext(Wm)?O.createElement(O.Fragment,null,e.children):O.createElement(n4,{...e}),r4=["light","dark"],n4=({forcedTheme:e,disableTransitionOnChange:o=!1,enableSystem:n=!0,enableColorScheme:a=!0,storageKey:i="theme",themes:s=r4,defaultTheme:u=n?"system":"light",attribute:p="data-theme",value:h,children:g,nonce:w,scriptProps:d})=>{let[f,m]=O.useState(()=>a4(i,u)),[k,S]=O.useState(()=>f==="system"?pp():f),_=h?Object.values(h):s,b=O.useCallback(j=>{let L=j;if(!L)return;j==="system"&&n&&(L=pp());let P=h?h[L]:L,z=o?i4(w):null,H=document.documentElement,F=T=>{T==="class"?(H.classList.remove(..._),P&&H.classList.add(P)):T.startsWith("data-")&&(P?H.setAttribute(T,P):H.removeAttribute(T))};if(Array.isArray(p)?p.forEach(F):F(p),a){let T=Pw.includes(u)?u:null,D=Pw.includes(L)?L:T;H.style.colorScheme=D}z?.()},[w]),x=O.useCallback(j=>{let L=typeof j=="function"?j(f):j;m(L);try{localStorage.setItem(i,L)}catch{}},[f]),C=O.useCallback(j=>{let L=pp(j);S(L),f==="system"&&n&&!e&&b("system")},[f,e]);O.useEffect(()=>{let j=window.matchMedia(Tb);return j.addListener(C),C(j),()=>j.removeListener(C)},[C]),O.useEffect(()=>{let j=L=>{L.key===i&&(L.newValue?m(L.newValue):x(u))};return window.addEventListener("storage",j),()=>window.removeEventListener("storage",j)},[x]),O.useEffect(()=>{b(e??f)},[e,f]);let N=O.useMemo(()=>({theme:f,setTheme:x,forcedTheme:e,resolvedTheme:f==="system"?k:f,themes:n?[...s,"system"]:s,systemTheme:n?k:void 0}),[f,x,e,k,n,s]);return O.createElement(Wm.Provider,{value:N},O.createElement(o4,{forcedTheme:e,storageKey:i,attribute:p,enableSystem:n,enableColorScheme:a,defaultTheme:u,value:h,themes:s,nonce:w,scriptProps:d}),g)},o4=O.memo(({forcedTheme:e,storageKey:o,attribute:n,enableSystem:a,enableColorScheme:i,defaultTheme:s,value:u,themes:p,nonce:h,scriptProps:g})=>{let w=JSON.stringify([n,o,s,e,p,u,a,i]).slice(1,-1);return O.createElement("script",{...g,suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(${QS.toString()})(${w})`}})}),a4=(e,o)=>{if(XS)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||o},i4=e=>{let o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(o)},1)}},pp=e=>(e||(e=window.matchMedia(Tb)),e.matches?"dark":"light");function s4(e){if(typeof document>"u")return;let o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",o.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const l4=e=>{switch(e){case"success":return d4;case"info":return p4;case"warning":return f4;case"error":return h4;default:return null}},u4=Array(12).fill(0),c4=({visible:e,className:o})=>He.createElement("div",{className:["sonner-loading-wrapper",o].filter(
vendor: 6,040 bytes, line 51
51Boolean).join(" "),"data-visible":e},He.createElement("div",{className:"sonner-spinner"},u4.map((n,a)=>He.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),d4=He.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},He.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"})),f4=He.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},He.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"})),p4=He.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},He.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"})),h4=He.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},He.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"})),m4=He.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"},He.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),He.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),g4=()=>{const[e,o]=He.useState(document.hidden);return He.useEffect(()=>{const n=()=>{o(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let um=1;class y4{constructor(){this.subscribe=o=>(this.subscribers.push(o),()=>{const n=this.subscribers.indexOf(o);this.subscribers.splice(n,1)}),this.publish=o=>{this.subscribers.forEach(n=>n(o))},this.addToast=o=>{this.publish(o),this.toasts=[...this.toasts,o]},this.create=o=>{var n;const{message:a,...i}=o,s=typeof o?.id=="number"||((n=o.id)==null?void 0:n.length)>0?o.id:um++,u=this.toasts.find(h=>h.id===s),p=o.dismissible===void 0?!0:o.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),u?this.toasts=this.toasts.map(h=>h.id===s?(this.publish({...h,...o,id:s,title:a}),{...h,...o,id:s,dismissible:p,title:a}):h):this.addToast({title:a,...i,dismissible:p,id:s}),s},this.dismiss=o=>(o?(this.dismissedToasts.add(o),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:o,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(a=>a({id:n.id,dismiss:!0}))}),o),this.message=(o,n)=>this.create({...n,message:o}),this.error=(o,n)=>this.create({...n,message:o,type:"error"}),this.success=(o,n)=>this.create({...n,type:"success",message:o}),this.info=(o,n)=>this.create({...n,type:"info",message:o}),this.warning=(o,n)=>this.create({...n,type:"warning",message:o}),this.loading=(o,n)=>this.create({...n,type:"loading",message:o}),this.promise=(o,n)=>{if(!n)return;let a;n.loading!==void 0&&(a=this.create({...n,promise:o,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(o instanceof Function?o():o);let s=a!==void 0,u;const p=i.then(async g=>{if(u=["resolve",g],He.isValidElement(g))s=!1,this.create({id:a,type:"default",message:g});else if(v4(g)&&!g.ok){s=!1;const d=typeof n.error=="function"?await n.error(`HTTP error! status: ${g.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${g.status}`):n.description,k=typeof d=="object"&&!He.isValidElement(d)?d:{message:d};this.create({id:a,type:"error",description:f,...k})}else if(g instanceof Error){s=!1;const d=typeof n.error=="function"?await n.error(g):n.error,f=typeof n.description=="function"?await n.description(g):n.description,k=typeof d=="object"&&!He.isValidElement(d)?d:{message:d};this.create({id:a,type:"error",description:f,...k})}else if(n.success!==void 0){s=!1;const d=typeof n.success=="function"?await n.success(g):n.success,f=typeof n.description=="function"?await n.description(g):n.description,k=typeof d=="object"&&!He.isValidElement(d)?d:{message:d};this.create({id:a,type:"success",description:f,...k})}}).catch(async g=>{if(u=["reject",g],n.error!==void 0){s=!1;const w=typeof n.error=="function"?await n.error(g):n.error,d=typeof n.description=="function"?await n.description(g):n.description,m=typeof w=="object"&&!He.isValidElement(w)?w:{message:w};this.create({id:a,type:"error",description:d,...m})}}).finally(()=>{s&&(this.dismiss(a),a=void 0),n.finally==null||n.finally.call(n)}),h=()=>new Promise((g,w)=>p.then(()=>u[0]==="reject"?w(u[1]):g(u[1])).catch(w));return typeof a!="string"&&typeof a!="number"?{unwrap:h}:Object.assign(a,{unwrap:h})},this.custom=(o,n)=>{const a=n?.id||um++;return this.create({jsx:o(a),id:a,...n}),a},this.getActiveToasts=()=>this.toasts.filter(o=>!this.dismissedToasts.has(o.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const hn=new y4,w4=(e,o)=>{const n=o?.id||um++;return hn.addToast({title:e,...o,id:n}),n},v4=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",b4=w4,x4=()=>hn.toasts,k4=()=>hn.getActiveToasts(),st=Object.assign(b4,{success:hn.success,info:hn.info,warning:hn.warning,error:hn.error,custom:hn.custom,message:hn.message,promise:hn.promise,dismiss:hn.dismiss,loading:hn.loading},{getHistory:x4,getToasts:k4});s4
vendor: 14,873 bytes, line 51
51("[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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%)}[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left: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);background:var(--normal-bg);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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,0)) translateX(var(--swipe-amount-x,0));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{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{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{from{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-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-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-sonner-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]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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%)}");function
vendor: 819 bytes, line 51
51Tc(e){return e.label!==void 0}const S4=3,_4="24px",N4="16px",Rw=4e3,E4=356,C4=14,A4=45,j4=200;function Po(...e){return e.filter(Boolean).join(" ")}function T4(e){const[o,n]=e.split("-"),a=[];return o&&a.push(o),n&&a.push(n),a}const O4=e=>{var o,n,a,i,s,u,p,h,g;const{invert:w,toast:d,unstyled:f,interacting:m,setHeights:k,visibleToasts:S,heights:_,index:b,toasts:x,expanded:C,removeToast:N,defaultRichColors:j,closeButton:L,style:P,cancelButtonStyle:z,actionButtonStyle:H,className:F="",descriptionClassName:T="",duration:D,position:B,gap:$,expandByDefault:W,classNames:Q,icons:te,closeButtonAriaLabel:Z="Close toast"}=e,[J,V]=He.useState(null),[M,K]=He.useState(null),[X,ie]=He.useState(!1),[oe,ee]=He.useState(!1),[ne,ce]=He.useState(!1),[ae,Ae]=He.useState(!1),[Ie,je]=He.useState(!1),[ze,Xe]=He.useState(0),[ot,Ot]=
vendor: 6,312 bytes, line 51
51He.useState(0),bt=He.useRef(d.duration||D||Rw),ue=He.useRef(null),ye=He.useRef(null),Te=b===0,Re=b+1<=S,Pe=d.type,at=d.dismissible!==!1,ft=d.className||"",dt=d.descriptionClassName||"",Bt=He.useMemo(()=>_.findIndex(pt=>pt.toastId===d.id)||0,[_,d.id]),Ht=He.useMemo(()=>{var pt;return(pt=d.closeButton)!=null?pt:L},[d.closeButton,L]),At=He.useMemo(()=>d.duration||D||Rw,[d.duration,D]),Cr=He.useRef(0),vt=He.useRef(0),Kt=He.useRef(0),hr=He.useRef(null),[sn,mo]=B.split("-"),Yr=He.useMemo(()=>_.reduce((pt,qt,Jt)=>Jt>=Bt?pt:pt+qt.height,0),[_,Bt]),Je=g4(),mn=d.invert||w,Ir=Pe==="loading";vt.current=He.useMemo(()=>Bt*$+Yr,[Bt,Yr]),He.useEffect(()=>{bt.current=At},[At]),He.useEffect(()=>{ie(!0)},[]),He.useEffect(()=>{const pt=ye.current;if(pt){const qt=pt.getBoundingClientRect().height;return Ot(qt),k(Jt=>[{toastId:d.id,height:qt,position:d.position},...Jt]),()=>k(Jt=>Jt.filter(gr=>gr.toastId!==d.id))}},[k,d.id]),He.useLayoutEffect(()=>{if(!X)return;const pt=ye.current,qt=pt.style.height;pt.style.height="auto";const Jt=pt.getBoundingClientRect().height;pt.style.height=qt,Ot(Jt),k(gr=>gr.find(Ut=>Ut.toastId===d.id)?gr.map(Ut=>Ut.toastId===d.id?{...Ut,height:Jt}:Ut):[{toastId:d.id,height:Jt,position:d.position},...gr])},[X,d.title,d.description,k,d.id,d.jsx,d.action,d.cancel]);const mr=He.useCallback(()=>{ee(!0),Xe(vt.current),k(pt=>pt.filter(qt=>qt.toastId!==d.id)),setTimeout(()=>{N(d)},j4)},[d,N,k,vt]);He.useEffect(()=>{if(d.promise&&Pe==="loading"||d.duration===1/0||d.type==="loading")return;let pt;return C||m||Je?(()=>{if(Kt.current<Cr.current){const gr=new Date().getTime()-Cr.current;bt.current=bt.current-gr}Kt.current=new Date().getTime()})():(()=>{bt.current!==1/0&&(Cr.current=new Date().getTime(),pt=setTimeout(()=>{d.onAutoClose==null||d.onAutoClose.call(d,d),mr()},bt.current))})(),()=>clearTimeout(pt)},[C,m,d,Pe,Je,mr]),He.useEffect(()=>{d.delete&&(mr(),d.onDismiss==null||d.onDismiss.call(d,d))},[mr,d.delete]);function Ve(){var pt;if(te?.loading){var qt;return He.createElement("div",{className:Po(Q?.loader,d==null||(qt=d.classNames)==null?void 0:qt.loader,"sonner-loader"),"data-visible":Pe==="loading"},te.loading)}return He.createElement(c4,{className:Po(Q?.loader,d==null||(pt=d.classNames)==null?void 0:pt.loader),visible:Pe==="loading"})}const Zr=d.icon||te?.[Pe]||l4(Pe);var Qr,Tn;return He.createElement("li",{tabIndex:0,ref:ye,className:Po(F,ft,Q?.toast,d==null||(o=d.classNames)==null?void 0:o.toast,Q?.default,Q?.[Pe],d==null||(n=d.classNames)==null?void 0:n[Pe]),"data-sonner-toast":"","data-rich-colors":(Qr=d.richColors)!=null?Qr:j,"data-styled":!(d.jsx||d.unstyled||f),"data-mounted":X,"data-promise":!!d.promise,"data-swiped":Ie,"data-removed":oe,"data-visible":Re,"data-y-position":sn,"data-x-position":mo,"data-index":b,"data-front":Te,"data-swiping":ne,"data-dismissible":at,"data-type":Pe,"data-invert":mn,"data-swipe-out":ae,"data-swipe-direction":M,"data-expanded":!!(C||W&&X),"data-testid":d.testId,style:{"--index":b,"--toasts-before":b,"--z-index":x.length-b,"--offset":`${oe?ze:vt.current}px`,"--initial-height":W?"auto":`${ot}px`,...P,...d.style},onDragEnd:()=>{ce(!1),V(null),hr.current=null},onPointerDown:pt=>{pt.button!==2&&(Ir||!at||(ue.current=new Date,Xe(vt.current),pt.target.setPointerCapture(pt.pointerId),pt.target.tagName!=="BUTTON"&&(ce(!0),hr.current={x:pt.clientX,y:pt.clientY})))},onPointerUp:()=>{var pt,qt,Jt;if(ae||!at)return;hr.current=null;const gr=Number(((pt=ye.current)==null?void 0:pt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Xr=Number(((qt=ye.current)==null?void 0:qt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ut=new Date().getTime()-((Jt=ue.current)==null?void 0:Jt.getTime()),ur=J==="x"?gr:Xr,gn=Math.abs(ur)/Ut;if(Math.abs(ur)>=A4||gn>.11){Xe(vt.current),d.onDismiss==null||d.onDismiss.call(d,d),K(J==="x"?gr>0?"right":"left":Xr>0?"down":"up"),mr(),Ae(!0);return}else{var kt,It;(kt=ye.current)==null||kt.style.setProperty("--swipe-amount-x","0px"),(It=ye.current)==null||It.style.setProperty("--swipe-amount-y","0px")}je(!1),ce(!1),V(null)},onPointerMove:pt=>{var qt,Jt,gr;if(!hr.current||!at||((qt=window.getSelection())==null?void 0:qt.toString().length)>0)return;const Ut=pt.clientY-hr.current.y,ur=pt.clientX-hr.current.x;var gn;const kt=(gn=e.swipeDirections)!=null?gn:T4(B);!J&&(Math.abs(ur)>1||Math.abs(Ut)>1)&&V(Math.abs(ur)>Math.abs(Ut)?"x":"y");let It={x:0,y:0};const go=Lr=>1/(1.5+Math.abs(Lr)/20);if(J==="y"){if(kt.includes("top")||kt.includes("bottom"))if(kt.includes("top")&&Ut<0||kt.includes("bottom")&&Ut>0)It.y=Ut;else{const Lr=Ut*go(Ut);It.y=Math.abs(Lr)<Math.abs(Ut)?Lr:Ut}}else if(J==="x"&&(kt.includes("left")||kt.includes("right")))if(kt.includes("left")&&ur<0||kt.includes("right")&&ur>0)It.x=ur;else{const Lr=ur*go(ur);It.x=Math.abs(Lr)<Math.abs(ur)?Lr:ur}(Math.abs(It.x)>0||Math.abs(It.y)>0)&&je(!0),(Jt=ye.current)==null||Jt.style.setProperty("--swipe-amount-x",`${It.x}px`),(gr=ye.current)==null||gr.style.setProperty("--swipe-amount-y",`${It.y}px`)}},Ht&&!d.jsx&&Pe!=="loading"?He.createElement("button",{"aria-label":Z,"data-disabled":Ir,"data-close-button":!0,onClick:Ir||!at?()=>{}:()=>{mr(),d.onDismiss==null||d.onDismiss.call(d,d)},className:Po(Q?.closeButton,d==null||(a=d.classNames)==null?void 0:a.closeButton)},(Tn=te?.close)!=null?Tn:m4):null,(Pe||d.icon||d.promise)&&d.icon!==null&&(te?.[Pe]!==null||d.icon)?He.createElement("div",{"data-icon":"",className:Po(Q?.icon,d==null||(i=d.classNames)==null?void 0:i.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Ve():null,d.type!=="loading"?Zr:null):null,He.createElement("div",{"data-content":"",className:Po(Q?.content,d==null||(s=d.classNames)==null?void 0:s.content)},He.createElement("div",{"data-title":"",className:Po(Q?.title,d==null||(u=d.classNames)==null?void 0:u.title)},d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title),d.description?He.createElement("div",{"data-description":"",className:Po(T,dt,Q?.description,d==null||(p=d.classNames)==null?void 0:p.description)},typeof d.description=="function"?d.description():d.description):null),He.isValidElement(d.cancel)?d.cancel:d.cancel&&Tc(d.cancel)?He.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||z,onClick:pt=>{Tc(d.cancel)&&at&&(d.cancel.onClick==null||d.cancel.onClick.call(
vendor: 6,376 bytes, line 51
51d.cancel,pt),mr())},className:Po(Q?.cancelButton,d==null||(h=d.classNames)==null?void 0:h.cancelButton)},d.cancel.label):null,He.isValidElement(d.action)?d.action:d.action&&Tc(d.action)?He.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||H,onClick:pt=>{Tc(d.action)&&(d.action.onClick==null||d.action.onClick.call(d.action,pt),!pt.defaultPrevented&&mr())},className:Po(Q?.actionButton,d==null||(g=d.classNames)==null?void 0:g.actionButton)},d.action.label):null)};function Dw(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function P4(e,o){const n={};return[e,o].forEach((a,i)=>{const s=i===1,u=s?"--mobile-offset":"--offset",p=s?N4:_4;function h(g){["top","right","bottom","left"].forEach(w=>{n[`${u}-${w}`]=typeof g=="number"?`${g}px`:g})}typeof a=="number"||typeof a=="string"?h(a):typeof a=="object"?["top","right","bottom","left"].forEach(g=>{a[g]===void 0?n[`${u}-${g}`]=p:n[`${u}-${g}`]=typeof a[g]=="number"?`${a[g]}px`:a[g]}):h(p)}),n}const R4=He.forwardRef(function(o,n){const{id:a,invert:i,position:s="bottom-right",hotkey:u=["altKey","KeyT"],expand:p,closeButton:h,className:g,offset:w,mobileOffset:d,theme:f="light",richColors:m,duration:k,style:S,visibleToasts:_=S4,toastOptions:b,dir:x=Dw(),gap:C=C4,icons:N,containerAriaLabel:j="Notifications"}=o,[L,P]=He.useState([]),z=He.useMemo(()=>a?L.filter(X=>X.toasterId===a):L.filter(X=>!X.toasterId),[L,a]),H=He.useMemo(()=>Array.from(new Set([s].concat(z.filter(X=>X.position).map(X=>X.position)))),[z,s]),[F,T]=He.useState([]),[D,B]=He.useState(!1),[$,W]=He.useState(!1),[Q,te]=He.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Z=He.useRef(null),J=u.join("+").replace(/Key/g,"").replace(/Digit/g,""),V=He.useRef(null),M=He.useRef(!1),K=He.useCallback(X=>{P(ie=>{var oe;return(oe=ie.find(ee=>ee.id===X.id))!=null&&oe.delete||hn.dismiss(X.id),ie.filter(({id:ee})=>ee!==X.id)})},[]);return He.useEffect(()=>hn.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{P(ie=>ie.map(oe=>oe.id===X.id?{...oe,delete:!0}:oe))});return}setTimeout(()=>{ZS.flushSync(()=>{P(ie=>{const oe=ie.findIndex(ee=>ee.id===X.id);return oe!==-1?[...ie.slice(0,oe),{...ie[oe],...X},...ie.slice(oe+1)]:[X,...ie]})})})}),[L]),He.useEffect(()=>{if(f!=="system"){te(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?te("dark"):te("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:ie})=>{te(ie?"dark":"light")})}catch{X.addListener(({matches:oe})=>{try{te(oe?"dark":"light")}catch(ee){console.error(ee)}})}},[f]),He.useEffect(()=>{L.length<=1&&B(!1)},[L]),He.useEffect(()=>{const X=ie=>{var oe;if(u.every(ce=>ie[ce]||ie.code===ce)){var ne;B(!0),(ne=Z.current)==null||ne.focus()}ie.code==="Escape"&&(document.activeElement===Z.current||(oe=Z.current)!=null&&oe.contains(document.activeElement))&&B(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[u]),He.useEffect(()=>{if(Z.current)return()=>{V.current&&(V.current.focus({preventScroll:!0}),V.current=null,M.current=!1)}},[Z.current]),He.createElement("section",{ref:n,"aria-label":`${j} ${J}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},H.map((X,ie)=>{var oe;const[ee,ne]=X.split("-");return z.length?He.createElement("ol",{key:X,dir:x==="auto"?Dw():x,tabIndex:-1,ref:Z,className:g,"data-sonner-toaster":!0,"data-sonner-theme":Q,"data-y-position":ee,"data-x-position":ne,style:{"--front-toast-height":`${((oe=F[0])==null?void 0:oe.height)||0}px`,"--width":`${E4}px`,"--gap":`${C}px`,...S,...P4(w,d)},onBlur:ce=>{M.current&&!ce.currentTarget.contains(ce.relatedTarget)&&(M.current=!1,V.current&&(V.current.focus({preventScroll:!0}),V.current=null))},onFocus:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||M.current||(M.current=!0,V.current=ce.relatedTarget)},onMouseEnter:()=>B(!0),onMouseMove:()=>B(!0),onMouseLeave:()=>{$||B(!1)},onDragEnd:()=>B(!1),onPointerDown:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||W(!0)},onPointerUp:()=>W(!1)},z.filter(ce=>!ce.position&&ie===0||ce.position===X).map((ce,ae)=>{var Ae,Ie;return He.createElement(O4,{key:ce.id,icons:N,index:ae,toast:ce,defaultRichColors:m,duration:(Ae=b?.duration)!=null?Ae:k,className:b?.className,descriptionClassName:b?.descriptionClassName,invert:i,visibleToasts:_,closeButton:(Ie=b?.closeButton)!=null?Ie:h,interacting:$,position:X,style:b?.style,unstyled:b?.unstyled,classNames:b?.classNames,cancelButtonStyle:b?.cancelButtonStyle,actionButtonStyle:b?.actionButtonStyle,closeButtonAriaLabel:b?.closeButtonAriaLabel,removeToast:K,toasts:z.filter(je=>je.position==ce.position),heights:F.filter(je=>je.position==ce.position),setHeights:T,expandByDefault:p,gap:C,expanded:D,swipeDirections:o.swipeDirections})})):null}))}),D4="modulepreload",M4=function(e){return"/"+e},Mw={},Ob=function(o,n,a){let i=Promise.resolve();if(n&&n.length>0){let u=function(g){return Promise.all(g.map(w=>Promise.resolve(w).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const p=document.querySelector("meta[property=csp-nonce]"),h=p?.nonce||p?.getAttribute("nonce");i=u(n.map(g=>{if(g=M4(g),g in Mw)return;Mw[g]=!0;const w=g.endsWith(".css"),d=w?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${d}`))return;const f=document.createElement("link");if(f.rel=w?"stylesheet":D4,w||(f.as="script"),f.crossOrigin="",f.href=g,h&&f.setAttribute("nonce",h),document.head.appendChild(f),w)return new Promise((m,k)=>{f.addEventListener("load",m),f.addEventListener("error",()=>k(new Error(`Unable to preload CSS for ${g}`)))})}))}function s(u){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=u,window.dispatchEvent(p),!p.defaultPrevented)throw u}return i.then(u=>{for(const p of u||[])p.status==="rejected"&&s(p.reason);return o().catch(s)})};var Kc={exports:{}},I4=Kc.exports,Iw;function L4(){return Iw||(Iw=1,(function(e,o){(function(n,a){e.exports=a()}
vendor: 15,298 bytes, lines 51-53
51)(I4,function(){var n=function(y,E){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,q){R.__proto__=q}||function(R,q){for(var U in q)Object.prototype.hasOwnProperty.call(q,U)&&(R[U]=q[U])})(y,E)},a=function(){return(a=Object.assign||function(y){for(var E,R=1,q=arguments.length;R<q;R++)for(var U in E=arguments[R])Object.prototype.hasOwnProperty.call(E,U)&&(y[U]=E[U]);return y}).apply(this,arguments)};function i(y,E,R){for(var q,U=0,G=E.length;U<G;U++)!q&&U in E||((q=q||Array.prototype.slice.call(E,0,U))[U]=E[U]);return y.concat(q||Array.prototype.slice.call(E))}var s=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Ll,u=Object.keys,p=Array.isArray;function h(y,E){return typeof E!="object"||u(E).forEach(function(R){y[R]=E[R]}),y}typeof Promise>"u"||s.Promise||(s.Promise=Promise);var g=Object.getPrototypeOf,w={}.hasOwnProperty;function d(y,E){return w.call(y,E)}function f(y,E){typeof E=="function"&&(E=E(g(y))),(typeof Reflect>"u"?u:Reflect.ownKeys)(E).forEach(function(R){k(y,R,E[R])})}var m=Object.defineProperty;function k(y,E,R,q){m(y,E,h(R&&d(R,"get")&&typeof R.get=="function"?{get:R.get,set:R.set,configurable:!0}:{value:R,configurable:!0,writable:!0},q))}function S(y){return{from:function(E){return y.prototype=Object.create(E.prototype),k(y.prototype,"constructor",y),{extend:f.bind(null,y.prototype)}}}}var _=Object.getOwnPropertyDescriptor,b=[].slice;function x(y,E,R){return b.call(y,E,R)}function C(y,E){return E(y)}function N(y){if(!y)throw new Error("Assertion Failed")}function j(y){s.setImmediate?setImmediate(y):setTimeout(y,0)}function L(y,E){if(typeof E=="string"&&d(y,E))return y[E];if(!E)return y;if(typeof E!="string"){for(var R=[],q=0,U=E.length;q<U;++q){var G=L(y,E[q]);R.push(G)}return R}var re=E.indexOf(".");if(re!==-1){var le=y[E.substr(0,re)];return le==null?void 0:L(le,E.substr(re+1))}}function P(y,E,R){if(y&&E!==void 0&&!("isFrozen"in Object&&Object.isFrozen(y)))if(typeof E!="string"&&"length"in E){N(typeof R!="string"&&"length"in R);for(var q=0,U=E.length;q<U;++q)P(y,E[q],R[q])}else{var G,re,le=E.indexOf(".");le!==-1?(G=E.substr(0,le),(re=E.substr(le+1))===""?R===void 0?p(y)&&!isNaN(parseInt(G))?y.splice(G,1):delete y[G]:y[G]=R:P(le=!(le=y[G])||!d(y,G)?y[G]={}:le,re,R)):R===void 0?p(y)&&!isNaN(parseInt(E))?y.splice(E,1):delete y[E]:y[E]=R}}function z(y){var E,R={};for(E in y)d(y,E)&&(R[E]=y[E]);return R}var H=[].concat;function F(y){return H.apply([],y)}var Bt="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(F([8,16,32,64].map(function(y){return["Int","Uint","Float"].map(function(E){return E+y+"Array"})}))).filter(function(y){return s[y]}),T=new Set(Bt.map(function(y){return s[y]})),D=null;function B(y){return D=new WeakMap,y=(function E(R){if(!R||typeof R!="object")return R;var q=D.get(R);if(q)return q;if(p(R)){q=[],D.set(R,q);for(var U=0,G=R.length;U<G;++U)q.push(E(R[U]))}else if(T.has(R.constructor))q=R;else{var re,le=g(R);for(re in q=le===Object.prototype?{}:Object.create(le),D.set(R,q),R)d(R,re)&&(q[re]=E(R[re]))}return q})(y),D=null,y}var $={}.toString;function W(y){return $.call(y).slice(8,-1)}var Q=typeof Symbol<"u"?Symbol.iterator:"@@iterator",te=typeof Q=="symbol"?function(y){var E;return y!=null&&(E=y[Q])&&E.apply(y)}:function(){return null};function Z(y,E){return E=y.indexOf(E),0<=E&&y.splice(E,1),0<=E}var J={};function V(y){var E,R,q,U;if(arguments.length===1){if(p(y))return y.slice();if(this===J&&typeof y=="string")return[y];if(U=te(y)){for(R=[];!(q=U.next()).done;)R.push(q.value);return R}if(y==null)return[y];if(typeof(E=y.length)!="number")return[y];for(R=new Array(E);E--;)R[E]=y[E];return R}for(E=arguments.length,R=new Array(E);E--;)R[E]=arguments[E];return R}var M=typeof Symbol<"u"?function(y){return y[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},dt=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],tn=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(dt),K={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function X(y,E){this.name=y,this.message=E}function ie(y,E){return y+". Errors: "+Object.keys(E).map(function(R){return E[R].toString()}).filter(function(R,q,U){return U.indexOf(R)===q}).join(` 52`)}function oe(y,E,R,q){this.failures=E,this.failedKeys=q,this.successCount=R,this.message=ie(y,E)}function ee(y,E){this.name="BulkError",this.failures=Object.keys(E).map(function(R){return E[R]}),this.failuresByPos=E,this.message=ie(y,this.failures)}S(X).from(Error).extend({toString:function(){return this.name+": "+this.message}}),S(oe).from(X),S(ee).from(X);var ne=tn.reduce(function(y,E){return y[E]=E+"Error",y},{}),ce=X,ae=tn.reduce(function(y,E){var R=E+"Error";function q(U,G){this.name=R,U?typeof U=="string"?(this.message="".concat(U).concat(G?` 53 `+G:""),this.inner=G||null):typeof U=="object"&&(this.message="".concat(U.name," ").concat(U.message),this.inner=U):(this.message=K[E]||R,this.inner=null)}return S(q).from(ce),y[E]=q,y},{});ae.Syntax=SyntaxError,ae.Type=TypeError,ae.Range=RangeError;var Ae=dt.reduce(function(y,E){return y[E+"Error"]=ae[E],y},{}),Ie=tn.reduce(function(y,E){return["Syntax","Type","Range"].indexOf(E)===-1&&(y[E+"Error"]=ae[E]),y},{});function je(){}function ze(y){return y}function Xe(y,E){return y==null||y===ze?E:function(R){return E(y(R))}}function ot(y,E){return function(){y.apply(this,arguments),E.apply(this,arguments)}}function Ot(y,E){return y===je?E:function(){var R=y.apply(this,arguments);R!==void 0&&(arguments[0]=R);var q=this.onsuccess,U=this.onerror;this.onsuccess=null,this.onerror=null;var G=E.apply(this,arguments);return q&&(this.onsuccess=this.onsuccess?ot(q,this.onsuccess):q),U&&(this.onerror=this.onerror?ot(U,this.onerror):U),G!==void 0?G:R}}function bt(y,E){return y===je?E:function(){y.apply(this,arguments);var R=this.onsuccess,q=this.onerror;this.onsuccess=this.onerror=null,E.apply(this,arguments),R&&(this.onsuccess=this.onsuccess?ot(R,this.onsuccess):R),q&&(this.onerror=this.onerror?ot(q,this.onerror):q)}}function ue(y,E){return y===je?E:function(R){var q=y.apply(this,arguments);h(R,q);var U=this.onsuccess,G=this.onerror;return this.onsuccess=null,this.onerror=null,R=E.apply(this,arguments),U&&(this.onsuccess=this.onsuccess?ot(U,this.onsuccess):U),G&&(this.onerror=this.onerror?ot(G,this.onerror):G),q===void 0?R===void 0?void 0:R:h(q,R)}}function ye(y,E){return y===je?E:function(){return E.apply(this,arguments)!==!1&&y.apply(this,arguments)}}function Te(y,E){return y===je?E:function(){var R=y.apply(this,arguments);if(R&&typeof R.then=="function"){for(var q=this,U=arguments.length,G=new Array(U);U--;)G[U]=arguments[U];return R.then(function(){return E.apply(q,G)})}return E.apply(this,arguments)}}Ie.ModifyError=oe,Ie.DexieError=X,Ie.BulkError=ee;var Re=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Pe(y){Re=y}var at={},ft=100,Bt=typeof Promise>"u"?[]:(function(){var y=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[y,g(y),y];var E=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[E,g(E),y]})(),dt=Bt[0],tn=Bt[1],Bt=Bt[2],tn=tn&&tn.then,Ht=dt&&dt.constructor,At=!!Bt,Cr=function(y,E){mn.push([y,E]),Kt&&(queueMicrotask(gr),Kt=!1)},vt=!0,Kt=!0,hr=[],sn=[],mo=ze,Yr={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:je,pgp:!1,env:{},finalize:je},Je=Yr,mn=[],Ir=0,mr=[];function Ve(y){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var E=this._PSD=Je;if(typeof y!="function"){if(y!==at)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&Tn(this,this._value))}this._state=null,this._value=null,++E.ref,(function R(q,U){try{U(function(G){if(q._state===null){if(G===q)throw new TypeError("A promise cannot be resolved with itself.");var re=q._lib&&Xr();G&&typeof G.then=="function"?R(q,function(le,he){G instanceof Ve?G._then(le,he):G.then(le,he)}):(q._state=!0,q._value=G,pt(q)),re&&Ut()}},Tn.bind(null,q))}catch(G){Tn(q,G)}})(this,y)}var Zr={get:function(){var y=Je,E=va;function R(q,U){var G=this,re=!y.global&&(y!==Je||E!==va),le=re&&!Ur(),he=new Ve(function(fe,xe){qt(G,new Qr(Ws(q,y,re,le),Ws(U,y,re,le),fe,xe,y))});return this._consoleTask&&(he._consoleTask=this._consoleTask),he}return R.prototype=at,R},set:function(y){k(this,"then",y&&y.prototype===at?Zr:{get:function(){return y},set:Zr.set})}};function Qr(y,E,R,q,U){this.onFulfilled=typeof y=="function"?y:null,this.onRejected=typeof E=="function"?E:null,this.resolve=R,this.reject=q,this.psd=U}function Tn(y,E){var R,q;sn.push(E),y._state===null&&(R=y._lib&&Xr(),E=mo(E),y._state=!1,y._value=E,q=y,hr.some(function(U){return U._value===q._value})||hr.push(q),pt(y),R&&Ut())}function pt(y){var E=y._listeners;y._listeners=[];for(var R=0,q=E.length;R<q;++R)qt(y,E[R]);var U=y._PSD;--U.ref||U.finalize(),Ir===0&&(++Ir,Cr(function(){--Ir==0&&ur()},[]))}function qt(y,E){if(y._state!==null){var R=y._state?E.onFulfilled:E.onRejected;if(R===null)return(y._state?E.resolve:E.reject)(y._value);++E.psd.ref,++Ir,Cr(Jt,[R,y,E])}else y._listeners.push(E)}function Jt(y,E,R){try{var q,U=E._value;!E._state&&sn.length&&(sn=[]),q=Re&&E._consoleTask?E._consoleTask.run(function(){return y(U)}):y(U),E._state||sn.indexOf(U)!==-1||(function(G){for(var re=hr.length;re;)if(hr[--re]._value===G._value)return hr.splice(re,1)})(E),R.resolve(q)}catch(G){R.reject(G)}finally{--Ir==0&&ur(),--R.psd.ref||R.psd.finalize()}}function gr(){bo(Yr,function(){Xr()&&Ut()})}function Xr(){var y=vt;return Kt=vt=!1,y}function Ut(){var y,E,R;do for(;0<mn.length;)for(y=mn,mn=[],R=y.length,E=0;E<R;++E){var q=y[E];q[0].apply(null,q[1])}while(0<mn.length);Kt=vt=!0}function ur(){var y=hr;hr=[],y.forEach(function(q){q._PSD.onunhandled.call(null,q._value,q)});for(var E=mr.slice(0),R=E.length;R;)E[--R]()}function gn(y){return new Ve(at,!1,y)}function kt(y,E){var R=Je;return function(){var q=Xr(),U=Je;try{return vo(R,!0),y.apply(this,arguments)}catch(G){E&&E(G)}finally{vo(U,!1),q&&Ut()}}}f(Ve.prototype,{then:Zr,_then:function(y,E){qt(this,new Qr(null,null,y,E,Je))},catch:function(y){if(arguments.length===1)return this.then(null,y);var E=y,R=arguments[1];return typeof E=="function"?this.then(null,function(q){return(q instanceof E?R:gn)(q)}):this.then(null,function(q){return(q&&q.name===E?R:gn)(q)})},finally:function(y){return this.then(function(E){return Ve.resolve(y()).then(function(){return E})},function(E){return Ve.resolve(y()).then(function(){return gn(E)})})},timeout:function(y,E){var R=this;return y<1/0?new Ve(function(q,U){var G=setTimeout(function(){return U(new ae.Timeout(E))},y);R.then(q,U).finally(clearTimeout.bind(null,G))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&k(Ve.prototype,Symbol.toStringTag,"Dexie.Promise"),Yr.env=Ks(),f(Ve,{all:function(){var y=V.apply(null,arguments).map(ri);return new Ve(function(E,R){y.length===0&&E([]);var q=y.length;y.forEach(function(U,G){return Ve.resolve(U).then(function(re){y[G]=re,--q||E(y)},R)})})},resolve:function(y){return y instanceof Ve?y:y&&typeof y.then=="function"?new Ve(function(E,R){y.then(E,R)}):new Ve(at,!0,y)},reject:gn,race:function(){var y=V.apply(null,arguments).map(ri);return new Ve(function(E,R){y.map(function(q){return Ve.resolve(q).then(E,R)})})},PSD:{get:function(){return Je},set:function(y){return Je=y}},totalEchoes:{get:function(){return va}},newPSD:wo,usePSD:bo,scheduler:{get:function(){return Cr},set:function(y){Cr=y}},rejectionMapper:{get:function(){return mo},set:function(y){mo=y}},follow:function(y,E){return new Ve(function(R,q){return wo(function(U,G){var re=Je;re.unhandleds=[],re.onunhandled=G,re.finalize=ot(function(){var le,he=this;le=function(){he.unhandleds.length===0?U():G(he.unhandleds[0])},mr.push(function fe(){le(),mr.splice(mr.indexOf(fe),1)}),++Ir,Cr(function(){--Ir==0&&ur()},[])},re.finalize),y()},E,R,q)})}}),Ht&&(Ht.allSettled&&k(Ve,"allSettled",function(){var y=V.apply(null,arguments).map(ri);return new Ve(function(E){y.length===0&&E([]);var R=y.length,q=new Array(R);y.forEach(function(U,G){return Ve.resolve(U).then(function(re){return q[G]={status:"fulfilled",value:re}},function(re){return q[G]={status:"rejected",reason:re}}).then(function(){return--R||E(q)})})})}),Ht.any&&typeof AggregateError<"u"&&k(Ve,"any",function(){var y=V.apply(null,arguments).map(ri);return new Ve(function(E,R){y.length===0&&R(new AggregateError([]));var q=y.length,U=new Array(q);y.forEach(function(G,re){return Ve.resolve(G).then(function(le){return E(le)},function(le){U[re]=le,--q||R(new AggregateError(U))})})})}),Ht.withResolvers&&(Ve.withResolvers=Ht.withResolvers));var It={awaits:0,echoes:0,id:0},go=0,Lr=[],yo=0,va=0,$d=0;function wo(y,E,R,q){var U=Je,G=Object.create(U);return G.parent=U,G.ref=0,G.global=!1,G.id=++$d,Yr.env,G.env=At?{Promise:Ve,PromiseProp:{value:Ve,configurable:!0,writable:!0},all:Ve.all,race:Ve.race,allSettled:Ve.allSettled,any:Ve.any,resolve:Ve.resolve,reject:Ve.reject}:{},E&&h(G,E),++U.ref,G.finalize=function(){--this.parent.ref||this.parent.finalize()},q=bo(G,y,R,q),G.ref===0&&G.finalize(),q}function ba(){return It.id||(It.id=++go),++It.awaits,It.echoes+=ft,It.id}function Ur(){return!!It.awaits&&(--It.awaits==0&&(It.id=0),It.echoes=It.awaits*ft,!0)}function ri(y){return It.echoes&&y&&y.constructor===Ht?(ba(),y.then(function(E){return Ur(),E},function(E){return Ur(),or(E)})):y}function wu(){var y=Lr[Lr.length-1];Lr.pop(),vo(y,!1)}function vo(y,E){var R,q=Je;(E?!It.echoes||yo++&&y===Je:!yo||--yo&&y===Je)||queueMicrotask(E?function(U){++va,It.echoes&&--It.echoes!=0||(It.echoes=It.awaits=It.id=0),Lr.push(Je),vo(U,!0)}.bind(null,y):wu),y!==Je&&(Je=y,q===Yr&&(Yr.env=Ks()),At&&(R=Yr.env.Promise,E=y.env,(q.global||y.global)&&(Object.defineProperty(s,"Promise",E.PromiseProp),R.all=E.all,R.race=E.race,R.resolve=E.resolve,R.reject=E.reject,E.allSettled&&(R.allSettled=E.allSettled),E.any&&(R.any=E.any))))}function Ks(){var y=s.Promise;return At?{Promise:y,PromiseProp:Object.getOwnPropertyDescriptor(s,"Promise"),all:y.all,race:y.race,allSettled:y.allSettled,any:y.any,resolve:y.resolve,reject:y.reject}:{}}function bo(y,E,R,q,U){var G=Je;try{return vo(y,!0),E(R,q,U)}finally{vo(G,!1)}}function Ws(y,E,R,q){return typeof y!="function"?y:function(){var U=Je;R&&ba(),vo(E,!0);try{return y.apply(this,arguments)}finally{vo(U,!1),q&&queueMicrotask(Ur)}}}function $i(y){Promise===Ht&&It.echoes===0?yo===0?y():enqueueNativeMicroTask(y):setTimeout(y,0)}(""+tn).indexOf("[native code]")===-1&&(ba=Ur=je);var or=Ve.reject,Uo="ï¿¿",Ft="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>
53.",vu="String expected.",xo=[],ni="__dbnames",xa="readonly",Vs="readwrite";function ko(y,E){return y?E?function(){return y.apply(this,arguments)&&E.apply(this,arguments)}:y:E}var oi={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Jr(y){return typeof y!="string"||/\./.test(y)?function(E){return E}:function(E){return E[y]===void 0&&y in E&&delete(E=B(E))[y],E}}function bu(){throw ae.Type("Entity instances must never be new:ed. Instances are generated by the framework bypassing the constructor.")}function mt(y,E){try{var R=xu(y),q=xu(E);if(R!==q)return R==="Array"?1:q==="Array"?-1:R==="binary"?1:q==="binary"?-1:R==="string"?1:q==="string"?-1:R==="Date"?1:q!=="Date"?NaN:-1;switch(R){case"number":case"Date":case"string":return E<y?1:y<E?-1:0;case"binary":return(function(U,G){for(var re=U.length,le=G.length,he=re<le?re:le,fe=0;fe<he;++fe)if(U[fe]!==G[fe])return U[fe]<G[fe]?-1:1;return re===le?0:re<le?-1:1})(ku(y),ku(E));case"Array":return(function(U,G){for(var re=U.length,le=G.length,he=re<le?re:le,fe=0;fe<he;++fe){var xe=mt(U[fe],G[fe]);if(xe!==0)return xe}return re===le?0:re<le?-1:1})(y,E)}}catch{}return NaN}function xu(y){var E=typeof y;return E!="object"?E:ArrayBuffer.isView(y)?"binary":(y=W(y),y==="ArrayBuffer"?"binary":y)}function ku(y){return y instanceof Uint8Array?y:ArrayBuffer.isView(y)?new Uint8Array(y.buffer,y.byteOffset,y.byteLength):new Uint8Array(y)}function Ui(y,E,R){var q=y.schema.yProps;return q?(E&&0<R.numFailures&&(E=E.filter(function(U,G){return!R.failures[G]})),Promise.all(q.map(function(U){return U=U.updatesTable,E?y.db.table(U).where("k").anyOf(E).delete():y.db.table(U).clear()})).then(function(){return R})):R}var So=(ai.prototype.execute=function(y){var E=this["@@propmod"];if(E.add!==void 0){var R=E.add;if(p(R))return i(i([],p(y)?y:[],!0),R).sort();if(typeof R=="number")return(Number(y)||0)+R;if(typeof R=="bigint")try{return BigInt(y)+R}catch{return BigInt(0)+R}throw new TypeError("Invalid term ".concat(R))}if(E.remove!==void 0){var q=E.remove;if(p(q))return p(y)?y.filter(function(U){return!q.includes(U)}).sort():[];if(typeof q=="number")return Number(y)-q;if(typeof q=="bigint")try{return BigInt(y)-q}catch{return BigInt(0)-q}throw new TypeError("Invalid subtrahend ".concat(q))}return R=(R=E.replacePrefix)===null||R===void 0?void 0:R[0],R&&typeof y=="string"&&y.startsWith(R)?E.replacePrefix[1]+y.substring(R.length):y},ai);function ai(y){this["@@propmod"]=y}function ka(y,E){for(var R=u(E),q=R.length,U=!1,G=0;G<q;++G){var re=R[G],le=E[re],he=L(y,re);le instanceof So?(P(y,re,le.execute(he)),U=!0):he!==le&&(P(y,re,le),U=!0)}return U}var ii=($t.prototype._trans=function(y,E,R){var q=this._tx||Je.trans,U=this.name,G=Re&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(y==="readonly"?"read":"write"," ").concat(this.name));function re(fe,xe,de){if(!de.schema[U])throw new ae.NotFound("Table "+U+" not part of transaction");return E(de.idbtrans,de)}var le=Xr();try{var he=q&&q.db._novip===this.db._novip?q===Je.trans?q._promise(y,re,R):wo(function(){return q._promise(y,re,R)},{trans:q,transless:Je.transless||Je}):(function fe(xe,de,Se,me){if(xe.idbdb&&(xe._state.openComplete||Je.letThrough||xe._vip)){var be=xe._createTransaction(de,Se,xe._dbSchema);try{be.create(),xe._state.PR1398_maxLoop=3}catch(ve){return ve.name===ne.InvalidState&&xe.isOpen()&&0<--xe._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),xe.close({disableAutoOpen:!1}),xe.open().then(function(){return fe(xe,de,Se,me)})):or(ve)}return be._promise(de,function(ve,ke){return wo(function(){return Je.trans=be,me(ve,ke,be)})}).then(function(ve){if(de==="readwrite")try{be.idbtrans.commit()}catch{}return de==="readonly"?ve:be._completion.then(function(){return ve})})}if(xe._state.openComplete)return or(new ae.DatabaseClosed(xe._state.dbOpenError));if(!xe._state.isBeingOpened){if(!xe._state.autoOpen)return or(new ae.DatabaseClosed);xe.open().catch(je)}return xe._state.dbReadyPromise.then(function(){return fe(xe,de,Se,me)})})(this.db,y,[this.name],re);return G&&(he._consoleTask=G,he=he.catch(function(fe){return console.trace(fe),or(fe)})),he}finally{le&&Ut()}},$t.prototype.get=function(y,E){var R=this;return y&&y.constructor===Object?this.where(y).first(E):y==null?or(new ae.Type("Invalid argument to Table.get()")):this._trans("readonly",function(q){return R.core.get({trans:q,key:y}).then(function(U){return R.hook.reading.fire(U)})}).then(E)},$t.prototype.where=function(y){if(typeof y=="string")return new this.db.WhereClause(this,y);if(p(y))return new this.db.WhereClause(this,"[".concat(y.join("+"),"]"));var E=u(y);if(E.length===1)return this.where(E[0]).equals(y[E[0]]);var R=this.schema.indexes.concat(this.schema.primKey).filter(function(le){if(le.compound&&E.every(function(fe){return 0<=le.keyPath.indexOf(fe)})){for(var he=0;he<E.length;++he)if(E.indexOf(le.keyPath[he])===-1)return!1;return!0}return!1}).sort(function(le,he){return le.keyPath.length-he.keyPath.length}
vendor: 32,799 bytes, line 53
53)[0];if(R&&this.db._maxKey!==Uo){var G=R.keyPath.slice(0,E.length);return this.where(G).equals(G.map(function(he){return y[he]}))}!R&&Re&&console.warn("The query ".concat(JSON.stringify(y)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(E.join("+"),"]"));var q=this.schema.idxByName;function U(le,he){return mt(le,he)===0}var re=E.reduce(function(de,he){var fe=de[0],xe=de[1],de=q[he],Se=y[he];return[fe||de,fe||!de?ko(xe,de&&de.multi?function(me){return me=L(me,he),p(me)&&me.some(function(be){return U(Se,be)})}:function(me){return U(Se,L(me,he))}):xe]},[null,null]),G=re[0],re=re[1];return G?this.where(G.name).equals(y[G.keyPath]).filter(re):R?this.filter(re):this.where(E).equals("")},$t.prototype.filter=function(y){return this.toCollection().and(y)},$t.prototype.count=function(y){return this.toCollection().count(y)},$t.prototype.offset=function(y){return this.toCollection().offset(y)},$t.prototype.limit=function(y){return this.toCollection().limit(y)},$t.prototype.each=function(y){return this.toCollection().each(y)},$t.prototype.toArray=function(y){return this.toCollection().toArray(y)},$t.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},$t.prototype.orderBy=function(y){return new this.db.Collection(new this.db.WhereClause(this,p(y)?"[".concat(y.join("+"),"]"):y))},$t.prototype.reverse=function(){return this.toCollection().reverse()},$t.prototype.mapToClass=function(y){var E,R=this.db,q=this.name;function U(){return E!==null&&E.apply(this,arguments)||this}(this.schema.mappedClass=y).prototype instanceof bu&&((function(he,fe){if(typeof fe!="function"&&fe!==null)throw new TypeError("Class extends value "+String(fe)+" is not a constructor or null");function xe(){this.constructor=he}n(he,fe),he.prototype=fe===null?Object.create(fe):(xe.prototype=fe.prototype,new xe)})(U,E=y),Object.defineProperty(U.prototype,"db",{get:function(){return R},enumerable:!1,configurable:!0}),U.prototype.table=function(){return q},y=U);for(var G=new Set,re=y.prototype;re;re=g(re))Object.getOwnPropertyNames(re).forEach(function(he){return G.add(he)});function le(he){if(!he)return he;var fe,xe=Object.create(y.prototype);for(fe in he)if(!G.has(fe))try{xe[fe]=he[fe]}catch{}return xe}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=le,this.hook("reading",le),y},$t.prototype.defineClass=function(){return this.mapToClass(function(y){h(this,y)})},$t.prototype.add=function(y,E){var R=this,q=this.schema.primKey,U=q.auto,G=q.keyPath,re=y;return G&&U&&(re=Jr(G)(y)),this._trans("readwrite",function(le){return R.core.mutate({trans:le,type:"add",keys:E!=null?[E]:null,values:[re]})}).then(function(le){return le.numFailures?Ve.reject(le.failures[0]):le.lastResult}).then(function(le){if(G)try{P(y,G,le)}catch{}return le})},$t.prototype.upsert=function(y,E){var R=this,q=this.schema.primKey.keyPath;return this._trans("readwrite",function(U){return R.core.get({trans:U,key:y}).then(function(G){var re=G??{};return ka(re,E),q&&P(re,q,y),R.core.mutate({trans:U,type:"put",values:[re],keys:[y],upsert:!0,updates:{keys:[y],changeSpecs:[E]}}).then(function(le){return le.numFailures?Ve.reject(le.failures[0]):!!G})})})},$t.prototype.update=function(y,E){return typeof y!="object"||p(y)?this.where(":id").equals(y).modify(E):(y=L(y,this.schema.primKey.keyPath),y===void 0?or(new ae.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(y).modify(E))},$t.prototype.put=function(y,E){var R=this,q=this.schema.primKey,U=q.auto,G=q.keyPath,re=y;return G&&U&&(re=Jr(G)(y)),this._trans("readwrite",function(le){return R.core.mutate({trans:le,type:"put",values:[re],keys:E!=null?[E]:null})}).then(function(le){return le.numFailures?Ve.reject(le.failures[0]):le.lastResult}).then(function(le){if(G)try{P(y,G,le)}catch{}return le})},$t.prototype.delete=function(y){var E=this;return this._trans("readwrite",function(R){return E.core.mutate({trans:R,type:"delete",keys:[y]}).then(function(q){return Ui(E,[y],q)}).then(function(q){return q.numFailures?Ve.reject(q.failures[0]):void 0})})},$t.prototype.clear=function(){var y=this;return this._trans("readwrite",function(E){return y.core.mutate({trans:E,type:"deleteRange",range:oi}).then(function(R){return Ui(y,null,R)})}).then(function(E){return E.numFailures?Ve.reject(E.failures[0]):void 0})},$t.prototype.bulkGet=function(y){var E=this;return this._trans("readonly",function(R){return E.core.getMany({keys:y,trans:R}).then(function(q){return q.map(function(U){return E.hook.reading.fire(U)})})})},$t.prototype.bulkAdd=function(y,E,R){var q=this,U=Array.isArray(E)?E:void 0,G=(R=R||(U?void 0:E))?R.allKeys:void 0;return this._trans("readwrite",function(re){var fe=q.schema.primKey,le=fe.auto,fe=fe.keyPath;if(fe&&U)throw new ae.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(U&&U.length!==y.length)throw new ae.InvalidArgument("Arguments objects and keys must have the same length");var he=y.length,fe=fe&&le?y.map(Jr(fe)):y;return q.core.mutate({trans:re,type:"add",keys:U,values:fe,wantResults:G}).then(function(be){var de=be.numFailures,Se=be.results,me=be.lastResult,be=be.failures;if(de===0)return G?Se:me;throw new ee("".concat(q.name,".bulkAdd(): ").concat(de," of ").concat(he," operations failed"),be)})})},$t.prototype.bulkPut=function(y,E,R){var q=this,U=Array.isArray(E)?E:void 0,G=(R=R||(U?void 0:E))?R.allKeys:void 0;return this._trans("readwrite",function(re){var fe=q.schema.primKey,le=fe.auto,fe=fe.keyPath;if(fe&&U)throw new ae.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(U&&U.length!==y.length)throw new ae.InvalidArgument("Arguments objects and keys must have the same length");var he=y.length,fe=fe&&le?y.map(Jr(fe)):y;return q.core.mutate({trans:re,type:"put",keys:U,values:fe,wantResults:G}).then(function(be){var de=be.numFailures,Se=be.results,me=be.lastResult,be=be.failures;if(de===0)return G?Se:me;throw new ee("".concat(q.name,".bulkPut(): ").concat(de," of ").concat(he," operations failed"),be)})})},$t.prototype.bulkUpdate=function(y){var E=this,R=this.core,q=y.map(function(re){return re.key}),U=y.map(function(re){return re.changes}),G=[];return this._trans("readwrite",function(re){return R.getMany({trans:re,keys:q,cache:"clone"}).then(function(le){var he=[],fe=[];y.forEach(function(de,Se){var me=de.key,be=de.changes,ve=le[Se];if(ve){for(var ke=0,_e=Object.keys(be);ke<_e.length;ke++){var Ee=_e[ke],De=be[Ee];if(Ee===E.schema.primKey.keyPath){if(mt(De,me)!==0)throw new ae.Constraint("Cannot update primary key in bulkUpdate()")}else P(ve,Ee,De)}G.push(Se),he.push(me),fe.push(ve)}});var xe=he.length;return R.mutate({trans:re,type:"put",keys:he,values:fe,updates:{keys:q,changeSpecs:U}}).then(function(de){var Se=de.numFailures,me=de.failures;if(Se===0)return xe;for(var be=0,ve=Object.keys(me);be<ve.length;be++){var ke,_e=ve[be],Ee=G[Number(_e)];Ee!=null&&(ke=me[_e],delete me[_e],me[Ee]=ke)}throw new ee("".concat(E.name,".bulkUpdate(): ").concat(Se," of ").concat(xe," operations failed"),me)})})})},$t.prototype.bulkDelete=function(y){var E=this,R=y.length;return this._trans("readwrite",function(q){return E.core.mutate({trans:q,type:"delete",keys:y}).then(function(U){return Ui(E,y,U)})}).then(function(re){var U=re.numFailures,G=re.lastResult,re=re.failures;if(U===0)return G;throw new ee("".concat(E.name,".bulkDelete(): ").concat(U," of ").concat(R," operations failed"),re)})},$t);function $t(){}function si(y){function E(re,le){if(le){for(var he=arguments.length,fe=new Array(he-1);--he;)fe[he-1]=arguments[he];return R[re].subscribe.apply(null,fe),y}if(typeof re=="string")return R[re]}var R={};E.addEventType=G;for(var q=1,U=arguments.length;q<U;++q)G(arguments[q]);return E;function G(re,le,he){if(typeof re!="object"){var fe;le=le||ye;var xe={subscribers:[],fire:he=he||je,subscribe:function(de){xe.subscribers.indexOf(de)===-1&&(xe.subscribers.push(de),xe.fire=le(xe.fire,de))},unsubscribe:function(de){xe.subscribers=xe.subscribers.filter(function(Se){return Se!==de}),xe.fire=xe.subscribers.reduce(le,he)}};return R[re]=E[re]=xe}u(fe=re).forEach(function(de){var Se=fe[de];if(p(Se))G(de,fe[de][0],fe[de][1]);else{if(Se!=="asap")throw new ae.InvalidArgument("Invalid event config");var me=G(de,ze,function(){for(var be=arguments.length,ve=new Array(be);be--;)ve[be]=arguments[be];me.subscribers.forEach(function(ke){j(function(){ke.apply(null,ve)})})})}})}}function Ho(y,E){return S(E).from({prototype:y}),E}function Ko(y,E){return!(y.filter||y.algorithm||y.or)&&(E?y.justLimit:!y.replayFilter)}function li(y,E){y.filter=ko(y.filter,E)}function Wo(y,E,R){var q=y.replayFilter;y.replayFilter=q?function(){return ko(q(),E())}:E,y.justLimit=R&&!q}function Hi(y,E){if(y.isPrimKey)return E.primaryKey;var R=E.getIndexByKeyPath(y.index);if(!R)throw new ae.Schema("KeyPath "+y.index+" on object store "+E.name+" is not indexed");return R}function Ki(y,E,R){var q=Hi(y,E.schema);return E.openCursor({trans:R,values:!y.keysOnly,reverse:y.dir==="prev",unique:!!y.unique,query:{index:q,range:y.range}})}function Pt(y,E,R,q){var U=y.replayFilter?ko(y.filter,y.replayFilter()):y.filter;if(y.or){var G={},re=function(le,he,fe){var xe,de;U&&!U(he,fe,function(Se){return he.stop(Se)},function(Se){return he.fail(Se)})||((de=""+(xe=he.primaryKey))=="[object ArrayBuffer]"&&(de=""+new Uint8Array(xe)),d(G,de)||(G[de]=!0,E(le,he,fe)))};return Promise.all([y.or._iterate(re,R),Gs(Ki(y,q,R),y.algorithm,re,!y.keysOnly&&y.valueMapper)])}return Gs(Ki(y,q,R),ko(y.algorithm,U),E,!y.keysOnly&&y.valueMapper)}function Gs(y,E,R,q){var U=kt(q?function(G,re,le){return R(q(G),re,le)}:R);return y.then(function(G){if(G)return G.start(function(){var re=function(){return G.continue()};E&&!E(G,function(le){return re=le},function(le){G.stop(le),re=je},function(le){G.fail(le),re=je})||U(G.value,G,function(le){return re=le}),re()})})}var Su=(jt.prototype._read=function(y,E){var R=this._ctx;return R.error?R.table._trans(null,or.bind(null,R.error)):R.table._trans("readonly",y).then(E)},jt.prototype._write=function(y){var E=this._ctx;return E.error?E.table._trans(null,or.bind(null,E.error)):E.table._trans("readwrite",y,"locked")},jt.prototype._addAlgorithm=function(y){var E=this._ctx;E.algorithm=ko(E.algorithm,y)},jt.prototype._iterate=function(y,E){return Pt(this._ctx,y,E,this._ctx.table.core)},jt.prototype.clone=function(y){var E=Object.create(this.constructor.prototype),R=Object.create(this._ctx);return y&&h(R,y),E._ctx=R,E},jt.prototype.raw=function(){return this._ctx.valueMapper=null,this},jt.prototype.each=function(y){var E=this._ctx;return this._read(function(R){return Pt(E,y,R,E.table.core)})},jt.prototype.count=function(y){var E=this;return this._read(function(R){var q=E._ctx,U=q.table.core;if(Ko(q,!0))return U.count({trans:R,query:{index:Hi(q,U.schema),range:q.range}}).then(function(re){return Math.min(re,q.limit)});var G=0;return Pt(q,function(){return++G,!1},R,U).then(function(){return G})}).then(y)},jt.prototype.sortBy=function(y,E){var R=y.split(".").reverse(),q=R[0],U=R.length-1;function G(he,fe){return fe?G(he[R[fe]],fe-1):he[q]}var re=this._ctx.dir==="next"?1:-1;function le(he,fe){return mt(G(he,U),G(fe,U))*re}return this.toArray(function(he){return he.sort(le)}).then(E)},jt.prototype.toArray=function(y){var E=this;return this._read(function(R){var q=E._ctx;if(q.dir==="next"&&Ko(q,!0)&&0<q.limit){var U=q.valueMapper,G=Hi(q,q.table.core.schema);return q.table.core.query({trans:R,limit:q.limit,values:!0,query:{index:G,range:q.range}}).then(function(le){return le=le.result,U?le.map(U):le})}var re=[];return Pt(q,function(le){return re.push(le)},R,q.table.core).then(function(){return re})},y)},jt.prototype.offset=function(y){var E=this._ctx;return y<=0||(E.offset+=y,Ko(E)?Wo(E,function(){var R=y;return function(q,U){return R===0||(R===1?--R:U(function(){q.advance(R),R=0}),!1)}}):Wo(E,function(){var R=y;return function(){return--R<0}})),this},jt.prototype.limit=function(y){return this._ctx.limit=Math.min(this._ctx.limit,y),Wo(this._ctx,function(){var E=y;return function(R,q,U){return--E<=0&&q(U),0<=E}},!0),this},jt.prototype.until=function(y,E){return li(this._ctx,function(R,q,U){return!y(R.value)||(q(U),E)}),this},jt.prototype.first=function(y){return this.limit(1).toArray(function(E){return E[0]}).then(y)},jt.prototype.last=function(y){return this.reverse().first(y)},jt.prototype.filter=function(y){var E;return li(this._ctx,function(R){return y(R.value)}),(E=this._ctx).isMatch=ko(E.isMatch,y),this},jt.prototype.and=function(y){return this.filter(y)},jt.prototype.or=function(y){return new this.db.WhereClause(this._ctx.table,y,this)},jt.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},jt.prototype.desc=function(){return this.reverse()},jt.prototype.eachKey=function(y){var E=this._ctx;return E.keysOnly=!E.isMatch,this.each(function(R,q){y(q.key,q)})},jt.prototype.eachUniqueKey=function(y){return this._ctx.unique="unique",this.eachKey(y)},jt.prototype.eachPrimaryKey=function(y){var E=this._ctx;return E.keysOnly=!E.isMatch,this.each(function(R,q){y(q.primaryKey,q)})},jt.prototype.keys=function(y){var E=this._ctx;E.keysOnly=!E.isMatch;var R=[];return this.each(function(q,U){R.push(U.key)}).then(function(){return R}).then(y)},jt.prototype.primaryKeys=function(y){var E=this._ctx;if(E.dir==="next"&&Ko(E,!0)&&0<E.limit)return this._read(function(q){var U=Hi(E,E.table.core.schema);return E.table.core.query({trans:q,values:!1,limit:E.limit,query:{index:U,range:E.range}})}).then(function(q){return q.result}).then(y);E.keysOnly=!E.isMatch;var R=[];return this.each(function(q,U){R.push(U.primaryKey)}).then(function(){return R}).then(y)},jt.prototype.uniqueKeys=function(y){return this._ctx.unique="unique",this.keys(y)},jt.prototype.firstKey=function(y){return this.limit(1).keys(function(E){return E[0]}).then(y)},jt.prototype.lastKey=function(y){return this.reverse().firstKey(y)},jt.prototype.distinct=function(){var y=this._ctx,y=y.index&&y.table.schema.idxByName[y.index];if(!y||!y.multi)return this;var E={};return li(this._ctx,function(U){var q=U.primaryKey.toString(),U=d(E,q);return E[q]=!0,!U}),this},jt.prototype.modify=function(y){var E=this,R=this._ctx;return this._write(function(q){var U=typeof y=="function"?y:function(ve){return ka(ve,y)},G=R.table.core,fe=G.schema.primaryKey,re=fe.outbound,le=fe.extractKey,he=200,fe=E.db._options.modifyChunkSize;fe&&(he=typeof fe=="object"?fe[G.name]||fe["*"]||200:fe);function xe(ve,Ee){var _e=Ee.failures,Ee=Ee.numFailures;Se+=ve-Ee;for(var De=0,Me=u(_e);De<Me.length;De++){var $e=Me[De];de.push(_e[$e])}}var de=[],Se=0,me=[],be=y===Ys;return E.clone().primaryKeys().then(function(ve){function ke(Ee){var De=Math.min(he,ve.length-Ee),Me=ve.slice(Ee,Ee+De);return(be?Promise.resolve([]):G.getMany({trans:q,keys:Me,cache:"immutable"})).then(function($e){var Ge=[],Be=[],Ue=re?[]:null,Ye=be?Me:[];if(!be)for(var We=0;We<De;++We){var Ze=$e[We],wt={value:B(Ze),primKey:ve[Ee+We]};U.call(wt,wt.value,wt)!==!1&&(wt.value==null?Ye.push(ve[Ee+We]):re||mt(le(Ze),le(wt.value))===0?(Be.push(wt.value),re&&Ue.push(ve[Ee+We])):(Ye.push(ve[Ee+We]),Ge.push(wt.value)))}return Promise.resolve(0<Ge.length&&G.mutate({trans:q,type:"add",values:Ge}).then(function(xt){for(var St in xt.failures)Ye.splice(parseInt(St),1);xe(Ge.length,xt)})).then(function(){return(0<Be.length||_e&&typeof y=="object")&&G.mutate({trans:q,type:"put",keys:Ue,values:Be,criteria:_e,changeSpec:typeof y!="function"&&y,isAdditionalChunk:0<Ee}).then(function(xt){return xe(Be.length,xt)})}).then(function(){return(0<Ye.length||_e&&be)&&G.mutate({trans:q,type:"delete",keys:Ye,criteria:_e,isAdditionalChunk:0<Ee}).then(function(xt){return Ui(R.table,Ye,xt)}).then(function(xt){return xe(Ye.length,xt)})}).then(function(){return ve.length>Ee+De&&ke(Ee+he)})})}var _e=Ko(R)&&R.limit===1/0&&(typeof y!="function"||be)&&{index:R.index,range:R.range};return ke(0).then(function(){if(0<de.length)throw new oe("Error modifying one or more objects",de,Se,me);return ve.length})})})},jt.prototype.delete=function(){var y=this._ctx,E=y.range;return!Ko(y)||y.table.schema.yProps||!y.isPrimKey&&E.type!==3?this.modify(Ys):this._write(function(R){var q=y.table.core.schema.primaryKey,U=E;return y.table.core.count({trans:R,query:{index:q,range:U}}).then(function(G){return y.table.core.mutate({trans:R,type:"deleteRange",range:U}).then(function(he){var le=he.failures,he=he.numFailures;if(he)throw new oe("Could not delete some values",Object.keys(le).map(function(fe){return le[fe]}),G-he);return G-he})})})},jt);function jt(){}var Ys=function(y,E){return E.value=null};function _u(y,E){return y<E?-1:y===E?0:1}function Nu(y,E){return E<y?-1:y===E?0:1}function Fr(y,E,R){return y=y instanceof Sa?new y.Collection(y):y,y._ctx.error=new(R||TypeError)(E),y}function Kn(y){return new y.Collection(y,function(){return Wn("")}).limit(0)}function yn(y,E,R,q){var U,G,re,le,he,fe,xe,de=R.length;if(!R.every(function(be){return typeof be=="string"}))return Fr(y,vu);function Se(be){U=be==="next"?function(ke){return ke.toUpperCase()}:function(ke){return ke.toLowerCase()},G=be==="next"?function(ke){return ke.toLowerCase()}:function(ke){return ke.toUpperCase()},re=be==="next"?_u:Nu;var ve=R.map(function(ke){return{lower:G(ke),upper:U(ke)}}).sort(function(ke,_e){return re(ke.lower,_e.lower)});le=ve.map(function(ke){return ke.upper}),he=ve.map(function(ke){return ke.lower}),xe=(fe=be)==="next"?"":q}Se("next"),y=new y.Collection(y,function(){return zr(le[0],he[de-1]+q)}),y._ondirectionchange=function(be){Se(be)};var me=0;return y._addAlgorithm(function(be,ve,ke){var _e=be.key;if(typeof _e!="string")return!1;var Ee=G(_e);if(E(Ee,he,me))return!0;for(var De=null,Me=me;Me<de;++Me){var $e=(function(Ge,Be,Ue,Ye,We,Ze){for(var wt=Math.min(Ge.length,Ye.length),xt=-1,St=0;St<wt;++St){var Hr=Be[St];if(Hr!==Ye[St])return We(Ge[St],Ue[St])<0?Ge.substr(0,St)+Ue[St]+Ue.substr(St+1):We(Ge[St],Ye[St])<0?Ge.substr(0,St)+Ye[St]+Ue.substr(St+1):0<=xt?Ge.substr(0,xt)+Be[xt]+Ue.substr(xt+1):null;We(Ge[St],Hr)<0&&(xt=St)}return wt<Ye.length&&Ze==="next"?Ge+Ue.substr(Ge.length):wt<Ge.length&&Ze==="prev"?Ge.substr(0,Ue.length):xt<0?null:Ge.substr(0,xt)+Ye[xt]+Ue.substr(xt+1)})(_e,Ee,le[Me],he[Me],re,fe);$e===null&&De===null?me=Me+1:(De===null||0<re(De,$e))&&(De=$e)}return ve(De!==null?function(){be.continue(De+xe)}:ke),!1}),y}function zr(y,E,R,q){return{type:2,lower:y,upper:E,lowerOpen:R,upperOpen:q}}function Wn(y){return{type:1,lower:y,upper:y}}var Sa=(Object.defineProperty(er.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),er.prototype.between=function(y,E,R,q){R=R!==!1,q=q===!0;try{return 0<this._cmp(y,E)||this._cmp(y,E)===0&&(R||q)&&(!R||!q)?Kn(this):new this.Collection(this,function(){return zr(y,E,!R,!q)})}catch{return Fr(this,Ft)}},er.prototype.equals=function(y){return y==null?Fr(this,Ft):new this.Collection(this,function(){return Wn(y)})},er.prototype.above=function(y){return y==null?Fr(this,Ft):new this.Collection(this,function(){return zr(y,void 0,!0)})},er.prototype.aboveOrEqual=function(y){return y==null?Fr(this,Ft):new this.Collection(this,function(){return zr(y,void 0,!1)})},er.prototype.below=function(y){return y==null?Fr(this,Ft):new this.Collection(this,function(){return zr(void 0,y,!1,!0)})},er.prototype.belowOrEqual=function(y){return y==null?Fr(this,Ft):new this.Collection(this,function(){return zr(void 0,y)})},er.prototype.startsWith=function(y){return typeof y!="string"?Fr(this,vu):this.between(y,y+Uo,!0,!0)},er.prototype.startsWithIgnoreCase=function(y){return y===""?this.startsWith(y):yn(this,function(E,R){return E.indexOf(R[0])===0},[y],Uo)},er.prototype.equalsIgnoreCase=function(y){return yn(this,function(E,R){return E===R[0]},[y],"")},er.prototype.anyOfIgnoreCase=function(){var y=V.apply(J,arguments);return y.length===0?Kn(this):yn(this,function(E,R){return R.indexOf(E)!==-1},y,"")},er.prototype.startsWithAnyOfIgnoreCase=function(){var y=V.apply(J,arguments);return y.length===0?Kn(this):yn(this,function(E,R){return R.some(function(q){return E.indexOf(q)===0})},y,Uo)},er.prototype.anyOf=function(){var y=this,E=V.apply(J,arguments),R=this._cmp;try{E.sort(R)}catch{return Fr(this,Ft)}if(E.length===0)return Kn(this);var q=new this.Collection(this,function(){return zr(E[0],E[E.length-1])});q._ondirectionchange=function(G){R=G==="next"?y._ascending:y._descending,E.sort(R)};var U=0;return q._addAlgorithm(function(G,re,le){for(var he=G.key;0<R(he,E[U]);)if(++U===E.length)return re(le),!1;return R(he,E[U])===0||(re(function(){G.continue(E[U])}),!1)}),q},er.prototype.notEqual=function(y){return this.inAnyRange([[-1/0,y],[y,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},er.prototype.noneOf=function(){var y=V.apply(J,arguments);if(y.length===0)return new this.Collection(this);try{y.sort(this._ascending)}catch{return Fr(this,Ft)}var E=y.reduce(function(R,q){return R?R.concat([[R[R.length-1][1],q]]):[[-1/0,q]]},null);return E.push([y[y.length-1],this.db._maxKey]),this.inAnyRange(E,{includeLowers:!1,includeUppers:!1})},er.prototype.inAnyRange=function(_e,E){var R=this,q=this._cmp,U=this._ascending,G=this._descending,re=this._min,le=this._max;if(_e.length===0)return Kn(this);if(!_e.every(function(Ee){return Ee[0]!==void 0&&Ee[1]!==void 0&&U(Ee[0],Ee[1])<=0}))return Fr(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ae.InvalidArgument);var he=!E||E.includeLowers!==!1,fe=E&&E.includeUppers===!0,xe,de=U;function Se(Ee,De){return de(Ee[0],De[0])}try{(xe=_e.reduce(function(Ee,De){for(var Me=0,$e=Ee.length;Me<$e;++Me){var Ge=Ee[Me];if(q(De[0],Ge[1])<0&&0<q(De[1],Ge[0])){Ge[0]=re(Ge[0],De[0]),Ge[1]=le(Ge[1],De[1]);break}}return Me===$e&&Ee.push(De),Ee},[])).sort(Se)}catch{return Fr(this,Ft)}var me=0,be=fe?function(Ee){return 0<U(Ee,xe[me][1])}:function(Ee){return 0<=U(Ee,xe[me][1])},ve=he?function(Ee){return 0<G(Ee,xe[me][0])}:function(Ee){return 0<=G(Ee,xe[me][0])},ke=be,_e=new this.Collection(this,function(){return zr(xe[0][0],xe[xe.length-1][1],!he,!fe)});return _e._ondirectionchange=function(Ee){de=Ee==="next"?(ke=be,U):(ke=ve,G),xe.sort(Se)},_e._addAlgorithm(function(Ee,De,Me){for(var $e,Ge=Ee.key;ke(Ge);)if(++me===xe.length)return De(Me),!1;return!be($e=Ge)&&!ve($e)||(R._cmp(Ge,xe[me][1])===0||R._cmp(Ge,xe[me][0])===0||De(function(){de===U?Ee.continue(xe[me][0]):Ee.continue(xe[me][1])}),!1)}),_e},er.prototype.startsWithAnyOf=function(){var y=V.apply(J,arguments);return y.every(function(E){return typeof E=="string"})?y.length===0?Kn(this):this.inAnyRange(y.map(function(E){return[E,E+Uo]})):Fr(this,"startsWithAnyOf() only works with strings")},er);function er(){}function br(y){return kt(function(E){return ui(E),y(E.target.error),!1})}function ui(y){y.stopPropagation&&y.stopPropagation(),y.preventDefault&&y.preventDefault()}var _a="storagemutated",Vo="x-storagemutated-1",_o=si(null,_a),Eu=(en.prototype._lock=function(){return N(!Je.global),++this._reculock,this._reculock!==1||Je.global||(Je.lockOwnerFor=this),this},en.prototype._unlock=function(){if(N(!Je.global),--this._reculock==0)for(Je.global||(Je.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var y=this._blockedFuncs.shift();try{bo(y[1],y[0])}catch{}}return this},en.prototype._locked=function(){return this._reculock&&Je.lockOwnerFor!==this},en.prototype.create=function(y){var E=this;if(!this.mode)return this;var R=this.db.idbdb,q=this.db._state.dbOpenError;if(N(!this.idbtrans),!y&&!R)switch(q&&q.name){case"DatabaseClosedError":throw new ae.DatabaseClosed(q);case"MissingAPIError":throw new ae.MissingAPI(q.message,q);default:throw new ae.OpenFailed(q)}if(!this.active)throw new ae.TransactionInactive;return N(this._completion._state===null),(y=this.idbtrans=y||(this.db.core||R).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=kt(function(U){ui(U),E._reject(y.error)}),y.onabort=kt(function(U){ui(U),E.active&&E._reject(new ae.Abort(y.error)),E.active=!1,E.on("abort").fire(U)}),y.oncomplete=kt(function(){E.active=!1,E._resolve(),"mutatedParts"in y&&_o.storagemutated.fire(y.mutatedParts)}),this},en.prototype._promise=function(y,E,R){var q=this;if(y==="readwrite"&&this.mode!=="readwrite")return or(new ae.ReadOnly("Transaction is readonly"));if(!this.active)return or(new ae.TransactionInactive);if(this._locked())return new Ve(function(G,re){q._blockedFuncs.push([function(){q._promise(y,E,R).then(G,re)},Je])});if(R)return wo(function(){var G=new Ve(function(re,le){q._lock();var he=E(re,le,q);he&&he.then&&he.then(re,le)});return G.finally(function(){return q._unlock()}),G._lib=!0,G});var U=new Ve(function(G,re){var le=E(G,re,q);le&&le.then&&le.then(G,re)});return U._lib=!0,U},en.prototype._root=function(){return this.parent?this.parent._root():this},en.prototype.waitFor=function(y){var E,R=this._root(),q=Ve.resolve(y);R._waitingFor?R._waitingFor=R._waitingFor.then(function(){return q}):(R._waitingFor=q,R._waitingQueue=[],E=R.idbtrans.objectStore(R.storeNames[0]),(function G(){for(++R._spinCount;R._waitingQueue.length;)R._waitingQueue.shift()();R._waitingFor&&(E.get(-1/0).onsuccess=G)})());var U=R._waitingFor;return new Ve(function(G,re){q.then(function(le){return R._waitingQueue.push(kt(G.bind(null,le)))},function(le){return R._waitingQueue.push(kt(re.bind(null,le)))}).finally(function(){R._waitingFor===U&&(R._waitingFor=null)})})},en.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ae.Abort))},en.prototype.table=function(y){var E=this._memoizedTables||(this._memoizedTables={});if(d(E,y))return E[y];var R=this.schema[y];if(!R)throw new ae.NotFound("Table "+y+" not part of transaction");return R=new this.db.Table(y,R,this),R.core=this.db.core.table(y),E[y]=R},en);function en(){}function Wi(y,E,R,q,U,G,re,le){return{name:y,keyPath:E,unique:R,multi:q,auto:U,compound:G,src:(R&&!re?"&":"")+(q?"*":"")+(U?"++":"")+Cu(E),type:le}}function Cu(y){return typeof y=="string"?y:y?"["+[].join.call(y,"+")+"]":""}function Go(y,E,R){return{name:y,primKey:E,indexes:R,mappedClass:null,idxByName:(q=function(U){return[U.name,U]},R.reduce(function(U,G,re){return re=q(G,re),re&&(U[re[0]]=re[1]),U},{}))};var q}var Vn=function(y){try{return y.only([[]]),Vn=function(){return[[]]},[[]]}catch{return Vn=function(){return Uo},Uo}};function No(y){return y==null?function(){}:typeof y=="string"?(E=y).split(".").length===1?function(R){return R[E]}:function(R){return L(R,E)}:function(R){return L(R,y)};var E}function ci(y){return[].slice.call(y)}var Ud=0;function di(y){return y==null?":id":typeof y=="string"?y:"[".concat(y.join("+"),"]")}function Zs(y,E,he){function q(ke){if(ke.type===3)return null;if(ke.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var me=ke.lower,be=ke.upper,ve=ke.lowerOpen,ke=ke.upperOpen;return me===void 0?be===void 0?null:E.upperBound(be,!!ke):be===void 0?E.lowerBound(me,!!ve):E.bound(me,be,!!ve,!!ke)}function U(Se){var me,be=Se.name;return{name:be,schema:Se,mutate:function(ve){var ke=ve.trans,_e=ve.type,Ee=ve.keys,De=ve.values,Me=ve.range;return new Promise(function($e,Ge){$e=kt($e);var Be=ke.objectStore(be),Ue=Be.keyPath==null,Ye=_e==="put"||_e==="add";if(!Ye&&_e!=="delete"&&_e!=="deleteRange")throw new Error("Invalid operation type: "+_e);var We,Ze=(Ee||De||{length:1}).length;if(Ee&&De&&Ee.length!==De.length)throw new Error("Given keys array must have same length as given values array.");if(Ze===0)return $e({numFailures:0,failures:{},results:[],lastResult:void 0});function wt(kr){++Hr,ui(kr)}var xt=[],St=[],Hr=0;if(_e==="deleteRange"){if(Me.type===4)return $e({numFailures:Hr,failures:St,results:[],lastResult:void 0});Me.type===3?xt.push(We=Be.clear()):xt.push(We=Be.delete(q(Me)))}else{var Ue=Ye?Ue?[De,Ee]:[De,null]:[Ee,null],yt=Ue[0],xr=Ue[1];if(Ye)for(var Vt=0;Vt<Ze;++Vt)xt.push(We=xr&&xr[Vt]!==void 0?Be[_e](yt[Vt],xr[Vt]):Be[_e](yt[Vt])),We.onerror=wt;else for(Vt=0;Vt<Ze;++Vt)xt.push(We=Be[_e](yt[Vt])),We.onerror=wt}function Ma(kr){kr=kr.target.result,xt.forEach(function(Xo,cl){return Xo.error!=null&&(St[cl]=Xo.error)}),$e({numFailures:Hr,failures:St,results:_e==="delete"?Ee:xt.map(function(Xo){return Xo.result}),lastResult:kr})}We.onerror=function(kr){wt(kr),Ma(kr)},We.onsuccess=Ma})},getMany:function(ve){var ke=ve.trans,_e=ve.keys;return new Promise(function(Ee,De){Ee=kt(Ee);for(var Me,$e=ke.objectStore(be),Ge=_e.length,Be=new Array(Ge),Ue=0,Ye=0,We=function(xt){xt=xt.target,Be[xt._pos]=xt.result,++Ye===Ue&&Ee(Be)},Ze=br(De),wt=0;wt<Ge;++wt)_e[wt]!=null&&((Me=$e.get(_e[wt]))._pos=wt,Me.onsuccess=We,Me.onerror=Ze,++Ue);Ue===0&&Ee(Be)})},get:function(ve){var ke=ve.trans,_e=ve.key;return new Promise(function(Ee,De){Ee=kt(Ee);var Me=ke.objectStore(be).get(_e);Me.onsuccess=function($e){return Ee($e.target.result)},Me.onerror=br(De)})},query:(me=fe,function(ve){return new Promise(function(ke,_e){ke=kt(ke);var Ee,De,Me,Ue=ve.trans,$e=ve.values,Ge=ve.limit,We=ve.query,Be=Ge===1/0?void 0:Ge,Ye=We.index,We=We.range,Ue=Ue.objectStore(be),Ye=Ye.isPrimaryKey?Ue:Ue.index(Ye.name),We=q(We);if(Ge===0)return ke({result:[]});me?((Be=$e?Ye.getAll(We,Be):Ye.getAllKeys(We,Be)).onsuccess=function(Ze){return ke({result:Ze.target.result})},Be.onerror=br(_e)):(Ee=0,De=!$e&&"openKeyCursor"in Ye?Ye.openKeyCursor(We):Ye.openCursor(We),Me=[],De.onsuccess=function(Ze){var wt=De.result;return wt?(Me.push($e?wt.value:wt.primaryKey),++Ee===Ge?ke({result:Me}):void wt.continue()):ke({result:Me})},De.onerror=br(_e))})}),openCursor:function(ve){var ke=ve.trans,_e=ve.values,Ee=ve.query,De=ve.reverse,Me=ve.unique;return new Promise(function($e,Ge){$e=kt($e);var Ye=Ee.index,Be=Ee.range,Ue=ke.objectStore(be),Ue=Ye.isPrimaryKey?Ue:Ue.index(Ye.name),Ye=De?Me?"prevunique":"prev":Me?"nextunique":"next",We=!_e&&"openKeyCursor"in Ue?Ue.openKeyCursor(q(Be),Ye):Ue.openCursor(q(Be),Ye);We.onerror=br(Ge),We.onsuccess=kt(function(Ze){var wt,xt,St,Hr,yt=We.result;yt?(yt.___id=++Ud,yt.done=!1,wt=yt.continue.bind(yt),xt=(xt=yt.continuePrimaryKey)&&xt.bind(yt),St=yt.advance.bind(yt),Hr=function(){throw new Error("Cursor not stopped")},yt.trans=ke,yt.stop=yt.continue=yt.continuePrimaryKey=yt.advance=function(){throw new Error("Cursor not started")},yt.fail=kt(Ge),yt.next=function(){var xr=this,Vt=1;return this.start(function(){return Vt--?xr.continue():xr.stop()}).then(function(){return xr})},yt.start=function(xr){function Vt(){if(We.result)try{xr()}catch(kr){yt.fail(kr)}else yt.done=!0,yt.start=function(){throw new Error("Cursor behind last entry")},yt.stop()}var Ma=new Promise(function(kr,Xo){kr=kt(kr),We.onerror=br(Xo),yt.fail=Xo,yt.stop=function(cl){yt.stop=yt.continue=yt.continuePrimaryKey=yt.advance=Hr,kr(cl)}});return We.onsuccess=kt(function(kr){We.onsuccess=Vt,Vt()}),yt.continue=wt,yt.continuePrimaryKey=xt,yt.advance=St,Vt(),Ma},$e(yt)):$e(null)},Ge)})},count:function(ve){var ke=ve.query,_e=ve.trans,Ee=ke.index,De=ke.range;return new Promise(function(Me,$e){var Ge=_e.objectStore(be),Be=Ee.isPrimaryKey?Ge:Ge.index(Ee.name),Ge=q(De),Be=Ge?Be.count(Ge):Be.count();Be.onsuccess=kt(function(Ue){return Me(Ue.target.result)}),Be.onerror=br($e)})}}}var G,re,le,xe=(re=he,le=ci((G=y).objectStoreNames),{schema:{name:G.name,tables:le.map(function(Se){return re.objectStore(Se)}).map(function(Se){var me=Se.keyPath,ke=Se.autoIncrement,be=p(me),ve={},ke={name:Se.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:me==null,compound:be,keyPath:me,autoIncrement:ke,unique:!0,extractKey:No(me)},indexes:ci(Se.indexNames).map(function(_e){return Se.index(_e)}).map(function(Me){var Ee=Me.name,De=Me.unique,$e=Me.multiEntry,Me=Me.keyPath,$e={name:Ee,compound:p(Me),keyPath:Me,unique:De,multiEntry:$e,extractKey:No(Me)};return ve[di(Me)]=$e}),getIndexByKeyPath:function(_e){return ve[di(_e)]}};return ve[":id"]=ke.primaryKey,me!=null&&(ve[di(me)]=ke.primaryKey),ke})},hasGetAll:0<le.length&&"getAll"in re.objectStore(le[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),he=xe.schema,fe=xe.hasGetAll,xe=he.tables.map(U),de={};return xe.forEach(function(Se){return de[Se.name]=Se}),{stack:"dbcore",transaction:y.transaction.bind(y),table:function(Se){if(!de[Se])throw new Error("Table '".concat(Se,"' not found"));return de[Se]},MIN_KEY:-1/0,MAX_KEY:Vn(E),schema:he}}function Vi(y,E,R,q){var U=R.IDBKeyRange;return R.indexedDB,{dbcore:(q=Zs(E,U,q),y.dbcore.reduce(function(G,re){return re=re.create,a(a({},G),re(G))},q))}}function Na(y,q){var R=q.db,q=Vi(y._middlewares,R,y._deps,q);
vendor: 4,721 bytes, line 53
53y.core=q.dbcore,y.tables.forEach(function(U){var G=U.name;y.core.schema.tables.some(function(re){return re.name===G})&&(U.core=y.core.table(G),y[G]instanceof y.Table&&(y[G].core=U.core))})}function fi(y,E,R,q){R.forEach(function(U){var G=q[U];E.forEach(function(re){var le=(function he(fe,xe){return _(fe,xe)||(fe=g(fe))&&he(fe,xe)})(re,U);(!le||"value"in le&&le.value===void 0)&&(re===y.Transaction.prototype||re instanceof y.Transaction?k(re,U,{get:function(){return this.table(U)},set:function(he){m(this,U,{value:he,writable:!0,configurable:!0,enumerable:!0})}}):re[U]=new y.Table(U,G))})})}function On(y,E){E.forEach(function(R){for(var q in R)R[q]instanceof y.Table&&delete R[q]})}function Qs(y,E){return y._cfg.version-E._cfg.version}function Gi(y,E,R,q){var U=y._dbSchema;R.objectStoreNames.contains("$meta")&&!U.$meta&&(U.$meta=Go("$meta",ja("")[0],[]),y._storeNames.push("$meta"));var G=y._createTransaction("readwrite",y._storeNames,U);G.create(R),G._completion.catch(q);var re=G._reject.bind(G),le=Je.transless||Je;wo(function(){return Je.trans=G,Je.transless=le,E!==0?(Na(y,R),fe=E,((he=G).storeNames.includes("$meta")?he.table("$meta").get("version").then(function(xe){return xe??fe}):Ve.resolve(fe)).then(function(xe){return Se=xe,me=G,be=R,ve=[],xe=(de=y)._versions,ke=de._dbSchema=Gn(0,de.idbdb,be),(xe=xe.filter(function(_e){return _e._cfg.version>=Se})).length!==0?(xe.forEach(function(_e){ve.push(function(){var Ee=ke,De=_e._cfg.dbschema;Aa(de,Ee,be),Aa(de,De,be),ke=de._dbSchema=De;var Me=Ea(Ee,De);Me.add.forEach(function(Ye){Ca(be,Ye[0],Ye[1].primKey,Ye[1].indexes)}),Me.change.forEach(function(Ye){if(Ye.recreate)throw new ae.Upgrade("Not yet support for changing primary key");var We=be.objectStore(Ye.name);Ye.add.forEach(function(Ze){return Ar(We,Ze)}),Ye.change.forEach(function(Ze){We.deleteIndex(Ze.name),Ar(We,Ze)}),Ye.del.forEach(function(Ze){return We.deleteIndex(Ze)})});var $e=_e._cfg.contentUpgrade;if($e&&_e._cfg.version>Se){Na(de,be),me._memoizedTables={};var Ge=z(De);Me.del.forEach(function(Ye){Ge[Ye]=Ee[Ye]}),On(de,[de.Transaction.prototype]),fi(de,[de.Transaction.prototype],u(Ge),Ge),me.schema=Ge;var Be,Ue=M($e);return Ue&&ba(),Me=Ve.follow(function(){var Ye;(Be=$e(me))&&Ue&&(Ye=Ur.bind(null,null),Be.then(Ye,Ye))}),Be&&typeof Be.then=="function"?Ve.resolve(Be):Me.then(function(){return Be})}}),ve.push(function(Ee){var De,Me,$e=_e._cfg.dbschema;De=$e,Me=Ee,[].slice.call(Me.db.objectStoreNames).forEach(function(Ge){return De[Ge]==null&&Me.db.deleteObjectStore(Ge)}),On(de,[de.Transaction.prototype]),fi(de,[de.Transaction.prototype],de._storeNames,de._dbSchema),me.schema=de._dbSchema}),ve.push(function(Ee){de.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(de.idbdb.version/10)===_e._cfg.version?(de.idbdb.deleteObjectStore("$meta"),delete de._dbSchema.$meta,de._storeNames=de._storeNames.filter(function(De){return De!=="$meta"})):Ee.objectStore("$meta").put(_e._cfg.version,"version"))})}),(function _e(){return ve.length?Ve.resolve(ve.shift()(me.idbtrans)).then(_e):Ve.resolve()})().then(function(){Xs(ke,be)})):Ve.resolve();var de,Se,me,be,ve,ke}).catch(re)):(u(U).forEach(function(xe){Ca(R,xe,U[xe].primKey,U[xe].indexes)}),Na(y,R),void Ve.follow(function(){return y.on.populate.fire(G)}).catch(re));var he,fe})}function Au(y,E){Xs(y._dbSchema,E),E.db.version%10!=0||E.objectStoreNames.contains("$meta")||E.db.createObjectStore("$meta").add(Math.ceil(E.db.version/10-1),"version");var R=Gn(0,y.idbdb,E);Aa(y,y._dbSchema,E);for(var q=0,U=Ea(R,y._dbSchema).change;q<U.length;q++){var G=(function(re){if(re.change.length||re.recreate)return console.warn("Unable to patch indexes of table ".concat(re.name," because it has changes on the type of index or primary key.")),{value:void 0};var le=E.objectStore(re.name);re.add.forEach(function(he){Re&&console.debug("Dexie upgrade patch: Creating missing index ".concat(re.name,".").concat(he.src)),Ar(le,he)})})(U[q]);if(typeof G=="object")return G.value}}function Ea(y,E){var R,q={del:[],add:[],change:[]};for(R in y)E[R]||q.del.push(R);for(R in E){var U=y[R],G=E[R];if(U){var re={name:R,def:G,recreate:!1,del:[],add:[],change:[]};if(""+(U.primKey.keyPath||"")!=""+(G.primKey.keyPath||"")||U.primKey.auto!==G.primKey.auto)re.recreate=!0,q.change.push(re);else{var le=U.idxByName,he=G.idxByName,fe=void 0;for(fe in le)he[fe]||re.del.push(fe);for(fe in he){var xe=le[fe],de=he[fe];xe?xe.src!==de.src&&re.change.push(de):re.add.push(de)}(0<re.del.length||0<re.add.length||0<re.change.length)&&q.change.push(re)}}else q.add.push([R,G])}return q}function Ca(y,E,R,q){var U=y.db.createObjectStore(E,R.keyPath?{keyPath:R.keyPath,autoIncrement:R.auto}:{autoIncrement:R.auto});return q.forEach(function(G){return Ar(U,G)}),U}
vendor: 22,313 bytes, line 53
53function Xs(y,E){u(y).forEach(function(R){E.db.objectStoreNames.contains(R)||(Re&&console.debug("Dexie: Creating missing table",R),Ca(E,R,y[R].primKey,y[R].indexes))})}function Ar(y,E){y.createIndex(E.name,E.keyPath,{unique:E.unique,multiEntry:E.multi})}function Gn(y,E,R){var q={};return x(E.objectStoreNames,0).forEach(function(U){for(var G=R.objectStore(U),re=Wi(Cu(fe=G.keyPath),fe||"",!0,!1,!!G.autoIncrement,fe&&typeof fe!="string",!0),le=[],he=0;he<G.indexNames.length;++he){var xe=G.index(G.indexNames[he]),fe=xe.keyPath,xe=Wi(xe.name,fe,!!xe.unique,!!xe.multiEntry,!1,fe&&typeof fe!="string",!1);le.push(xe)}q[U]=Go(U,re,le)}),q}function Aa(y,E,R){for(var q=R.db.objectStoreNames,U=0;U<q.length;++U){var G=q[U],re=R.objectStore(G);y._hasGetAll="getAll"in re;for(var le=0;le<re.indexNames.length;++le){var he=re.indexNames[le],fe=re.index(he).keyPath,xe=typeof fe=="string"?fe:"["+x(fe).join("+")+"]";!E[G]||(fe=E[G].idxByName[xe])&&(fe.name=he,delete E[G].idxByName[xe],E[G].idxByName[he]=fe)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&s.WorkerGlobalScope&&s instanceof s.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(y._hasGetAll=!1)}function ja(y){return y.split(",").map(function(E,R){var G=E.split(":"),q=(U=G[1])===null||U===void 0?void 0:U.trim(),U=(E=G[0].trim()).replace(/([&*]|\+\+)/g,""),G=/^\[/.test(U)?U.match(/^\[(.*)\]$/)[1].split("+"):U;return Wi(U,G||null,/\&/.test(E),/\*/.test(E),/\+\+/.test(E),p(G),R===0,q)})}var Hd=(Eo.prototype._createTableSchema=Go,Eo.prototype._parseIndexSyntax=ja,Eo.prototype._parseStoresSpec=function(y,E){var R=this;u(y).forEach(function(q){if(y[q]!==null){var U=R._parseIndexSyntax(y[q]),G=U.shift();if(!G)throw new ae.Schema("Invalid schema for table "+q+": "+y[q]);if(G.unique=!0,G.multi)throw new ae.Schema("Primary key cannot be multiEntry*");U.forEach(function(re){if(re.auto)throw new ae.Schema("Only primary key can be marked as autoIncrement (++)");if(!re.keyPath)throw new ae.Schema("Index must have a name and cannot be an empty string")}),U=R._createTableSchema(q,G,U),E[q]=U}})},Eo.prototype.stores=function(R){var E=this.db;this._cfg.storesSource=this._cfg.storesSource?h(this._cfg.storesSource,R):R;var R=E._versions,q={},U={};return R.forEach(function(G){h(q,G._cfg.storesSource),U=G._cfg.dbschema={},G._parseStoresSpec(q,U)}),E._dbSchema=U,On(E,[E._allTables,E,E.Transaction.prototype]),fi(E,[E._allTables,E,E.Transaction.prototype,this._cfg.tables],u(U),U),E._storeNames=u(U),this},Eo.prototype.upgrade=function(y){return this._cfg.contentUpgrade=Te(this._cfg.contentUpgrade||je,y),this},Eo);function Eo(){}function pi(y,E){var R=y._dbNamesDB;return R||(R=y._dbNamesDB=new Zn(ni,{addons:[],indexedDB:y,IDBKeyRange:E})).version(1).stores({dbnames:"name"}),R.table("dbnames")}function Yo(y){return y&&typeof y.databases=="function"}function Ta(y){return wo(function(){return Je.letThrough=!0,y()})}function Yi(y){return!("from"in y)}var jr=function(y,E){if(!this){var R=new jr;return y&&"d"in y&&h(R,y),R}h(this,arguments.length?{d:1,from:y,to:1<arguments.length?E:y}:{d:0})};function hi(y,E,R){var q=mt(E,R);if(!isNaN(q)){if(0<q)throw RangeError();if(Yi(y))return h(y,{from:E,to:R,d:1});var U=y.l,q=y.r;if(mt(R,y.from)<0)return U?hi(U,E,R):y.l={from:E,to:R,d:1,l:null,r:null},ju(y);if(0<mt(E,y.to))return q?hi(q,E,R):y.r={from:E,to:R,d:1,l:null,r:null},ju(y);mt(E,y.from)<0&&(y.from=E,y.l=null,y.d=q?q.d+1:1),0<mt(R,y.to)&&(y.to=R,y.r=null,y.d=y.l?y.l.d+1:1),R=!y.r,U&&!y.l&&mi(y,U),q&&R&&mi(y,q)}}function mi(y,E){Yi(E)||(function R(q,he){var G=he.from,re=he.to,le=he.l,he=he.r;hi(q,G,re),le&&R(q,le),he&&R(q,he)})(y,E)}function Zi(y,E){var R=Qi(E),q=R.next();if(q.done)return!1;for(var U=q.value,G=Qi(y),re=G.next(U.from),le=re.value;!q.done&&!re.done;){if(mt(le.from,U.to)<=0&&0<=mt(le.to,U.from))return!0;mt(U.from,le.from)<0?U=(q=R.next(le.from)).value:le=(re=G.next(U.from)).value}return!1}function Qi(y){var E=Yi(y)?null:{s:0,n:y};return{next:function(R){for(var q=0<arguments.length;E;)switch(E.s){case 0:if(E.s=1,q)for(;E.n.l&&mt(R,E.n.from)<0;)E={up:E,n:E.n.l,s:1};else for(;E.n.l;)E={up:E,n:E.n.l,s:1};case 1:if(E.s=2,!q||mt(R,E.n.to)<=0)return{value:E.n,done:!1};case 2:if(E.n.r){E.s=3,E={up:E,n:E.n.r,s:0};continue}case 3:E=E.up}return{done:!0}}}}function ju(y){var E,R,q=(((E=y.r)===null||E===void 0?void 0:E.d)||0)-(((R=y.l)===null||R===void 0?void 0:R.d)||0),U=1<q?"r":q<-1?"l":"";U&&(E=U=="r"?"l":"r",R=a({},y),q=y[U],y.from=q.from,y.to=q.to,y[U]=q[U],R[U]=q[E],(y[E]=R).d=Tu(R)),y.d=Tu(y)}function Tu(R){var E=R.r,R=R.l;return(E?R?Math.max(E.d,R.d):E.d:R?R.d:0)+1}function Xi(y,E){return u(E).forEach(function(R){y[R]?mi(y[R],E[R]):y[R]=(function q(U){var G,re,le={};for(G in U)d(U,G)&&(re=U[G],le[G]=!re||typeof re!="object"||T.has(re.constructor)?re:q(re));return le})(E[R])}),y}function Js(y,E){return y.all||E.all||Object.keys(y).some(function(R){return E[R]&&Zi(E[R],y[R])})}f(jr.prototype,((tn={add:function(y){return mi(this,y),this},addKey:function(y){return hi(this,y,y),this},addKeys:function(y){var E=this;return y.forEach(function(R){return hi(E,R,R)}),this},hasKey:function(y){var E=Qi(this).next(y).value;return E&&mt(E.from,y)<=0&&0<=mt(E.to,y)}})[Q]=function(){return Qi(this)},tn));var Co={},el={},tl=!1;function Ji(y){Xi(el,y),tl||(tl=!0,setTimeout(function(){tl=!1,rl(el,!(el={}))},0))}function rl(y,E){E===void 0&&(E=!1);var R=new Set;if(y.all)for(var q=0,U=Object.values(Co);q<U.length;q++)es(re=U[q],y,R,E);else for(var G in y){var re,le=/^idb\:\/\/(.*)\/(.*)\//.exec(G);le&&(G=le[1],le=le[2],(re=Co["idb://".concat(G,"/").concat(le)])&&es(re,y,R,E))}R.forEach(function(he){return he()})}function es(y,E,R,q){for(var U=[],G=0,re=Object.entries(y.queries.query);G<re.length;G++){for(var le=re[G],he=le[0],fe=[],xe=0,de=le[1];xe<de.length;xe++){var Se=de[xe];Js(E,Se.obsSet)?Se.subscribers.forEach(function(ke){return R.add(ke)}):q&&fe.push(Se)}q&&U.push([he,fe])}if(q)for(var me=0,be=U;me<be.length;me++){var ve=be[me],he=ve[0],fe=ve[1];y.queries.query[he]=fe}}function Kd(y){var E=y._state,R=y._deps.indexedDB;if(E.isBeingOpened||y.idbdb)return E.dbReadyPromise.then(function(){return E.dbOpenError?or(E.dbOpenError):y});E.isBeingOpened=!0,E.dbOpenError=null,E.openComplete=!1;var q=E.openCanceller,U=Math.round(10*y.verno),G=!1;function re(){if(E.openCanceller!==q)throw new ae.DatabaseClosed("db.open() was cancelled")}function le(){return new Ve(function(Se,me){if(re(),!R)throw new ae.MissingAPI;var be=y.name,ve=E.autoSchema||!U?R.open(be):R.open(be,U);if(!ve)throw new ae.MissingAPI;ve.onerror=br(me),ve.onblocked=kt(y._fireOnBlocked),ve.onupgradeneeded=kt(function(ke){var _e;xe=ve.transaction,E.autoSchema&&!y._options.allowEmptyDB?(ve.onerror=ui,xe.abort(),ve.result.close(),(_e=R.deleteDatabase(be)).onsuccess=_e.onerror=kt(function(){me(new ae.NoSuchDatabase("Database ".concat(be," doesnt exist")))})):(xe.onerror=br(me),ke=ke.oldVersion>Math.pow(2,62)?0:ke.oldVersion,de=ke<1,y.idbdb=ve.result,G&&Au(y,xe),Gi(y,ke/10,xe,me))},me),ve.onsuccess=kt(function(){xe=null;var ke,_e,Ee,De,Me,$e=y.idbdb=ve.result,Ge=x($e.objectStoreNames);if(0<Ge.length)try{var Be=$e.transaction((De=Ge).length===1?De[0]:De,"readonly");if(E.autoSchema)_e=$e,Ee=Be,(ke=y).verno=_e.version/10,Ee=ke._dbSchema=Gn(0,_e,Ee),ke._storeNames=x(_e.objectStoreNames,0),fi(ke,[ke._allTables],u(Ee),Ee);else if(Aa(y,y._dbSchema,Be),((Me=Ea(Gn(0,(Me=y).idbdb,Be),Me._dbSchema)).add.length||Me.change.some(function(Ue){return Ue.add.length||Ue.change.length}))&&!G)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),$e.close(),U=$e.version+1,G=!0,Se(le());Na(y,Be)}catch{}xo.push(y),$e.onversionchange=kt(function(Ue){E.vcFired=!0,y.on("versionchange").fire(Ue)}),$e.onclose=kt(function(){y.close({disableAutoOpen:!1})}),de&&(Me=y._deps,Be=be,$e=Me.indexedDB,Me=Me.IDBKeyRange,Yo($e)||Be===ni||pi($e,Me).put({name:Be}).catch(je)),Se()},me)}).catch(function(Se){switch(Se?.name){case"UnknownError":if(0<E.PR1398_maxLoop)return E.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),le();break;case"VersionError":if(0<U)return U=0,le()}return Ve.reject(Se)})}var he,fe=E.dbReadyResolve,xe=null,de=!1;return Ve.race([q,(typeof navigator>"u"?Ve.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(Se){function me(){return indexedDB.databases().finally(Se)}he=setInterval(me,100),me()}).finally(function(){return clearInterval(he)}):Promise.resolve()).then(le)]).then(function(){return re(),E.onReadyBeingFired=[],Ve.resolve(Ta(function(){return y.on.ready.fire(y.vip)})).then(function Se(){if(0<E.onReadyBeingFired.length){var me=E.onReadyBeingFired.reduce(Te,je);return E.onReadyBeingFired=[],Ve.resolve(Ta(function(){return me(y.vip)})).then(Se)}})}).finally(function(){E.openCanceller===q&&(E.onReadyBeingFired=null,E.isBeingOpened=!1)}).catch(function(Se){E.dbOpenError=Se;try{xe&&xe.abort()}catch{}return q===E.openCanceller&&y._close(),or(Se)}).finally(function(){E.openComplete=!0,fe()}).then(function(){var Se;return de&&(Se={},y.tables.forEach(function(me){me.schema.indexes.forEach(function(be){be.name&&(Se["idb://".concat(y.name,"/").concat(me.name,"/").concat(be.name)]=new jr(-1/0,[[[]]]))}),Se["idb://".concat(y.name,"/").concat(me.name,"/")]=Se["idb://".concat(y.name,"/").concat(me.name,"/:dels")]=new jr(-1/0,[[[]]])}),_o(_a).fire(Se),rl(Se,!0)),y})}function nl(y){function E(G){return y.next(G)}var R=U(E),q=U(function(G){return y.throw(G)});function U(G){return function(he){var le=G(he),he=le.value;return le.done?he:he&&typeof he.then=="function"?he.then(R,q):p(he)?Promise.all(he).then(R,q):R(he)}}return U(E)()}function ts(y,E,R){for(var q=p(y)?y.slice():[y],U=0;U<R;++U)q.push(E);return q}var Ou={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(y){return a(a({},y),{table:function(E){var R=y.table(E),q=R.schema,U={},G=[];function re(de,Se,me){var be=di(de),ve=U[be]=U[be]||[],ke=de==null?0:typeof de=="string"?1:de.length,_e=0<Se,_e=a(a({},me),{name:_e?"".concat(be,"(virtual-from:").concat(me.name,")"):me.name,lowLevelIndex:me,isVirtual:_e,keyTail:Se,keyLength:ke,extractKey:No(de),unique:!_e&&me.unique});return ve.push(_e),_e.isPrimaryKey||G.push(_e),1<ke&&re(ke===2?de[0]:de.slice(0,ke-1),Se+1,me),ve.sort(function(Ee,De){return Ee.keyTail-De.keyTail}),_e}E=re(q.primaryKey.keyPath,0,q.primaryKey),U[":id"]=[E];for(var le=0,he=q.indexes;le<he.length;le++){var fe=he[le];re(fe.keyPath,0,fe)}function xe(de){var Se,me=de.query.index;return me.isVirtual?a(a({},de),{query:{index:me.lowLevelIndex,range:(Se=de.query.range,me=me.keyTail,{type:Se.type===1?2:Se.type,lower:ts(Se.lower,Se.lowerOpen?y.MAX_KEY:y.MIN_KEY,me),lowerOpen:!0,upper:ts(Se.upper,Se.upperOpen?y.MIN_KEY:y.MAX_KEY,me),upperOpen:!0})}}):de}return a(a({},R),{schema:a(a({},q),{primaryKey:E,indexes:G,getIndexByKeyPath:function(de){return(de=U[di(de)])&&de[0]}}),count:function(de){return R.count(xe(de))},query:function(de){return R.query(xe(de))},openCursor:function(de){var Se=de.query.index,me=Se.keyTail,be=Se.isVirtual,ve=Se.keyLength;return be?R.openCursor(xe(de)).then(function(_e){return _e&&ke(_e)}):R.openCursor(de);function ke(_e){return Object.create(_e,{continue:{value:function(Ee){Ee!=null?_e.continue(ts(Ee,de.reverse?y.MAX_KEY:y.MIN_KEY,me)):de.unique?_e.continue(_e.key.slice(0,ve).concat(de.reverse?y.MIN_KEY:y.MAX_KEY,me)):_e.continue()}},continuePrimaryKey:{value:function(Ee,De){_e.continuePrimaryKey(ts(Ee,y.MAX_KEY,me),De)}},primaryKey:{get:function(){return _e.primaryKey}},key:{get:function(){var Ee=_e.key;return ve===1?Ee[0]:Ee.slice(0,ve)}},value:{get:function(){return _e.value}}})}}})}})}};function ol(y,E,R,q){return R=R||{},q=q||"",u(y).forEach(function(U){var G,re,le;d(E,U)?(G=y[U],re=E[U],typeof G=="object"&&typeof re=="object"&&G&&re?(le=W(G))!==W(re)?R[q+U]=E[U]:le==="Object"?ol(G,re,R,q+U+"."):G!==re&&(R[q+U]=E[U]):G!==re&&(R[q+U]=E[U])):R[q+U]=void 0}),u(E).forEach(function(U){d(y,U)||(R[q+U]=E[U])}),R}function al(y,E){return E.type==="delete"?E.keys:E.keys||E.values.map(y.extractKey)}var Wd={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(y){return a(a({},y),{table:function(E){var R=y.table(E),q=R.schema.primaryKey;return a(a({},R),{mutate:function(U){var G=Je.trans,re=G.table(E).hook,le=re.deleting,he=re.creating,fe=re.updating;switch(U.type){case"add":if(he.fire===je)break;return G._promise("readwrite",function(){return xe(U)},!0);case"put":if(he.fire===je&&fe.fire===je)break;return G._promise("readwrite",function(){return xe(U)},!0);case"delete":if(le.fire===je)break;return G._promise("readwrite",function(){return xe(U)},!0);case"deleteRange":if(le.fire===je)break;return G._promise("readwrite",function(){return(function de(Se,me,be){return R.query({trans:Se,values:!1,query:{index:q,range:me},limit:be}).then(function(ve){var ke=ve.result;return xe({type:"delete",keys:ke,trans:Se}).then(function(_e){return 0<_e.numFailures?Promise.reject(_e.failures[0]):ke.length<be?{failures:[],numFailures:0,lastResult:void 0}:de(Se,a(a({},me),{lower:ke[ke.length-1],lowerOpen:!0}),be)})})})(U.trans,U.range,1e4)},!0)}return R.mutate(U);function xe(de){var Se,me,be,ve=Je.trans,ke=de.keys||al(q,de);if(!ke)throw new Error("Keys missing");return(de=de.type==="add"||de.type==="put"?a(a({},de),{keys:ke}):a({},de)).type!=="delete"&&(de.values=i([],de.values)),de.keys&&(de.keys=i([],de.keys)),Se=R,be=ke,((me=de).type==="add"?Promise.resolve([]):Se.getMany({trans:me.trans,keys:be,cache:"immutable"})).then(function(_e){var Ee=ke.map(function(De,Me){var $e,Ge,Be,Ue=_e[Me],Ye={onerror:null,onsuccess:null};return de.type==="delete"?le.fire.call(Ye,De,Ue,ve):de.type==="add"||Ue===void 0?($e=he.fire.call(Ye,De,de.values[Me],ve),De==null&&$e!=null&&(de.keys[Me]=De=$e,q.outbound||P(de.values[Me],q.keyPath,De))):($e=ol(Ue,de.values[Me]),(Ge=fe.fire.call(Ye,$e,De,Ue,ve))&&(Be=de.values[Me],Object.keys(Ge).forEach(function(We){d(Be,We)?Be[We]=Ge[We]:P(Be,We,Ge[We])}))),Ye});return R.mutate(de).then(function(De){for(var Me=De.failures,$e=De.results,Ge=De.numFailures,De=De.lastResult,Be=0;Be<ke.length;++Be){var Ue=($e||ke)[Be],Ye=Ee[Be];Ue==null?Ye.onerror&&Ye.onerror(Me[Be]):Ye.onsuccess&&Ye.onsuccess(de.type==="put"&&_e[Be]?de.values[Be]:Ue)}return{failures:Me,results:$e,numFailures:Ge,lastResult:De}}).catch(function(De){return Ee.forEach(function(Me){return Me.onerror&&Me.onerror(De)}),Promise.reject(De)})})}}})}})}};function Pu(y,E,R){try{if(!E||E.keys.length<y.length)return null;for(var q=[],U=0,G=0;U<E.keys.length&&G<y.length;++U)mt(E.keys[U],y[G])===0&&(q.push(R?B(E.values[U]):E.values[U]),++G);return q.length===y.length?q:null}catch{return null}}var Vd={stack:"dbcore",level:-1,create:function(y){return{table:function(E){var R=y.table(E);return a(a({},R),{getMany:function(q){if(!q.cache)return R.getMany(q);var U=Pu(q.keys,q.trans._cache,q.cache==="clone");return U?Ve.resolve(U):R.getMany(q).then(function(G){return q.trans._cache={keys:q.keys,values:q.cache==="clone"?B(G):G},G})},mutate:function(q){return q.type!=="add"&&(q.trans._cache=null),R.mutate(q)}})}}}};function Ru(y,E){return y.trans.mode==="readonly"&&!!y.subscr&&!y.trans.explicit&&y.trans.db._options.cache!=="disabled"&&!E.schema.primaryKey.outbound}function Du(y,E){switch(y){case"query":return E.values&&!E.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var il={stack:"dbcore",level:0,name:"Observability",create:function(y){var E=y.schema.name,R=new jr(y.MIN_KEY,y.MAX_KEY);return a(a({},y),{transaction:function(q,U,G){if(Je.subscr&&U!=="readonly")throw new ae.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(Je.querier));return y.transaction(q,U,G)},table:function(q){var U=y.table(q),G=U.schema,re=G.primaryKey,de=G.indexes,le=re.extractKey,he=re.outbound,fe=re.autoIncrement&&de.filter(function(me){return me.compound&&me.keyPath.includes(re.keyPath)}),xe=a(a({},U),{mutate:function(me){function be(We){return We="idb://".concat(E,"/").concat(q,"/").concat(We),De[We]||(De[We]=new jr)}var ve,ke,_e,Ee=me.trans,De=me.mutatedParts||(me.mutatedParts={}),Me=be(""),$e=be(":dels"),Ge=me.type,Ye=me.type==="deleteRange"?[me.range]:me.type==="delete"?[me.keys]:me.values.length<50?[al(re,me).filter(function(We){return We}),me.values]:[],Be=Ye[0],Ue=Ye[1],Ye=me.trans._cache;return p(Be)?(Me.addKeys(Be),(Ye=Ge==="delete"||Be.length===Ue.length?Pu(Be,Ye):null)||$e.addKeys(Be),(Ye||Ue)&&(ve=be,ke=Ye,_e=Ue,G.indexes.forEach(function(We){var Ze=ve(We.name||"");function wt(St){return St!=null?We.extractKey(St):null}function xt(St){return We.multiEntry&&p(St)?St.forEach(function(Hr){return Ze.addKey(Hr)}):Ze.addKey(St)}(ke||_e).forEach(function(St,xr){var yt=ke&&wt(ke[xr]),xr=_e&&wt(_e[xr]);mt(yt,xr)!==0&&(yt!=null&&xt(yt),xr!=null&&xt(xr))})}))):Be?(Ue={from:(Ue=Be.lower)!==null&&Ue!==void 0?Ue:y.MIN_KEY,to:(Ue=Be.upper)!==null&&Ue!==void 0?Ue:y.MAX_KEY},$e.add(Ue),Me.add(Ue)):(Me.add(R),$e.add(R),G.indexes.forEach(function(We){return be(We.name).add(R)})),U.mutate(me).then(function(We){return!Be||me.type!=="add"&&me.type!=="put"||(Me.addKeys(We.results),fe&&fe.forEach(function(Ze){for(var wt=me.values.map(function(yt){return Ze.extractKey(yt)}),xt=Ze.keyPath.findIndex(function(yt){return yt===re.keyPath}),St=0,Hr=We.results.length;St<Hr;++St)wt[St][xt]=We.results[St];be(Ze.name).addKeys(wt)})),Ee.mutatedParts=Xi(Ee.mutatedParts||{},De),We})}}),de=function(be){var ve=be.query,be=ve.index,ve=ve.range;return[be,new jr((be=ve.lower)!==null&&be!==void 0?be:y.MIN_KEY,(ve=ve.upper)!==null&&ve!==void 0?ve:y.MAX_KEY)]},Se={get:function(me){return[re,new jr(me.key)]},getMany:function(me){return[re,new jr().addKeys(me.keys)]},count:de,query:de,openCursor:de};return u(Se).forEach(function(me){xe[me]=function(be){var ve=Je.subscr,ke=!!ve,_e=Ru(Je,U)&&Du(me,be)?be.obsSet={}:ve;if(ke){var Ee=function(Ue){return Ue="idb://".concat(E,"/").concat(q,"/").concat(Ue),_e[Ue]||(_e[Ue]=new jr)},De=Ee(""),Me=Ee(":dels"),ve=Se[me](be),ke=ve[0],ve=ve[1];if((me==="query"&&ke.isPrimaryKey&&!be.values?Me:Ee(ke.name||"")).add(ve),!ke.isPrimaryKey){if(me!=="count"){var $e=me==="query"&&he&&be.values&&U.query(a(a({},be),{values:!1}));return U[me].apply(this,arguments).then(function(Ue){if(me==="query"){if(he&&be.values)return $e.then(function(wt){return wt=wt.result,De.addKeys(wt),Ue});var Ye=be.values?Ue.result.map(le):Ue.result;(be.values?De:Me).addKeys(Ye)}else if(me==="openCursor"){var We=Ue,Ze=be.values;return We&&Object.create(We,{key:{get:function(){return Me.addKey(We.primaryKey),We.key}},primaryKey:{get:function(){var wt=We.primaryKey;return Me.addKey(wt),wt}},value:{get:function(){return Ze&&De.addKey(We.primaryKey),We.value}}})}return Ue})}Me.add(R)}}return U[me].apply(this,arguments)}}),xe}})}};function Oa(y,E,R){if(R.numFailures===0)return E;if(E.type==="deleteRange")return null;var q=E.keys?E.keys.length:"values"in E&&E.values?E.values.length:1;return R.numFailures===q?null:(E=a({},E),p(E.keys)&&(E.keys=E.keys.filter(function(U,G){return!(G in R.failures)})),"values"in E&&p(E.values)&&(E.values=E.values.filter(function(U,G){return!(G in R.failures)})),E)}function sl(y,E){return R=y,((q=E).lower===void 0||(q.lowerOpen?0<mt(R,q.lower):0<=mt(R,q.lower)))&&(y=y,(E=E).upper===void 0||(E.upperOpen?mt(y,E.upper)<0:mt(y,E.upper)<=0));var R,q}function ll(y,E,Se,q,U,G){if(!Se||Se.length===0)return y;var re=E.query.index,le=re.multiEntry,he=E.query.range,fe=q.schema.primaryKey.extractKey,xe=re.extractKey,de=(re.lowLevelIndex||re).extractKey,Se=Se.reduce(function(me,be){var ve=me,ke=[];if(be.type==="add"||be.type==="put")for(var _e=new jr,Ee=be.values.length-1;0<=Ee;--Ee){var De,Me=be.values[Ee],$e=fe(Me);_e.hasKey($e)||(De=xe(Me),(le&&p(De)?De.some(function(We){return sl(We,he)}):sl(De,he))&&(_e.addKey($e),ke.push(Me)))}switch(be.type){case"add":var Ge=new jr().addKeys(E.values?me.map(function(Ze){return fe(Ze)}):me),ve=me.concat(E.values?ke.filter(function(Ze){return Ze=fe(Ze),!Ge.hasKey(Ze)&&(Ge.addKey(Ze),!0)}):ke.map(function(Ze){return fe(Ze)}).filter(function(Ze){return!Ge.hasKey(Ze)&&(Ge.addKey(Ze),!0)}));break;case"put":var Be=new jr().addKeys(be.values.map(function(Ze){return fe(Ze)}));ve=me.filter(function(Ze){return!Be.hasKey(E.values?fe(Ze):Ze)}).concat(E.values?ke:ke.map(function(Ze){return fe(Ze)}));break;case"delete":var Ue=new jr().addKeys(be.keys);ve=me.filter(function(Ze){return!Ue.hasKey(E.values?fe(Ze):Ze)});break;case"deleteRange":var Ye=be.range;ve=me.filter(function(Ze){return!sl(fe(Ze),Ye)})}return ve},y);return Se===y?y:(Se.sort(function(me,be){return mt(de(me),de(be))||mt(fe(me),fe(be))}),E.limit&&E.limit<1/0&&(Se.length>E.limit?Se.length=E.limit:y.length===E.limit&&Se.length<E.limit&&(U.dirty=!0)),G?Object.freeze(Se):Se)}function ul(y,E){return mt(y.lower,E.lower)===0&&mt(y.upper,E.upper)===0&&!!y.lowerOpen==!!E.lowerOpen&&!!y.upperOpen==!!E.upperOpen}function Mu(y,E){return(function(R,q,U,G){if(R===void 0)return q!==void 0?-1:0;if(q===void 0)return 1;if((q=mt(R,q))===0){if(U&&G)return 0;if(U)return 1;if(G)return-1}return q})(y.lower,E.lower,y.lowerOpen,E.lowerOpen)<=0&&0<=(function(R,q,U,G){if(R===void 0)return q!==void 0?1:0;if(q===void 0)return-1;if((q=mt(R,q))===0){if(U&&G)return 0;if(U)return-1;if(G)return 1}return q})(y.upper,E.upper,y.upperOpen,E.upperOpen)}function Iu(y,E,R,q){y.subscribers.add(R),q.addEventListener("abort",function(){var U,G;y.subscribers.delete(R),y.subscribers.size===0&&(U=y,G=E,setTimeout(function(){U.subscribers.size===0&&Z(G,U)},3e3))})}var Lu={stack:"dbcore",level:0,name:"Cache",create:function(y){var E=y.schema.name;return a(a({},y),{transaction:function(R,q,U){var G,re,le=y.transaction(R,q,U);return q==="readwrite"&&(re=(G=new AbortController).signal,U=function(he){return function(){if(G.abort(),q==="readwrite"){for(var fe=new Set,xe=0,de=R;xe<de.length;xe++){var Se=de[xe],me=Co["idb://".concat(E,"/").concat(Se)];if(me){var be=y.table(Se),ve=me.optimisticOps.filter(function(Ze){return Ze.trans===le});if(le._explicit&&he&&le.mutatedParts)for(var ke=0,_e=Object.values(me.queries.query
vendor: 4,539 bytes, line 53
53);ke<_e.length;ke++)for(var Ee=0,De=(Ge=_e[ke]).slice();Ee<De.length;Ee++)Js((Be=De[Ee]).obsSet,le.mutatedParts)&&(Z(Ge,Be),Be.subscribers.forEach(function(Ze){return fe.add(Ze)}));else if(0<ve.length){me.optimisticOps=me.optimisticOps.filter(function(Ze){return Ze.trans!==le});for(var Me=0,$e=Object.values(me.queries.query);Me<$e.length;Me++)for(var Ge,Be,Ue,Ye=0,We=(Ge=$e[Me]).slice();Ye<We.length;Ye++)(Be=We[Ye]).res!=null&&le.mutatedParts&&(he&&!Be.dirty?(Ue=Object.isFrozen(Be.res),Ue=ll(Be.res,Be.req,ve,be,Be,Ue),Be.dirty?(Z(Ge,Be),Be.subscribers.forEach(function(Ze){return fe.add(Ze)})):Ue!==Be.res&&(Be.res=Ue,Be.promise=Ve.resolve({result:Ue}))):(Be.dirty&&Z(Ge,Be),Be.subscribers.forEach(function(Ze){return fe.add(Ze)})))}}}fe.forEach(function(Ze){return Ze()})}}},le.addEventListener("abort",U(!1),{signal:re}),le.addEventListener("error",U(!1),{signal:re}),le.addEventListener("complete",U(!0),{signal:re})),le},table:function(R){var q=y.table(R),U=q.schema.primaryKey;return a(a({},q),{mutate:function(G){var re=Je.trans;if(U.outbound||re.db._options.cache==="disabled"||re.explicit||re.idbtrans.mode!=="readwrite")return q.mutate(G);var le=Co["idb://".concat(E,"/").concat(R)];return le?(re=q.mutate(G),G.type!=="add"&&G.type!=="put"||!(50<=G.values.length||al(U,G).some(function(he){return he==null}))?(le.optimisticOps.push(G),G.mutatedParts&&Ji(G.mutatedParts),re.then(function(he){0<he.numFailures&&(Z(le.optimisticOps,G),(he=Oa(0,G,he))&&le.optimisticOps.push(he),G.mutatedParts&&Ji(G.mutatedParts))}),re.catch(function(){Z(le.optimisticOps,G),G.mutatedParts&&Ji(G.mutatedParts)})):re.then(function(he){var fe=Oa(0,a(a({},G),{values:G.values.map(function(xe,de){var Se;return he.failures[de]?xe:(xe=(Se=U.keyPath)!==null&&Se!==void 0&&Se.includes(".")?B(xe):a({},xe),P(xe,U.keyPath,he.results[de]),xe)})}),he);le.optimisticOps.push(fe),queueMicrotask(function(){return G.mutatedParts&&Ji(G.mutatedParts)})}),re):q.mutate(G)},query:function(G){if(!Ru(Je,q)||!Du("query",G))return q.query(G);var re=((fe=Je.trans)===null||fe===void 0?void 0:fe.db._options.cache)==="immutable",de=Je,le=de.requery,he=de.signal,fe=(function(be,ve,ke,_e){var Ee=Co["idb://".concat(be,"/").concat(ve)];if(!Ee)return[];if(!(ve=Ee.queries[ke]))return[null,!1,Ee,null];var De=ve[(_e.query?_e.query.index.name:null)||""];if(!De)return[null,!1,Ee,null];switch(ke){case"query":var Me=De.find(function($e){return $e.req.limit===_e.limit&&$e.req.values===_e.values&&ul($e.req.query.range,_e.query.range)});return Me?[Me,!0,Ee,De]:[De.find(function($e){return("limit"in $e.req?$e.req.limit:1/0)>=_e.limit&&(!_e.values||$e.req.values)&&Mu($e.req.query.range,_e.query.range)}),!1,Ee,De];case"count":return Me=De.find(function($e){return ul($e.req.query.range,_e.query.range)}),[Me,!!Me,Ee,De]}})(E,R,"query",G),xe=fe[0],de=fe[1],Se=fe[2],me=fe[3];return xe&&de?xe.obsSet=G.obsSet:(de=q.query(G).then(function(be){var ve=be.result;if(xe&&(xe.res=ve),re){for(var ke=0,_e=ve.length;ke<_e;++ke)Object.freeze(ve[ke]);Object.freeze(ve)}else be.result=B(ve);return be}).catch(function(be){return me&&xe&&Z(me,xe),Promise.reject(be)}),xe={obsSet:G.obsSet,promise:de,subscribers:new Set,type:"query",req:G,dirty:!1},me?me.push(xe):(me=[xe],(Se=Se||(Co["idb://".concat(E,"/").concat(R)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[G.query.index.name||""]=me)),Iu(xe,me,le,he),xe.promise.then(function(be){return{result:ll(be.result,G,Se?.optimisticOps,q,xe,re)}})}})}})}};function Yn(y,E){return new Proxy(y,{get:function(R,q,U){return q==="db"?E:Reflect.get(R,q,U)}})}var Zn=(ar.prototype.version=function(y){if(isNaN(y)||y<.1)throw new ae.Type("Given version is not a positive number");if(y=Math.round(10*y)/10,this.idbdb||this._state.isBeingOpened)throw new ae.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,y);var E=this._versions,R=E.filter(function(q){return q._cfg.version===y})[0];return R||(R=new this.Version(y),E.push(R),E.sort(Qs),R.stores({}),this._state.autoSchema=!1,R)},ar.prototype._whenReady=function(y){var E=this;return this.idbdb&&(this._state.openComplete||Je.letThrough||this._vip)?y():new Ve(function(R,q){if(E._state.openComplete)return q(new ae.DatabaseClosed(E._state.dbOpenError));if(!E._state.isBeingOpened){if(!E._state.autoOpen)return void q(new ae.DatabaseClosed);E.open().catch(je)}E._state.dbReadyPromise.then(R,q)}).then(y)},ar.prototype.use=function(y){var E=y.stack,R=y.create,q=y.level,U=y.name;return U&&this.unuse({stack:E,name:U}
vendor: 9,270 bytes, line 53
53),y=this._middlewares[E]||(this._middlewares[E]=[]),y.push({stack:E,create:R,level:q??10,name:U}),y.sort(function(G,re){return G.level-re.level}),this},ar.prototype.unuse=function(y){var E=y.stack,R=y.name,q=y.create;return E&&this._middlewares[E]&&(this._middlewares[E]=this._middlewares[E].filter(function(U){return q?U.create!==q:!!R&&U.name!==R})),this},ar.prototype.open=function(){var y=this;return bo(Yr,function(){return Kd(y)})},ar.prototype._close=function(){this.on.close.fire(new CustomEvent("close"));var y=this._state,E=xo.indexOf(this);if(0<=E&&xo.splice(E,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}y.isBeingOpened||(y.dbReadyPromise=new Ve(function(R){y.dbReadyResolve=R}),y.openCanceller=new Ve(function(R,q){y.cancelOpen=q}))},ar.prototype.close=function(R){var E=(R===void 0?{disableAutoOpen:!0}:R).disableAutoOpen,R=this._state;E?(R.isBeingOpened&&R.cancelOpen(new ae.DatabaseClosed),this._close(),R.autoOpen=!1,R.dbOpenError=new ae.DatabaseClosed):(this._close(),R.autoOpen=this._options.autoOpen||R.isBeingOpened,R.openComplete=!1,R.dbOpenError=null)},ar.prototype.delete=function(y){var E=this;y===void 0&&(y={disableAutoOpen:!0});var R=0<arguments.length&&typeof arguments[0]!="object",q=this._state;return new Ve(function(U,G){function re(){E.close(y);var le=E._deps.indexedDB.deleteDatabase(E.name);le.onsuccess=kt(function(){var he,fe,xe;he=E._deps,fe=E.name,xe=he.indexedDB,he=he.IDBKeyRange,Yo(xe)||fe===ni||pi(xe,he).delete(fe).catch(je),U()}),le.onerror=br(G),le.onblocked=E._fireOnBlocked}if(R)throw new ae.InvalidArgument("Invalid closeOptions argument to db.delete()");q.isBeingOpened?q.dbReadyPromise.then(re):re()})},ar.prototype.backendDB=function(){return this.idbdb},ar.prototype.isOpen=function(){return this.idbdb!==null},ar.prototype.hasBeenClosed=function(){var y=this._state.dbOpenError;return y&&y.name==="DatabaseClosed"},ar.prototype.hasFailed=function(){return this._state.dbOpenError!==null},ar.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(ar.prototype,"tables",{get:function(){var y=this;return u(this._allTables).map(function(E){return y._allTables[E]})},enumerable:!1,configurable:!0}),ar.prototype.transaction=function(){var y=function(E,R,q){var U=arguments.length;if(U<2)throw new ae.InvalidArgument("Too few arguments");for(var G=new Array(U-1);--U;)G[U-1]=arguments[U];return q=G.pop(),[E,F(G),q]}.apply(this,arguments);return this._transaction.apply(this,y)},ar.prototype._transaction=function(y,E,R){var q=this,U=Je.trans;U&&U.db===this&&y.indexOf("!")===-1||(U=null);var G,re,le=y.indexOf("?")!==-1;y=y.replace("!","").replace("?","");try{if(re=E.map(function(fe){if(fe=fe instanceof q.Table?fe.name:fe,typeof fe!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return fe}),y=="r"||y===xa)G=xa;else{if(y!="rw"&&y!=Vs)throw new ae.InvalidArgument("Invalid transaction mode: "+y);G=Vs}if(U){if(U.mode===xa&&G===Vs){if(!le)throw new ae.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");U=null}U&&re.forEach(function(fe){if(U&&U.storeNames.indexOf(fe)===-1){if(!le)throw new ae.SubTransaction("Table "+fe+" not included in parent transaction.");U=null}}),le&&U&&!U.active&&(U=null)}}catch(fe){return U?U._promise(null,function(xe,de){de(fe)}):or(fe)}var he=function fe(xe,de,Se,me,be){return Ve.resolve().then(function(){var ve=Je.transless||Je,ke=xe._createTransaction(de,Se,xe._dbSchema,me);if(ke.explicit=!0,ve={trans:ke,transless:ve},me)ke.idbtrans=me.idbtrans;else try{ke.create(),ke.idbtrans._explicit=!0,xe._state.PR1398_maxLoop=3}catch(De){return De.name===ne.InvalidState&&xe.isOpen()&&0<--xe._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),xe.close({disableAutoOpen:!1}),xe.open().then(function(){return fe(xe,de,Se,null,be)})):or(De)}var _e,Ee=M(be);return Ee&&ba(),ve=Ve.follow(function(){var De;(_e=be.call(ke,ke))&&(Ee?(De=Ur.bind(null,null),_e.then(De,De)):typeof _e.next=="function"&&typeof _e.throw=="function"&&(_e=nl(_e)))},ve),(_e&&typeof _e.then=="function"?Ve.resolve(_e).then(function(De){return ke.active?De:or(new ae.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):ve.then(function(){return _e})).then(function(De){return me&&ke._resolve(),ke._completion.then(function(){return De})}).catch(function(De){return ke._reject(De),or(De)})})}.bind(null,this,G,re,U,R);return U?U._promise(G,he,"lock"):Je.trans?bo(Je.transless,function(){return q._whenReady(he)}):this._whenReady(he)},ar.prototype.table=function(y){if(!d(this._allTables,y))throw new ae.InvalidTable("Table ".concat(y," does not exist"));return this._allTables[y]},ar);function ar(y,E){var R=this;this._middlewares={},this.verno=0;var q=ar.dependencies;this._options=E=a({addons:ar.addons,autoOpen:!0,indexedDB:q.indexedDB,IDBKeyRange:q.IDBKeyRange,cache:"cloned"},E),this._deps={indexedDB:E.indexedDB,IDBKeyRange:E.IDBKeyRange},q=E.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var U,G,re,le,he,fe={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:je,dbReadyPromise:null,cancelOpen:je,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:E.autoOpen};fe.dbReadyPromise=new Ve(function(de){fe.dbReadyResolve=de}),fe.openCanceller=new Ve(function(de,Se){fe.cancelOpen=Se}),this._state=fe,this.name=y,this.on=si(this,"populate","blocked","versionchange","close",{ready:[Te,je]}),this.once=function(de,Se){var me=function(){for(var be=[],ve=0;ve<arguments.length;ve++)be[ve]=arguments[ve];R.on(de).unsubscribe(me),Se.apply(R,be)};return R.on(de,me)},this.on.ready.subscribe=C(this.on.ready.subscribe,function(de){return function(Se,me){ar.vip(function(){var be,ve=R._state;ve.openComplete?(ve.dbOpenError||Ve.resolve().then(Se),me&&de(Se)):ve.onReadyBeingFired?(ve.onReadyBeingFired.push(Se),me&&de(Se)):(de(Se),be=R,me||de(function ke(){be.on.ready.unsubscribe(Se),be.on.ready.unsubscribe(ke)}))})}}),this.Collection=(U=this,Ho(Su.prototype,function(_e,ke){this.db=U;var me=oi,be=null;if(ke)try{me=ke()}catch(Ee){be=Ee}var ve=_e._ctx,ke=ve.table,_e=ke.hook.reading.fire;this._ctx={table:ke,index:ve.index,isPrimKey:!ve.index||ke.schema.primKey.keyPath&&ve.index===ke.schema.primKey.name,range:me,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:be,or:ve.or,valueMapper:_e!==ze?_e:null}})),this.Table=(G=this,Ho(ii.prototype,function(de,Se,me){this.db=G,this._tx=me,this.name=de,this.schema=Se,this.hook=G._allTables[de]?G._allTables[de].hook:si(null,{creating:[Ot,je],reading:[Xe,ze],updating:[ue,je],deleting:[bt,je]})})),this.Transaction=(re=this,Ho(Eu.prototype,function(de,Se,me,be,ve){var ke=this;de!=="readonly"&&Se.forEach(function(_e){_e=(_e=me[_e])===null||_e===void 0?void 0:_e.yProps,_e&&(Se=Se.concat(_e.map(function(Ee){return Ee.updatesTable})))}),this.db=re,this.mode=de,this.storeNames=Se,this.schema=me,this.chromeTransactionDurability=be,this.idbtrans=null,this.on=si(this,"complete","error","abort"),this.parent=ve||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Ve(function(_e,Ee){ke._resolve=_e,ke._reject=Ee}),this._completion.then(function(){ke.active=!1,ke.on.complete.fire()},function(_e){var Ee=ke.active;return ke.active=!1,ke.on.error.fire(_e),ke.parent?ke.parent._reject(_e):Ee&&ke.idbtrans&&ke.idbtrans.abort(),or(_e)})})),this.Version=(le=this,Ho(Hd.prototype,function(de){this.db=le,this._cfg={version:de,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(he=this,Ho(Sa.prototype,function(de,Se,me){if(this.db=he,this._ctx={table:de,index:Se===":id"?null:Se,or:me},this._cmp=this._ascending=mt,this._descending=function(be,ve){return mt(ve,be)},this._max=function(be,ve){return 0<mt(be,ve)?be:ve},this._min=function(be,ve){return mt(be,ve)<0?be:ve},this._IDBKeyRange=he._deps.IDBKeyRange,!this._IDBKeyRange)throw new ae.MissingAPI})),this.on("versionchange",function(de){0<de.newVersion?console.warn("Another connection wants to upgrade database '".concat(R.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(R.name,"'. Closing db now to resume the delete request.")),R.close({disableAutoOpen:!1})}),this.on("blocked",function(de){!de.newVersion||de.newVersion<de.oldVersion?console.warn("Dexie.delete('".concat(R.name,"') was blocked")):console.warn("Upgrade '".concat(R.name,"' blocked by other connection holding version ").concat(de.oldVersion/10))}),this._maxKey=Vn(E.IDBKeyRange),this._createTransaction=function(de,Se,me,be){return new R.Transaction(de,Se,me,R._options.chromeTransactionDurability,be)},this._fireOnBlocked=function(de){R.on("blocked").fire(de),xo.filter(function(Se){return Se.name===R.name&&Se!==R&&!Se._state.vcFired}).map(function(Se){return Se.on("versionchange").fire(de)})},this.use(Vd),this.use(Lu),this.use(il),this.use(Ou),this.use(Wd);var xe=new Proxy(this,{get:function(de,Se,me){if(Se==="_vip")return!0;
53if(Se==="table")return function(ve){return Yn(R.table(ve),xe)};var be=Reflect.get(de,Se,me);return be instanceof ii?Yn(be,xe):Se==="tables"?be.map(function(ve){return Yn(ve,xe)}):Se==="_createTransaction"?function(){return Yn(be.apply(this,arguments),xe)}:be}});this.vip=xe,q.forEach(function(de){return de(R)})}var rs,tn=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",Fu=(Zo.prototype.subscribe=function(y,E,R){return this._subscribe(y&&typeof y!="function"?y:{next:y,error:E,complete:R})},Zo.prototype[tn]=function(){return this},Zo);function Zo(y){this._subscribe=y}try{rs={indexedDB:s.indexedDB||s.mozIndexedDB||s.webkitIndexedDB||s.msIndexedDB,IDBKeyRange:s.IDBKeyRange||s.webkitIDBKeyRange}}catch{rs={indexedDB:null,IDBKeyRange:null}}function Pa(y){var E,R=!1,q=new Fu(function(U){var G=M(y),re,le=!1,he={},fe={},xe={get closed(){return le},unsubscribe:function(){le||(le=!0,re&&re.abort(),de&&_o.storagemutated.unsubscribe(me))}};U.start&&U.start(xe);var de=!1,Se=function(){return $i(be)},me=function(ve){Xi(he,ve),Js(fe,he)&&Se()},be=function(){var ve,ke,_e;!le&&rs.indexedDB&&(he={},ve={},re&&re.abort(),re=new AbortController,_e=(function(Ee){var De=Xr();try{G&&ba();var Me=wo(y,Ee);return Me=G?Me.finally(Ur):Me}finally{De&&Ut()}})(ke={subscr:ve,signal:re.signal,requery:Se,querier:y,trans:null}),Promise.resolve(_e).then(function(Ee){R=!0,E=Ee,le||ke.signal.aborted||(he={},(function(De){for(var Me in De)if(d(De,Me))return;return 1})(fe=ve)||de||(_o(_a,me),de=!0),$i(function(){return!le&&U.next&&U.next(Ee)}))},function(Ee){R=!1,["DatabaseClosedError","AbortError"].includes(Ee?.name)||le||$i(function(){le||U.error&&U.error(Ee)})}))};return setTimeout(Se,0),xe});return q.hasValue=function(){return R},q.getValue=function(){return E},q}var Qo=Zn;function Ra(y){var E=Qn;try{Qn=!0,_o.storagemutated.fire(y),rl(y,!0)}finally{Qn=E}}f(Qo,a(a({},Ie),{delete:function(y){return new Qo(y,{addons:[]}).delete()},exists:function(y){return new Qo(y,{addons:[]}).open().then(function(E){return E.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(y){try{return E=Qo.dependencies,R=E.indexedDB,E=E.IDBKeyRange,(Yo(R)?Promise.resolve(R.databases()).then(function(q){return q.map(function(U){return U.name}).filter(function(U){return U!==ni})}):pi(R,E).toCollection().primaryKeys()).then(y)}catch{return or(new ae.MissingAPI)}var E,R},defineClass:function(){return function(y){h(this,y)}},ignoreTransaction:function(y){return Je.trans?bo(Je.transless,y):y()},vip:Ta,async:function(y){return function(){try{var E=nl(y.apply(this,arguments));return E&&typeof E.then=="function"?E:Ve.resolve(E)}catch(R){return or(R)}}},spawn:function(y,E,R){try{var q=nl(y.apply(R,E||[]));return q&&typeof q.then=="function"?q:Ve.resolve(q)}catch(U){return or(U)}},currentTransaction:{get:function(){return Je.trans||null}},waitFor:function(y,E){return E=Ve.resolve(typeof y=="function"?Qo.ignoreTransaction(y):y).timeout(E||6e4),Je.trans?Je.trans.waitFor(E):E},Promise:Ve,debug:{get:function(){return Re},set:function(y){Pe(y)}},derive:S,extend:h,props:f,override:C,Events:si,on:_o,liveQuery:Pa,extendObservabilitySet:Xi,getByKeyPath:L,setByKeyPath:P,delByKeyPath:function(y,E){typeof E=="string"?P(y,E,void 0):"length"in E&&[].map.call(E,function(R){P(y,R,void 0)})},shallowClone:z,deepClone:B,getObjectDiff:ol,cmp:mt,asap:j,minKey:-1/0,addons:[],connections:xo,errnames:ne,depen
53dencies:rs,cache:Co,semVer:"4.2.1",version:"4.2.1".split(".").map(function(y){return parseInt(y)}).reduce(function(y,E,R){return y+E/Math.pow(10,2*R)})})),Qo.maxKey=Vn(Qo.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(_o(_a,function(y){Qn||(y=new CustomEvent(Vo,{detail:y}),Qn=!0,dispatchEvent(y),Qn=!1)}),addEventListener(Vo,function(y){y=y.detail,Qn||Ra(y)}));var Da,Qn=!1,ns=function(){};return typeof BroadcastChannel<"u"&&((ns=function(){(Da=new BroadcastChannel(Vo)).onmessage=function(y){return y.data&&Ra(y.data)}})(),typeof Da.unref=="function"&&Da.unref(),_o(_a,function(y){Qn||Da.postMessage(y)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(y){if(!Zn.disableBfCache&&y.persisted){Re&&console.debug("Dexie: handling persisted pagehide"),Da?.close();for(var E=0,R=xo;E<R.length;E++)R[E].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(y){!Zn.disableBfCache&&y.persisted&&(Re&&console.debug("Dexie: handling persisted pageshow"),ns(),Ra({all:new jr(-1/0,[[]])}))})),Ve.rejectionMapper=function(y,E){return!y||y instanceof X||y instanceof TypeError||y instanceof SyntaxError||!y.name||!Ae[y.name]?y:(E=new Ae[y.name](E||y.message,y),"stack"in y&&k(E,"stack",{get:function(){return this.inner.stack}}),E)},Pe(Re),a(Zn,Object.freeze({__proto__:null,Dexie:Zn,liveQuery:Pa,Entity:bu,cmp:mt,PropModification:So,replacePrefix:function(y,E){return new So({replacePrefix:[y,E]})},add:function(y){return new So({add:y})},remove:function(y){return new So({remove:y})},default:Zn,RangeSet:jr,mergeRanges:mi,rangesOverlap:Zi}),{default:Zn}),Zn})})(Kc)),Kc.exports}var F4=L4();const cm=uu(F4),Lw=Symbol.for("Dexie"),ed=globalThis[Lw]||(globalThis[Lw]=cm);if(cm.semVer!==ed.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${cm.semVer} and ${ed.semVer}`);const{liveQuery:IP,mergeRanges:LP,rangesOverlap:FP,RangeSet:zP,cmp:BP,Entity:qP,PropModification:$P,replacePrefix:UP,add:HP,remove:KP,DexieYProvider:WP}=ed,so=new ed("DrawingToolDB");so.version(1).stores({prompts:"id, email, status, createdAt, completedAt, promptNumber",artworks:"id, promptId, promptNumber, status, createdAt, approvedAt, isAdminCreated",siteContent:"id"});so.version(2).stores({prompts:"id, email, status, createdAt, completedAt, promptNumber",artworks:"id, promptId, promptNumber, status, createdAt, approvedAt, isAdminCreated",siteContent:"id",cacheMetadata:"id, lastFetched"});async function z4(){try{await so.open(),await so.siteContent.count()===0&&await so.siteContent.add({id:"default",projectTitle:"Drawing Tool",projectDescription:"Submit prompts and receive custom artwork"}),console.log("[Database] Initialized successfully")}catch(e){throw console.error("[Database] Initialization error:",e),e}}const Vm=2,B4=300*1e3;async function q4(e){const o=await so.cacheMetadata.get(e);return o?Date.now()-o.lastFetched<B4:!1}async function $4(e){await so.cacheMetadata.put({id:e,lastFetched:Date.now()})}async function U4(){const e=`prompts_v${Vm}`;if(!await q4(e))return null;const n=await so.prompts.toArray();return n.length===0?null:n.sort((i,s)=>{const u=Number(i.promptNumber)||0;return(Number(s.promptNumber)||0)-u})}async function H4(e){const o=`prompts_v${Vm}`;await so.prompts.clear(),await so.prompts.bulkAdd(e),await $4(o),console.log(`[Cache] Stored ${e.length} prompts with key ${o}`)}async function Oc(){const e=`prompts_v${Vm}`;await so.cacheMetadata.delete(e),console.log("[Cache] Prompts cache invalidated")}const Pb="/api",K4=3e4;async function dr(e,o={}){const n=new AbortController,a=setTimeout(()=>n.abort(),K4);try{const i=typeof localStorage<"u"?localStorage.getItem("pb_admin_key"):null,s=await fetch(`${Pb}/${e}`,{...o,headers:{"Content-Type":"application/json",...i?{"x-admin-key":i}:{},...o.headers},signal:n.signal});if(clearTimeout(a),!s.ok){const u=await s.json().catch(()=>({}));throw new Error(u.error||`API error: ${s.status}`)}return s.status===204?null:await s.json()}catch(i){throw clearTimeout(a),i instanceof Error&&i.name==="AbortError"?new Error("Request timed out"):i}}async function W4(){return dr("stats",{method:"GET"})}const no={async getAll(e){const o=e?.useCache!==!1,n=e?.backgroundRefresh!==!1;if(o){const a=await U4();if(a)return console.log(`[promptStorage.getAll] Returning ${a.length} cached prompts`),n&&this.refreshPromptsCache().catch(i=>
53{console.error("[promptStorage.getAll] Background refresh failed:",i)}),a}return console.log("[promptStorage.getAll] Cache miss, fetching from API"),this.fetchAndCachePrompts()},async fetchAndCachePrompts(){const e=await dr("prompts?limit=100000",{method:"GET"});console.log("[promptStorage.fetchAndCachePrompts] Sample prompt from API:",e[0]);const o=e.map(a=>({id:a.id,prompt:a.prompt,email:a.email||"",status:a.status||"pending",createdAt:a.timestamp||a.createdAt||a.created_at||Date.now(),...a.completedAt&&{completedAt:a.completedAt},...a.completed_at&&{completedAt:a.completed_at},...a.artworkId&&{artworkId:a.artworkId},...a.artwork_id&&{artworkId:a.artwork_id},promptNumber:a.promptNumber||a.prompt_number}));console.log("[promptStorage.fetchAndCachePrompts] Transformed prompts sample:",o[0]);const n=o.sort((a,i)=>{const s=Number(a.promptNumber)||0;return(Number(i.promptNumber)||0)-s});return console.log("[promptStorage.fetchAndCachePrompts] Sorted prompts - first:",n[0]?.promptNumber,"last:",n[n.length-1]?.promptNumber),await H4(n),n},async refreshPromptsCache(){console.log("[promptStorage.refreshPromptsCache] Starting background refresh"),await this.fetchAndCachePrompts()},async create(e,o){console.log("[promptStorage.create] Creating prompt with email:",o);const n=`prompt_${Date.now()}_${Math.random().toString(36).substring(2,11)}`,a=await dr("prompts",{method:"POST",body:JSON.stringify({id:n,prompt:e,email:o})});return console.log("[promptStorage.create] Prompt created"),await Oc(),{id:a.id,prompt:e,email:o,status:"pending",createdAt:Date.now()}},async delete(e){await dr(`prompts/${e}`,{method:"DELETE"}),await Oc()},async addEmail(e,o){await dr(`prompts/${e}`,{method:"PATCH",body:JSON.stringify({email:o})}),await Oc()},async complete(e){await dr(`prompts/${e}/complete`,{method:"PATCH"}),await Oc()}},Ya={async getAll(){const e=await dr("artworks?status=approved&limit=10000",{method:"GET"});console.log("[artworkStorage.getAll] RAW API Response - Full first artwork:",JSON.stringify(e[0],null,2)),console.log("[artworkStorage.getAll] RAW API Response - All field names:",Object.keys(e[0]||{}));const o=e.map(n=>{const a={id:n.id,promptNumber:n.promptNumber??n.prompt_number??n.promptnumber??null,promptText:n.prompt||n.promptText||n.prompt_text||n.prompttext||null,imageData:n.imageData??n.image_data??n.imageUrl??n.imageurl??n.image_url??n.image,promptId:n.promptId??n.prompt_id??n.promptid??null,artistName:n.artistName??n.artist_name??n.artistname??null,artistEmail:n.artistEmail??n.artist_email??n.artistemail??null,hasEmail:n.hasEmail??!!(n.artistEmail??n.artist_email),source:n.source??null,status:"approved",createdAt:n.createdAt??n.created_at??n.timestamp??Date.now(),approvedAt:n.approvedAt??n.approved_at??n.timestamp??null,isAdminCreated:n.isAdminCreated??n.is_admin_created??n.type!=="user_artwork",heartCount:n.heartCount??n.heart_count??0};return console.log("[artworkStorage.getAll] Field extraction check:",{"promptNumber found":n.promptNumber??n.prompt_number??n.promptnumber??"MISSING","promptId found":n.promptId??n.prompt_id??n.promptid??"MISSING","promptText found":n.prompt??n.promptText??n.prompt_text??n.prompttext??"MISSING"}),a});return console.log("[artworkStorage.getAll] Transformed artwork sample:",o[0]),o},async getApproved(){return this.getAll()},async getPending(){try{const e=await dr("artworks?status=pending&limit=10000",{method:"GET"});console.log("[artworkStorage.getPending] RAW API Response - Full first artwork:",JSON.stringify(e[0],null,2)),console.log("[artworkStorage.getPending] RAW API Response - All field names:",Object.keys(e[0]||{}));const o=e.map(n=>{const a={id:n.id,promptNumber:n.promptNumber??n.prompt_number??n.promptnumber??null,imageData:n.imageData??n.image_data??n.imageUrl??n.imageurl??n.image_url??n.image,promptId:n.promptId??n.prompt_id??n.promptid??null,promptText:n.prompt||n.promptText||n.prompt_text||n.prompttext,artistName:n.artistName??n.artist_name??n.artistname??null,artistEmail:n.artistEmail??n.artist_email??n.artistemail??null,hasEmail:n.hasEmail??!!(n.artistEmail??n.artist_email),source:n.source??null,status:"pending",createdAt:n.createdAt??n.created_at??n.timestamp??Date.now(),isAdminCreated:!1};return console.log("[artworkStorage.getPending] Field extraction check:",{"promptNumber found":n.promptNumber??n.prompt_number??n.promptnumber??"MISSING","promptId found":n.promptId??n.prompt_id??n.promptid??"MISSING","promptText found":n.prompt??n.promptText??n.prompt_text??n.prompttext??"MISSING"}),a});return console.log("[artworkStorage.getPending] Transformed pending artwork:",o[0]),o}catch(e){return console.error("[artworkStorage.getPending] Error fetching pending artworks:",e),[]}},async getById(e){try{const o=await this.getAll(),n=await this.getPending();return[...o,...n].find(a=>a.id===e)}catch(o){console.error("Error fetching artwork:",o);return}},async create(e){const o=`artwork_${Date.now()}_${Math.random().toString(36).substring(2,11)}`;if(e.isAdminCreated)return{id:(await dr("artworks",{method:"POST",body:JSON.stringify({id:o,imageData:e.imageData,promptNumber:e.promptNumber||1,isAdminCreated:!0})})).id,promptNumber:e.promptNumber??null,imageData:e.imageData,status:"approved",createdAt:Date.now(),approvedAt:Date.now(),isAdminCreated:!0};{const n={id:o,promptId:e.promptId,promptText:e.promptText||"",promptNumber:e.promptNumber||1,imageData:e.imageData,artistName:e.artistName||"",artistEmail:e.artistEmail,isAdminCreated:!1,source:"web"};console.log("[artworkStorage.create] Submitting user artwork with payload:",{...n,imageData:n.imageData?`${n.imageData.substring(0,50)}... (${n.imageData.length} chars)`:"none"});const a=await dr("artworks",{method:"POST",body:JSON.stringify(n)});return console.log("[artworkStorage.create] Backend response:",a),{id:a.id,promptNumber:e.promptNumber||0,imageData:e.imageData,promptId:e.promptId,promptText:e.promptText,artistName:e.artistName,artistEmail:e.artistEmail,status:"pending",createdAt:Date.now(),isAdminCreated:!1}}},async approve(e){console.log("[artworkStorage.approve] Approving artwork with ID:",e);const o=await dr(`artworks/${e}/approve`,{method:"PATCH"});console.log("[artworkStorage.approve] Backend response:",o)},async reject(e){await dr(`artworks/${e}/reject`,{method:"POST"})},async delete(e){await dr(`artworks/${e}`,{method:"DELETE"})}}
53,hp={login(){sessionStorage.setItem("admin_authenticated","true"),sessionStorage.setItem("admin_session_created",Date.now().toString())},logout(){sessionStorage.removeItem("admin_authenticated"),sessionStorage.removeItem("admin_session_created")},isLoggedIn(){return sessionStorage.getItem("admin_authenticated")==="true"}};async function V4(){return dr("admin/activity",{method:"POST",body:JSON.stringify({})})}async function G4(e=2e3){return(await dr(`admin/top-liked?limit=${e}`,{method:"GET"})).artworks||[]}async function Y4(e){return dr("admin/zine-invite",{method:"POST",body:JSON.stringify({artworkId:e})})}async function Z4(e){return(await dr(`admin/emails?cohort=${e}`,{method:"GET"})).people||[]}async function Q4(e,o){return dr("admin/zine-issue",{method:"POST",body:JSON.stringify({artworkId:e,issue:o})})}async function Rb(e){const o=typeof localStorage<"u"?localStorage.getItem("pb_admin_key"):null,n=await fetch(`${Pb}/admin/zine-download?artworkId=${encodeURIComponent(e.id)}`,{headers:o?{"x-admin-key":o}:{}});if(!n.ok)throw new Error(`Image ${e.promptNumber??e.id} failed (${n.status})`);const a=await n.blob(),i=(a.type.split("/")[1]||"png").replace("jpeg","jpg");return{blob:a,ext:i}}function Db(e,o){const n=URL.createObjectURL(e),a=document.createElement("a");a.href=n,a.download=o,document.body.appendChild(a),a.click(),a.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}function Mb(e){return String(e.artistName||"artist").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,40)||"artist"}async function X4(e){const{blob:o,ext:n}=await Rb(e);Db(o,`promptbrush-${e.promptNumber??"drawing"}-${Mb(e)}.${n}`)}function J4(e){return`"${String(e??"").replace(/"/g,'""')}"`}async function e_(e,o,n){if(e.length===0)throw new Error("Nothing to export.");const{zipSync:a,strToU8:i}=await Ob(async()=>{const{zipSync:k,strToU8:S}=await import("./browser-Cgug2DPz.js");return{zipSync:k,strToU8:S}},[]),s=o.replace(/[^a-z0-9-]+/gi,"-").replace(/^-|-$/g,"")||"zine",u={},p=[];let h=0;const g=4;let w=0;const d=async()=>{for(;w<e.length;){const k=w++,S=e[k],_=String(k+1).padStart(3,"0"),b=S.promptNumber?String(S.promptNumber).padStart(4,"0"):`id-${S.id.slice(-6)}`;try{const{blob:x,ext:C}=await Rb(S);u[`${s}/${_}_${b}-${Mb(S)}.${C}`]=new Uint8Array(await x.arrayBuffer())}catch{p.push(`#${b} (${S.artistName||"unknown"})`)}n?.(++h,e.length)}};await Promise.all(Array.from({length:Math.min(g,e.length)},d));const f=["prompt_number,artist,prompt,accepted_date,marks,zine_issue",...e.map(k=>[k.promptNumber??"",k.artistName??"",k.promptText??"",k.acceptedAt??"",k.heartCount,k.zineIssue??""].map(J4).join(","))].join(` 54`);u[`${s}/credits.csv`]=i(f),p.length&&(u[`${s}/MISSING.txt`]=i(`Could not fetch images for: 55${p.join(` 56`)} 57`));const m=a(u,{level:0});Db(new Blob([m],{type:"application/zip"}),`${s}.zip`)}async function t_(){try{const e=await dr("credits/verified",{method:"GET"});return Array.isArray(e)?e:[]}catch{return[]}}const Fw="pb_heart_id";function Ib(){if(typeof localStorage>"u")return"anon:web";let e=localStorage.getItem(Fw);if(!e){e="anon:"+Math.random().toString(36).slice(2,12)+Date.now().toString(36);try{localStorage.setItem(Fw,e)}catch{}}return e}async function r_(){try{const e=await dr(`hearts?email=${encodeURIComponent(Ib())}`,{method:"GET"});return Array.isArray(e?.ids)?e.ids:[]}catch{return[]}}async function n_(e,o=!0){return!!(await dr("hearts/toggle",{method:"POST",body:JSON.stringify({email:Ib(),artworkId:e,notify:o})}))?.hearted}async function o_(e){try{return await dr(`artists/${encodeURIComponent(e)}`,{method:"GET"})}catch{return null}}const Pc=500,Rc=700,zw="#f4efe9",a_=6,i_=20,Lb=10,Fb=74,zb=100,s_=5,l_=80,u_=10,c_=100,d_=0,f_=100,Bb=s_,qb=l_,$b=u_,Ub=c_,Hb=d_,Kb=f_,xs=500,Bw=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,p_="Arthistory6210!",Wb=O.createContext(void 0);function h_({children:e}){const[o,n]=O.useState(!0),[a,i]=O.useState([]),[s,u]=O.useState([]),[p,h]=O.useState([]),[g,w]=O.useState(!1);O.useEffect(()=>{(async()=>{try{console.log("[AppContext] Starting data load...");const T=Date.now(),[D,B,$]=await Promise.all([no.getAll().then(Q=>(console.log("[AppContext] Prompts loaded:",Q.length),Q)),Ya.getApproved().then(Q=>
57(console.log("[AppContext] Artworks loaded:",Q.length),Q)),Ya.getPending().then(Q=>(console.log("[AppContext] Pending artworks loaded:",Q.length),Q))]),W=Date.now()-T;console.log(`[AppContext] Data loaded in ${W}ms`),i(D),u(B),h($),w(hp.isLoggedIn())}catch(T){console.error("[AppContext] Error loading data:",T)}finally{n(!1)}})()},[]);const d=O.useCallback(async()=>{try{console.log("[AppContext.loadPrompts] Refreshing prompts...");const F=await no.getAll();return console.log("[AppContext.loadPrompts] Prompts loaded:",F.length),i(F),F}catch(F){throw console.error("[AppContext.loadPrompts] Error loading prompts:",F),F}},[]),f=O.useCallback(async(F,T)=>{const D=`temp-${Date.now()}`,B={id:D,prompt:F,email:T,status:"pending",promptNumber:void 0,createdAt:Date.now(),completedAt:void 0,artworkId:void 0};i($=>[B,...$]);try{const $=await no.create(F,T),W=await no.getAll({useCache:!1});return i(W),$}catch($){throw console.error("Failed to add prompt:",$),i(W=>W.filter(Q=>Q.id!==D)),$}},[]),m=O.useCallback((F,T)=>{i(D=>D.map(B=>B.id===F?{...B,...T}:B))},[]),k=O.useCallback(async F=>{const T=a.find(D=>D.id===F);i(D=>D.filter(B=>B.id!==F));try{await no.delete(F);const D=await no.getAll({useCache:!1});i(D)}catch(D){console.error("Failed to delete prompt:",D),T&&i(B=>[T,...B])}},[a]),S=O.useCallback(async(F,T)=>{await no.addEmail(F,T);const D=await no.getAll({useCache:!1});i(D)},[]),_=O.useCallback(async F=>{const T=a.find(D=>D.id===F);i(D=>D.map(B=>B.id===F?{...B,status:"completed",completedAt:Date.now()}:B));try{await no.complete(F);const D=await no.getAll({useCache:!1});i(D)}catch(D){throw console.error("Failed to complete prompt:",D),T&&i(B=>B.map($=>$.id===F?T:$)),D}},[a]),b=O.useCallback(async()=>{const F=await no.getAll({useCache:!1});i(F)},[]),x=O.useCallback(async F=>{const T=`temp-${Date.now()}`;let D=F.promptNumber;if(!D){const $=[...s,...p].map(W=>W.promptNumber).filter(W=>typeof W=="number"&&W>0);D=$.length>0?Math.max(...$)+1:1}const B={id:T,promptId:F.promptId,promptNumber:D,imageData:F.imageData,artistName:F.artistName,artistEmail:F.artistEmail,status:F.isAdminCreated?"approved":"pending",isAdminCreated:F.isAdminCreated,createdAt:Date.now(),approvedAt:F.isAdminCreated?Date.now():void 0};B.status==="approved"?u($=>[B,...$]):h($=>[B,...$]);try{const $=await Ya.create(F);return $.status==="approved"?u(W=>W.map(Q=>Q.id===T?$:Q)):h(W=>W.map(Q=>Q.id===T?$:Q)),F.promptId&&b(),$}catch($){throw console.error("Failed to add artwork:",$),u(W=>W.filter(Q=>Q.id!==T)),h(W=>W.filter(Q=>Q.id!==T)),$}},[s,p,a,b]),C=O.useCallback(async F=>{const T=p.find(B=>B.id===F);if(!T)return;const D={...T,status:"approved",approvedAt:Date.now()};h(B=>B.filter($=>$.id!==F)),u(B=>[D,...B]);try{await Ya.approve(F),T.promptId&&b()}catch(B){console.error("Failed to approve artwork:",B),h($=>[T,...$]),u($=>$.filter(W=>W.id!==F))}},[p,a,b]),N=O.useCallback(async F=>{const T=p.find(D=>D.id===F);h(D=>D.filter(B=>B.id!==F));try{await Ya.reject(F),T?.promptId&&b()}catch(D){console.error("Failed to reject artwork:",D),T&&h(B=>[T,...B])}},[p,b]),j=O.useCallback(async F=>{const T=s.find(B=>B.id===F),D=p.find(B=>B.id===F);u(B=>B.filter($=>$.id!==F)),h(B=>B.filter($=>$.id!==F));try{await Ya.delete(F)}catch(B){console.error("Failed to delete artwork:",B),T&&u($=>[T,...$]),D&&h($=>[D,...$])}},[s,p]),L=O.useCallback(async()=>{const[F,T]=await Promise.all([Ya.getApproved(),Ya.getPending()]);u(F),h(T)},[]),P=O.useCallback(F=>{if(F===p_){hp.login();try{localStorage.setItem("pb_admin_key",F)}catch{}return w(!0),!0}return!1},[]),z=O.useCallback(()=>{hp.logout();try{localStorage.removeItem("pb_admin_key")}catch{}w(!1)},[]),H={isLoading:o,prompts:a,loadPrompts:d,addPrompt:f,updatePrompt:m,deletePrompt:k,addEmailToPrompt:S,completePrompt:_,refreshPrompts:b,artworks:s,pendingArtworks:p,addArtwork:x,approveArtwork:C,rejectArtwork:N,deleteArtwork:j,refreshArtworks:L,isAdmin:g,login:P,logout:z};return c.jsx(Wb.Provider,{value:H,children:e})}function $n(){const e=O.useContext(Wb);if(e===void 0)throw new Error("useApp must be used within an AppProvider");return e}const m_=7,g_=.95,qw=.6,y_=6500,w_=16,v_=3,$w=1,b_=60;function x_({onClick:e}){const[o,n]=O.useState(1),[a,i]=O.useState(!1),s=O.useRef(null),u=O.useRef(0),p=O.useRef(0),h=O.useRef(0),g=O.useRef("idle"),w=O.useRef(!1),d=O.useRef(null),f=O.useRef(!1),m=O.useRef(0),k=O.useRef(0),S=O.useRef(0),_=O.useRef(0),b=O.useRef(0),x=()=>{s.current&&(s.current.style.transform=`scale(1.10) rotateX(${h.current}deg) rotateY(${u.current}deg)`);const D=(Math.floor((u.current+180)/360)%4+4)%4+1;n(B=>B===D?B:D)},C=()=>
57{if(f.current)return;f.current=!0;const T=()=>{const D=g.current==="hover"||g.current==="drag";if(h.current+=((D?w_:0)-h.current)*.1,g.current==="drag"){x(),d.current=requestAnimationFrame(T);return}if(g.current==="hover"?p.current+=(m_-p.current)*.12:p.current*=g_,u.current+=p.current,g.current==="idle"&&Math.abs(p.current)<.4&&Math.abs(h.current)<.25){const B=Math.round(u.current/360)*360;if(u.current+=(B-u.current)*.2,Math.abs(B-u.current)<.25){u.current=B,h.current=0,x(),f.current=!1;return}}x(),d.current=requestAnimationFrame(T)};d.current=requestAnimationFrame(T)};O.useEffect(()=>{const T=setInterval(()=>{g.current==="idle"&&(p.current+=14,C())},y_);return()=>{clearInterval(T),d.current&&cancelAnimationFrame(d.current)}},[]);const N=()=>{w.current=!0,g.current!=="drag"&&(i(!0),g.current="hover",C())},j=()=>{w.current=!1,g.current!=="drag"&&(i(!1),g.current==="hover"&&(g.current="idle"),C())},L=T=>{try{T.currentTarget.setPointerCapture?.(T.pointerId)}catch{}g.current="drag",m.current=T.clientX,_.current=T.clientX,k.current=u.current,S.current=0,p.current=0,b.current=Date.now(),C()},P=T=>{if(g.current!=="drag")return;const D=T.clientX-m.current;S.current=Math.max(S.current,Math.abs(D)),u.current=k.current+D*qw,p.current=(T.clientX-_.current)*qw,_.current=T.clientX},z=T=>{if(g.current!=="drag")return;try{T.currentTarget.releasePointerCapture?.(T.pointerId)}catch{}const D=S.current<6&&Date.now()-b.current<350;g.current=w.current?"hover":"idle",i(w.current),D&&(p.current=0,e?.()),C()},H=a?b_:0,F=T=>c.jsxs(c.Fragment,{children:[[1,2,3,4].map(D=>c.jsx("img",{src:`/logos/${D}-dark.svg`,alt:T?"Prompt-Brush":"","aria-hidden":!T,draggable:!1,className:`absolute inset-0 w-full h-full object-contain dark-logo-fix-light transition-opacity duration-150 ${o===D?"opacity-100":"opacity-0"}`},`d-${D}`)),[1,2,3,4].map(D=>c.jsx("img",{src:`/logos/${D}-light.svg`,alt:"","aria-hidden":!0,draggable:!1,className:`absolute inset-0 w-full h-full object-contain dark-logo-fix-dark transition-opacity duration-150 ${o===D?"opacity-100":"opacity-0"}`},`l-${D}`))]});return c.jsx("div",{className:"fixed top-4 left-4 w-[142px] h-[142px] cursor-grab active:cursor-grabbing relative z-[9999] select-none",style:{marginTop:"var(--pb-banner-h, 0px)",perspective:"850px",touchAction:"none"},onPointerEnter:N,onPointerLeave:j,onPointerDown:L,onPointerMove:P,onPointerUp:z,children:c.jsx("div",{ref:s,className:"relative w-full h-full",style:{transform:"scale(1.10) rotateY(0deg)",transformStyle:"preserve-3d",willChange:"transform"},children:Array.from({length:v_}).map((T,D)=>{const B=D===$w,$=(D-$w)*H;return c.jsxs("div",{className:"absolute inset-0",style:{transform:`rotateY(${$}deg)`,transformStyle:"preserve-3d",transition:"transform 420ms cubic-bezier(0.32, 0.04, 0.18, 1)"},children:[c.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden"},children:F(B)}),c.jsx("div",{className:"absolute inset-0",style:{transform:"rotateY(180deg)",backfaceVisibility:"hidden"},children:F(B)})]},D)})})})}function Uw(e,o){if(typeof e=="function")return e(o);e!=null&&(e.current=o)}function wd(...e){return o=>{let n=!1;const a=e.map(i=>{const s=Uw(i,o);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<a.length;i++){const s=a[i];typeof s=="function"?s():Uw(e[i],null)}}}}function an(...e){return O.useCallback(wd(...e),e)}var k_=Symbol.for("react.lazy"),td=Lm[" use ".trim().toString()];function S_(e){return typeof e=="object"&&e!==null&&"then"in e}function Vb(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===k_&&"_payload"in e&&S_(e._payload)}function Gm(e){const o=N_(e),n=O.forwardRef((a,i)=>{let{children:s,...u}=a;Vb(s)&&typeof td=="function"&&(s=td(s._payload));const p=O.Children.toArray(s),h=p.find(C_);if(h){const g=h.props.children,w=p.map(d=>d===h?O.Children.count(g)>1?O.Children.only(null):O.isValidElement(g)?g.props.children:null:d);return c.jsx(o,{...u,ref:i,children:O.isValidElement(g)?O.cloneElement(g,void 0,w):null})}return c.jsx(o,{...u,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}var __=Gm("Slot");function N_(e){const o=O.forwardRef((n,a)=>{let{children:i,...s}=n;
vendor: 9,355 bytes, line 57
57if(Vb(i)&&typeof td=="function"&&(i=td(i._payload)),O.isValidElement(i)){const u=j_(i),p=A_(s,i.props);return i.type!==O.Fragment&&(p.ref=a?wd(a,u):u),O.cloneElement(i,p)}return O.Children.count(i)>1?O.Children.only(null):null});return o.displayName=`${e}.SlotClone`,o}var E_=Symbol("radix.slottable");function C_(e){return O.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===E_}function A_(e,o){const n={...o};for(const a in o){const i=e[a],s=o[a];/^on[A-Z]/.test(a)?i&&s?n[a]=(...p)=>{const h=s(...p);return i(...p),h}:i&&(n[a]=i):a==="style"?n[a]={...i,...s}:a==="className"&&(n[a]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function j_(e){let o=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=o&&"isReactWarning"in o&&o.isReactWarning;return n?e.ref:(o=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=o&&"isReactWarning"in o&&o.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Gb(e){var o,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(o=0;o<i;o++)e[o]&&(n=Gb(e[o]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Yb(){for(var e,o,n=0,a="",i=arguments.length;n<i;n++)(e=arguments[n])&&(o=Gb(e))&&(a&&(a+=" "),a+=o);return a}const Hw=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Kw=Yb,Zb=(e,o)=>n=>{var a;if(o?.variants==null)return Kw(e,n?.class,n?.className);const{variants:i,defaultVariants:s}=o,u=Object.keys(i).map(g=>{const w=n?.[g],d=s?.[g];if(w===null)return null;const f=Hw(w)||Hw(d);return i[g][f]}),p=n&&Object.entries(n).reduce((g,w)=>{let[d,f]=w;return f===void 0||(g[d]=f),g},{}),h=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((g,w)=>{let{class:d,className:f,...m}=w;return Object.entries(m).every(k=>{let[S,_]=k;return Array.isArray(_)?_.includes({...s,...p}[S]):{...s,...p}[S]===_})?[...g,d,f]:g},[]);return Kw(e,u,h,n?.class,n?.className)},Ym="-",T_=e=>{const o=P_(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:u=>{const p=u.split(Ym);return p[0]===""&&p.length!==1&&p.shift(),Qb(p,o)||O_(u)},getConflictingClassGroupIds:(u,p)=>{const h=n[u]||[];return p&&a[u]?[...h,...a[u]]:h}}},Qb=(e,o)=>{if(e.length===0)return o.classGroupId;const n=e[0],a=o.nextPart.get(n),i=a?Qb(e.slice(1),a):void 0;if(i)return i;if(o.validators.length===0)return;const s=e.join(Ym);return o.validators.find(({validator:u})=>u(s))?.classGroupId},Ww=/^\[(.+)\]$/,O_=e=>{if(Ww.test(e)){const o=Ww.exec(e)[1],n=o?.substring(0,o.indexOf(":"));if(n)return"arbitrary.."+n}},P_=e=>{const{theme:o,prefix:n}=e,a={nextPart:new Map,validators:[]};return D_(Object.entries(e.classGroups),n).forEach(([s,u])=>{dm(u,a,s,o)}),a},dm=(e,o,n,a)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?o:Vw(o,i);s.classGroupId=n;return}if(typeof i=="function"){if(R_(i)){dm(i(a),o,n,a);return}o.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,u])=>{dm(u,Vw(o,s),n,a)})})},Vw=(e,o)=>{let n=e;return o.split(Ym).forEach(a=>{n.nextPart.has(a)||n.nextPart.set(a,{nextPart:new Map,validators:[]}),n=n.nextPart.get(a)}),n},R_=e=>e.isThemeGetter,D_=(e,o)=>o?e.map(([n,a])=>{const i=a.map(s=>typeof s=="string"?o+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([u,p])=>[o+u,p])):s);return[n,i]}):e,M_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,n=new Map,a=new Map;const i=(s,u)=>{n.set(s,u),o++,o>e&&(o=0,a=n,n=new Map)};return{get(s){let u=n.get(s);if(u!==void 0)return u;if((u=a.get(s))!==void 0)return i(s,u),u},set(s,u){n.has(s)?n.set(s,u):i(s,u)}}},Xb="!",I_=e=>{const{separator:o,experimentalParseClassName:n}=e,a=o.length===1,i=o[0],s=o.length,u=p=>{const h=[];let g=0,w=0,d;for(let _=0;_<p.length;_++){let b=p[_];if(g===0){if(b===i&&(a||p.slice(_,_+s)===o)){h.push(p.slice(w,_)),w=_+s;continue}if(b==="/"){d=_;continue}}b==="["?g++:b==="]"&&g--}const f=h.length===0?p:p.substring(w),m=f.startsWith(Xb),k=m?f.substring(1):f,S=d&&d>w?d-w:void 0;return{modifiers:h,hasImportantModifier:m,baseClassName:k,maybePostfixModifierPosition:S}};return n?p=>n({className:p,parseClassName:u}):u},L_=e=>{if(e.length<=1)return e;const o=[];let n=[];return e.forEach(a=>{a[0]==="["?(o.push(...n.sort(),a),n=[]):n.push(a)}),o.push(...n.sort()),o},F_=e=>({cache:M_(e.cacheSize),parseClassName:I_(e),...T_(e)}),z_=/\s+/,B_=(e,o)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:i}=o,s=[],u=e.trim().split(z_);let p="";for(let h=u.length-1;h>=0;h-=1){const g=u[h],{modifiers:w,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:m}=n(g);let k=!!m,S=a(k?f.substring(0,m):f);if(!S){if(!k){p=g+(p.length>0?" "+p:p);continue}if(S=a(f),!S){p=g+(p.length>0?" "+p:p);continue}k=!1}const _=L_(w).join(":"),b=d?_+Xb:_,x=b+S;if(s.includes(x))continue;s.push(x);const C=i(S,k);for(let N=0;N<C.length;++N){const j=C[N];s.push(b+j)}p=g+(p.length>0?" "+p:p)}return p};function q_(){let e=0,o,n,a="";for(;e<arguments.length;)(o=arguments[e++])&&(n=Jb(o))&&(a&&(a+=" "),a+=n);return a}const Jb=e=>{if(typeof e=="string")return e;let o,n="";for(let a=0;a<e.length;a++)e[a]&&(o=Jb(e[a]))&&(n&&(n+=" "),n+=o);return n};function $_(e,...o){let n,a,i,s=u;function u(h){const g=o.reduce((w,d)=>d(w),e());return n=F_(g),a=n.cache.get,i=n.cache.set,s=p,p(h)}function p(h){const g=a(h);if(g)return g;const w=B_(h,n);return i(h,w),w}return function(){return s(q_.apply(null,arguments))}}const Zt=e=>{const o=n=>n[e]||[];return o.isThemeGetter=!0,o},e1=/^\[(?:([a-z-]+):)?(.+)\]$/i,U_=/^\d+\/\d+$/,H_=new Set(["px","full","screen"]),K_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,W_=/\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$/,V_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,G_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Y_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,sa=e=>Cs(e)||H_.has(e)||U_.test(e),Za=e=>Bs(e,"length",nN),Cs=e=>!!e&&!Number.isNaN(Number(e)),mp=e=>Bs(e,"number",Cs),Pl=e=>!!e&&Number.isInteger(Number(e)),Z_=e=>e.endsWith("%")&&Cs(e.slice(0,-1)),_t=e=>e1.test(e),Qa=e=>K_.test(e),Q_=new Set(["length","size","percentage"]),X_=e=>Bs(e,Q_,t1),J_=e=>Bs(e,"position",t1),eN=new Set(["image","url"]),tN=e=>Bs(e,eN,aN),rN=e=>Bs(e,"",oN),Rl=()=>!0,Bs=(e,o,n)=>{const a=e1.exec(e);return a?a[1]?typeof o=="string"?a[1]===o:o.has(a[1]):n(a[2]):!1},nN=e=>W_.test(e)&&!V_.test(e),t1=()=>!1,oN=e=>G_.test(e),aN=e=>Y_.test(e),iN=()=>{const e=Zt("colors"),o=Zt("spacing"),n=Zt("blur"),a=Zt("brightness"),i=Zt("borderColor"),s=Zt("borderRadius"),u=Zt("borderSpacing"),p=Zt("borderWidth"),h=Zt("contrast"),g=Zt("grayscale"),w=Zt("hueRotate"),d=Zt("invert"),f=Zt("gap"),m=Zt("gradientColorStops"),k=Zt("gradientColorStopPositions"),S=Zt("inset"),_=Zt("margin"),b=Zt("opacity"),x=Zt("padding"),C=Zt("saturate"),N=Zt("scale"),j=Zt("sepia"),L=Zt("skew"),P=Zt("space"),z=Zt("translate"),H=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto",_t,o],D=()=>[_t,o],B=()=>["",sa,Za],$=()=>["auto",Cs,_t],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>["start","end","center","between","around","evenly","stretch"],J=()=>["","0",_t],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[Cs,_t];return{cacheSize:500,separator:":",theme:{colors:[Rl],spacing:[sa,Za],blur:["none","",Qa,_t],brightness:M(),borderColor:[e],borderRadius:["none","","full",Qa,_t],borderSpacing:D(),borderWidth:B(),contrast:M(),grayscale:J(),hueRotate:M(),invert:J(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[Z_,Za],inset:T(),margin:T(),opacity:M(),padding:D(),saturate:M(),scale:M(),sepia:J(),skew:M(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",_t]}],container:["container"],columns:[{columns:[Qa]}],"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:[...W(),_t]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}
vendor: 9,949 bytes, line 57
57],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pl,_t]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",_t]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",Pl,_t]}],"grid-cols":[{"grid-cols":[Rl]}],"col-start-end":[{col:["auto",{span:["full",Pl,_t]},_t]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Rl]}],"row-start-end":[{row:["auto",{span:[Pl,_t]},_t]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",_t]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",_t]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",_t,o]}],"min-w":[{"min-w":[_t,o,"min","max","fit"]}],"max-w":[{"max-w":[_t,o,"none","full","min","max","fit","prose",{screen:[Qa]},Qa]}],h:[{h:[_t,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[_t,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[_t,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[_t,o,"auto","min","max","fit"]}],"font-size":[{text:["base",Qa,Za]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",mp]}],"font-family":[{font:[Rl]}],"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",_t]}],"line-clamp":[{"line-clamp":["none",Cs,mp]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",sa,_t]}],"list-image":[{"list-image":["none",_t]}],"list-style-type":[{list:["none","disc","decimal",_t]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",sa,Za]}],"underline-offset":[{"underline-offset":["auto",sa,_t]}],"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:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_t]}],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",_t]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),J_]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",X_]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tN]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],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:[p]}],"border-w-x":[{"border-x":[p]}],"border-w-y":[{"border-y":[p]}],"border-w-s":[{"border-s":[p]}],"border-w-e":[{"border-e":[p]}],"border-w-t":[{"border-t":[p]}],"border-w-r":[{"border-r":[p]}],"border-w-b":[{"border-b":[p]}],"border-w-l":[{"border-l":[p]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[p]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[p]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:Q()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Q()]}],"outline-offset":[{"outline-offset":[sa,_t]}],"outline-w":[{outline:[sa,Za]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[sa,Za]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Qa,rN]}],"shadow-color":[{shadow:[Rl]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...te(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":te()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[a]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",Qa,_t]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[d]}],saturate:[{saturate:[C]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[u]}],"border-spacing-x":[{"border-spacing-x":[u]}],"border-spacing-y":[{"border-spacing-y":[u]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",_t]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",_t]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",_t]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[Pl,_t]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[L]}],"skew-y":[{"skew-y":[L]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",_t]}],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",_t]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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"]}
57],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",_t]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[sa,Za,mp]}],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"]}}},sN=$_(iN);function Un(...e){return sN(Yb(e))}const lN=Zb("inline-flex items-center justify-center 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",{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"}}),Rt=O.forwardRef(({className:e,variant:o,size:n,asChild:a=!1,...i},s)=>{const u=a?__:"button";return c.jsx(u,{className:Un(lN({variant:o,size:n,className:e})),ref:s,...i})});Rt.displayName="Button";function uN(){const{theme:e,setTheme:o}=e4(),n=()=>{o(e==="light"?"dark":"light")};return c.jsxs(Rt,{variant:"ghost",onClick:n,"aria-label":"Toggle theme",className:"w-8 h-8 md:w-12 md:h-12 p-0 bg-transparent hover:bg-transparent text-muted-foreground hover:text-foreground",children:[c.jsx("img",{src:"/light-sun.svg",alt:"Light mode",className:"h-8 w-8 md:h-12 md:w-12 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),c.jsx("svg",{className:"absolute h-8 w-8 md:h-12 md:w-12 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 66.39 67.63",fill:"
57currentColor",children:c.jsx("path",{d:"M33.62,34.83c-5.68-5.68-7.12-13.99-4.34-21.02-2.87.92-5.57,2.5-7.84,4.77-7.62,7.62-7.63,19.99,0,27.61,7.63,7.63,19.99,7.62,27.61,0,1.94-1.94,3.38-4.19,4.34-6.6-6.74,2.16-14.42.58-19.77-4.77Z"})})]})}const cN="FK Grotesk Mono, monospace";function dN(){const{pathname:e}=jn(),o=e==="/shop";return c.jsx("div",{className:"fixed bottom-4 right-4 z-[9999]",children:c.jsx(io,{to:"/shop","aria-label":"The store â book, zine, prints and posters","aria-current":o?"page":void 0,className:"flex items-center h-8 md:h-12 px-5 md:px-6 rounded-full border border-foreground bg-foreground text-background shadow-sm hover:bg-transparent hover:text-foreground transition-colors",style:{fontFamily:cN,fontSize:"11pt",letterSpacing:"0.06em"},children:"Store"})})}/** 58 * @license lucide-react v0.487.0 - ISC 59 * 60 * This source code is licensed under the ISC license. 61 * See the LICENSE file in the root directory of this source tree. 62 */const fN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pN=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,n,a)=>a?a.toUpperCase():n.toLowerCase()),Gw=e=>{const o=pN(e);return o.charAt(0).toUpperCase()+o.slice(1)},r1=(...e)=>e.filter((o,n,a)=>!!o&&o.trim()!==""&&a.indexOf(o)===n).join(" ").trim();/** 63 * @license lucide-react v0.487.0 - ISC 64 * 65 * This source code is licensed under the ISC license. 66 * See the LICENSE file in the root directory of this source tree. 67 */var hN={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"};/** 68 * @license lucide-react v0.487.0 - ISC 69 * 70 * This source code is licensed under the ISC license. 71 * See the LICENSE file in the root directory of this source tree. 72 */const mN=O.forwardRef(({color:e="currentColor",size:o=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:i="",children:s,iconNode:u,...p},h)=>O.createElement("svg",{ref:h,...hN,width:o,height:o,stroke:e,strokeWidth:a?Number(n)*24/Number(o):n,className:r1("lucide",i),...p},[...u.map(([g,w])=>O.createElement(g,w)),...Array.isArray(s)?s:[s]]));/** 73 * @license lucide-react v0.487.0 - ISC 74 * 75 * This source code is licensed under the ISC license. 76 * See the LICENSE file in the root directory of this source tree. 77 */const Et=(e,o)=>{const n=O.forwardRef(({className:a,...i},s)=>O.createElement(mN,{ref:s,iconNode:o,className:r1(`lucide-${fN(Gw(e))}`,`lucide-${e}`,a),...i}));return n.displayName=Gw(e),n};/** 78 * @license lucide-react v0.487.0 - ISC 79 * 80 * This source code is licensed under the ISC license. 81 * See the LICENSE file in the root directory of this source tree. 82 */const gN=[["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-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],yN=Et("activity",gN);/** 83 * @license lucide-react v0.487.0 - ISC 84 * 85 * This source code is licensed under the ISC license. 86 * See the LICENSE file in the root directory of this source tree. 87 */const wN=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],vN=Et("arrow-left",wN);/** 88 * @license lucide-react v0.487.0 - ISC 89 * 90 * This source code is licensed under the ISC license. 91 * See the LICENSE file in the root directory of this source tree. 92 */const bN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Yw=Et("arrow-right",bN);/** 93 * @license lucide-react v0.487.0 - ISC 94 * 95 * This source code is licensed under the ISC license. 96 * See the LICENSE file in the root directory of this source tree. 97 */const xN=[["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"}]],fm=Et("badge-check",xN);/** 98 * @license lucide-react v0.487.0 - ISC 99 * 100 * This source code is licensed under the ISC license. 101 * See the LICENSE file in the root directory of this source tree. 102 */const kN=[["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"}]],n1=Et("book-open",kN);/** 103 * @license lucide-react v0.487.0 - ISC 104 * 105 * This source code is licensed under the ISC license. 106 * See the LICENSE file in the root directory of this source tree. 107 */const SN=[["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"}]],_N=Et("calendar",SN);/** 108 * @license lucide-react v0.487.0 - ISC 109 * 110 * This source code is licensed under the ISC license. 111 * See the LICENSE file in the root directory of this source tree. 112 */const NN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],vd=Et("check",NN);/** 113 * @license lucide-react v0.487.0 - ISC 114 * 115 * This source code is licensed under the ISC license. 116 * See the LICENSE file in the root directory of this source tree. 117 */const EN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],o1=Et("chevron-down",EN);/** 118 * @license lucide-react v0.487.0 - ISC 119 * 120 * This source code is licensed under the ISC license. 121 * See the LICENSE file in the root directory of this source tree. 122 */const CN=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Zm=Et("chevron-left",CN);/** 123 * @license lucide-react v0.487.0 - ISC 124 * 125 * This source code is licensed under the ISC license. 126 * See the LICENSE file in the root directory of this source tree. 127 */const AN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Qm=Et("chevron-right",AN);/** 128 * @license lucide-react v0.487.0 - ISC 129 * 130 * This source code is licensed under the ISC license. 131 * See the LICENSE file in the root directory of this source tree. 132 */const jN=[["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"}]],a1=Et("circle-alert",jN);/** 133 * @license lucide-react v0.487.0 - ISC 134 * 135 * This source code is licensed under the ISC license. 136 * See the LICENSE file in the root directory of this source tree. 137 */const TN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Xl=Et("circle-check",TN);/** 138 * @license lucide-react v0.487.0 - ISC 139 * 140 * This source code is licensed under the ISC license. 141 * See the LICENSE file in the root directory of this source tree. 142 */const ON=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],PN=Et("clock",ON);/** 143 * @license lucide-react v0.487.0 - ISC 144 * 145 * This source code is licensed under the ISC license. 146 * See the LICENSE file in the root directory of this source tree. 147 */const RN=[["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"}]],DN=Et("copy",RN);/** 148 * @license lucide-react v0.487.0 - ISC 149 * 150 * This source code is licensed under the ISC license. 151 * See the LICENSE file in the root directory of this source tree. 152 */const MN=[["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"}]],da=Et("download",MN);/** 153 * @license lucide-react v0.487.0 - ISC 154 * 155 * This source code is licensed under the ISC license. 156 * See the LICENSE file in the root directory of this source tree. 157 */const IN=[["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"}]],LN=Et("file-text",IN);/** 158 * @license lucide-react v0.487.0 - ISC 159 * 160 * This source code is licensed under the ISC license. 161 * See the LICENSE file in the root directory of this source tree. 162 */const FN=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],zN=Et("funnel",FN);/** 163 * @license lucide-react v0.487.0 - ISC 164 * 165 * This source code is licensed under the ISC license. 166 * See the LICENSE file in the root directory of this source tree. 167 */const BN=[["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"}]],qN=Et("globe",BN);/** 168 * @license lucide-react v0.487.0 - ISC 169 * 170 * This source code is licensed under the ISC license. 171 * See the LICENSE file in the root directory of this source tree. 172 */const $N=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],UN=Et("info",$N);/** 173 * @license lucide-react v0.487.0 - ISC 174 * 175 * This source code is licensed under the ISC license. 176 * See the LICENSE file in the root directory of this source tree. 177 */const HN=[["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"}]],KN=Et("list",HN);/** 178 * @license lucide-react v0.487.0 - ISC 179 * 180 * This source code is licensed under the ISC license. 181 * See the LICENSE file in the root directory of this source tree. 182 */const WN=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],rr=Et("loader-circle",WN);/** 183 * @license lucide-react v0.487.0 - ISC 184 * 185 * This source code is licensed under the ISC license. 186 * See the LICENSE file in the root directory of this source tree. 187 */const VN=[["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"}]],GN=Et("log-out",VN);/** 188 * @license lucide-react v0.487.0 - ISC 189 * 190 * This source code is licensed under the ISC license. 191 * See the LICENSE file in the root directory of this source tree. 192 */const YN=[["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"}]],Ja=Et("mail",YN);/** 193 * @license lucide-react v0.487.0 - ISC 194 * 195 * This source code is licensed under the ISC license. 196 * See the LICENSE file in the root directory of this source tree. 197 */const ZN=[["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"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],QN=Et("package",ZN);/** 198 * @license lucide-react v0.487.0 - ISC 199 * 200 * This source code is licensed under the ISC license. 201 * See the LICENSE file in the root directory of this source tree. 202 */const XN=[["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"}]],JN=Et("palette",XN);/** 203 * @license lucide-react v0.487.0 - ISC 204 * 205 * This source code is licensed under the ISC license. 206 * See the LICENSE file in the root directory of this source tree. 207 */const eE=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],tE=Et("plus",eE);/** 208 * @license lucide-react v0.487.0 - ISC 209 * 210 * This source code is licensed under the ISC license. 211 * See the LICENSE file in the root directory of this source tree. 212 */const rE=[["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"}]],Ps=Et("refresh-cw",rE);/** 213 * @license lucide-react v0.487.0 - ISC 214 * 215 * This source code is licensed under the ISC license. 216 * See the LICENSE file in the root directory of this source tree. 217 */const nE=[["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"}]],oE=Et("rotate-ccw",nE);/** 218 * @license lucide-react v0.487.0 - ISC 219 * 220 * This source code is licensed under the ISC license. 221 * See the LICENSE file in the root directory of this source tree. 222 */const aE=[["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"}]],iE=Et("save",aE);/** 223 * @license lucide-react v0.487.0 - ISC 224 * 225 * This source code is licensed under the ISC license. 226 * See the LICENSE file in the root directory of this source tree. 227 */const sE=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],fu=Et("search",sE);/** 228 * @license lucide-react v0.487.0 - ISC 229 * 230 * This source code is licensed under the ISC license. 231 * See the LICENSE file in the root directory of this source tree. 232 */const lE=[["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"}]],uE=Et("send",lE);/** 233 * @license lucide-react v0.487.0 - ISC 234 * 235 * This source code is licensed under the ISC license. 236 * See the LICENSE file in the root directory of this source tree. 237 */const cE=[["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"}]],dE=Et("settings",cE);/** 238 * @license lucide-react v0.487.0 - ISC 239 * 240 * This source code is licensed under the ISC license. 241 * See the LICENSE file in the root directory of this source tree. 242 */const fE=[["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"}]],pE=Et("share-2",fE);/** 243 * @license lucide-react v0.487.0 - ISC 244 * 245 * This source code is licensed under the ISC license. 246 * See the LICENSE file in the root directory of this source tree. 247 */const hE=[["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"}]],mE=Et("shuffle",hE);/** 248 * @license lucide-react v0.487.0 - ISC 249 * 250 * This source code is licensed under the ISC license. 251 * See the LICENSE file in the root directory of this source tree. 252 */const gE=[["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"}]],yE=Et("square-check-big",gE);/** 253 * @license lucide-react v0.487.0 - ISC 254 * 255 * This source code is licensed under the ISC license. 256 * See the LICENSE file in the root directory of this source tree. 257 */const wE=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
vendor: 7,865 bytes, lines 257-272
257],["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"}]],bd=Et("trash-2",wE);/** 258 * @license lucide-react v0.487.0 - ISC 259 * 260 * This source code is licensed under the ISC license. 261 * See the LICENSE file in the root directory of this source tree. 262 */const vE=[["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"}]],i1=Et("user",vE);/** 263 * @license lucide-react v0.487.0 - ISC 264 * 265 * This source code is licensed under the ISC license. 266 * See the LICENSE file in the root directory of this source tree. 267 */const bE=[["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"}]],xE=Et("users",bE);/** 268 * @license lucide-react v0.487.0 - ISC 269 * 270 * This source code is licensed under the ISC license. 271 * See the LICENSE file in the root directory of this source tree. 272 */const kE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Li=Et("x",kE);function SE(e){return Object.prototype.toString.call(e)==="[object Object]"}function Zw(e){return SE(e)||Array.isArray(e)}function _E(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Xm(e,o){const n=Object.keys(e),a=Object.keys(o);if(n.length!==a.length)return!1;const i=JSON.stringify(Object.keys(e.breakpoints||{})),s=JSON.stringify(Object.keys(o.breakpoints||{}));return i!==s?!1:n.every(u=>{const p=e[u],h=o[u];return typeof p=="function"?`${p}`==`${h}`:!Zw(p)||!Zw(h)?p===h:Xm(p,h)})}function Qw(e){return e.concat().sort((o,n)=>o.name>n.name?1:-1).map(o=>o.options)}function NE(e,o){if(e.length!==o.length)return!1;const n=Qw(e),a=Qw(o);return n.every((i,s)=>{const u=a[s];return Xm(i,u)})}function Jm(e){return typeof e=="number"}function pm(e){return typeof e=="string"}function xd(e){return typeof e=="boolean"}function Xw(e){return Object.prototype.toString.call(e)==="[object Object]"}function lr(e){return Math.abs(e)}function eg(e){return Math.sign(e)}function Hl(e,o){return lr(e-o)}function EE(e,o){if(e===0||o===0||lr(e)<=lr(o))return 0;const n=Hl(lr(e),lr(o));return lr(n/e)}function CE(e){return Math.round(e*100)/100}function Jl(e){return eu(e).map(Number)}function lo(e){return e[pu(e)]}function pu(e){return Math.max(0,e.length-1)}function tg(e,o){return o===pu(e)}function Jw(e,o=0){return Array.from(Array(e),(n,a)=>o+a)}function eu(e){return Object.keys(e)}function s1(e,o){return[e,o].reduce((n,a)=>(eu(a).forEach(i=>{const s=n[i],u=a[i],p=Xw(s)&&Xw(u);n[i]=p?s1(s,u):u}),n),{})}function hm(e,o){return typeof o.MouseEvent<"u"&&e instanceof o.MouseEvent}function AE(e,o){const n={start:a,center:i,end:s};function a(){return 0}function i(h){return s(h)/2}function s(h){return o-h}function u(h,g){return pm(e)?n[e](h):e(o,h,g)}return{measure:u}}function tu(){let e=[];function o(i,s,u,p={passive:!0}){let h;if("addEventListener"in i)i.addEventListener(s,u,p),h=()=>i.removeEventListener(s,u,p);else{const g=i;g.addListener(u),h=()=>g.removeListener(u)}return e.push(h),a}function n(){e=e.filter(i=>i())}const a={add:o,clear:n};return a}function jE(e,o,n,a){const i=tu(),s=1e3/60;let u=null,p=0,h=0;function g(){i.add(e,"visibilitychange",()=>{e.hidden&&k()})}function w(){m(),i.clear()}function d(_){if(!h)return;u||(u=_,n(),n());const b=_-u;for(u=_,p+=b;p>=s;)n(),p-=s;const x=p/s;a(x),h&&(h=o.requestAnimationFrame(d))}function f(){h||(h=o.requestAnimationFrame(d))}function m(){o.cancelAnimationFrame(h),u=null,p=0,h=0}function k(){u=null,p=0}return{init:g,destroy:w,start:f,stop:m,update:n,render:a}}function TE(e,o){const n=o==="rtl",a=e==="y",i=a?"y":"x",s=a?"x":"y",u=!a&&n?-1:1,p=w(),h=d();function g(k){const{height:S,width:_}=k;return a?S:_}function w(){return a?"top":n?"right":"left"}function d(){return a?"bottom":n?"left":"right"}function f(k){return k*u}return{scroll:i,cross:s,startEdge:p,endEdge:h,measureSize:g,direction:f}}function Fi(e=0,o=0){const n=lr(e-o);function a(g){return g<e}function i(g){return g>o}function s(g){return a(g)||i(g)}function u(g){return s(g)?a(g)?e:o:g}function p(g){return n?g-n*Math.ceil((g-o)/n):g}return{length:n,max:o,min:e,constrain:u,reachedAny:s,reachedMax:i,reachedMin:a,removeOffset:p}}function l1(e,o,n){const{constrain:a}=Fi(0,e),i=e+1;let s=u(o);function u(f){return n?lr((i+f)%i):a(f)}function p(){return s}function h(f){return s=u(f),d}function g(f){return w().set(p()+f)}function w(){return l1(e,p(),n)}const d={get:p,set:h,add:g,clone:w};return d}function OE(e,o,n,a,i,s,u,p,h,g,w,d,f,m,k,S,_,b,x){const{cross:C,direction:N}=e,j=["INPUT","SELECT","TEXTAREA"],L={passive:!1},P=tu(),z=tu(),H=Fi(50,225).constrain(m.measure(20)),F={mouse:300,touch:400},T={mouse:500,touch:600},D=k?43:25;let B=!1,$=0,W=0,Q=!1,te=!1,Z=!1,J=!1;function V(je){if(!x)return;function ze(ot){(xd(x)||x(je,ot))&&ee(ot)}const Xe=o;P.add(Xe,"dragstart",ot=>ot.preventDefault(),L).add(Xe,"touchmove",()=>{},L).add(Xe,"touchend",()=>{}).add(Xe,"touchstart",ze).add(Xe,"mousedown",ze).add(Xe,"touchcancel",ce).add(Xe,"contextmenu",ce).add(Xe,"click",ae,!0)}function M(){P.clear(),z.clear()}function K(){const je=J?n:o;z.add(je,"touchmove",ne,L).add(je,"touchend",ce).add(je,"mousemove",ne,L).add(je,"mouseup",ce)}function X(je){const ze=je.nodeName||"";return j.includes(ze)}function ie(){return(k?T:F)[J?"mouse":"touch"]}function oe(je,ze){const Xe=d.add(eg(je)*-1),ot=w.byDistance(je,!k).distance;return k||lr(je)<H?ot:_&&ze?ot*.5:w.byIndex(Xe.get(),0).distance}function ee(je){const ze=hm(je,a);J=ze,Z=k&&ze&&!je.buttons&&B,B=Hl(i.get(),u.get())>=2,!(ze&&je.button!==0)&&(X(je.target)||(Q=!0,s.pointerDown(je),g.useFriction(0).useDuration(0),i.set(u),K(),$=s.readPoint(je),W=s.readPoint(je,C),f.emit("pointerDown")))}function ne(je){if(!hm(je,a)&&je.touches.length>=2)return ce(je);const Xe=s.readPoint(je),ot=s.readPoint(je,C),Ot=Hl(Xe,$),bt=Hl(ot,W);if(!te&&!J&&(!je.cancelable||(te=Ot>bt,!te)))return ce(je);const ue=s.pointerMove(je);Ot>S&&(Z=!0),g.useFriction(.3).useDuration(.75),p.start(),i.add(N(ue)),je.preventDefault()}function ce(je){const Xe=w.byDistance(0,!1).index!==d.get(),ot=s.pointerUp(je)*ie(),Ot=oe(N(ot),Xe),bt=EE(ot,Ot),ue=D-10*bt,ye=b+bt/50;te=!1,Q=!1,z.clear(),g.useDuration(ue).useFriction(ye),h.distance(Ot,!k),J=!1,f.emit("pointerUp")}function ae(je){Z&&(je.stopPropagation(),je.preventDefault(),Z=!1)}function Ae(){return Q}return{init:V,destroy:M,pointerDown:Ae}}function PE(e,o){let a,i;function s(d){return d.timeStamp}function u(d,f){const k=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(hm(d,o)?d:d.touches[0])[k]}function p(d){return a=d,i=d,u(d)}function h(d){const f=u(d)-u(i),m=s(d)-s(a)>170;return i=d,m&&(a=d),f}function g(d){if(!a||!i)return 0;const f=u(i)-u(a),m=s(d)-s(a),k=s(d)-s(i)>170,S=f/m;return m&&!k&&lr(S)>.1?S:0}return{pointerDown:p,pointerMove:h,pointerUp:g,readPoint:u}}function RE(){function e(n){const{offsetTop:a,offsetLeft:i,offsetWidth:s,offsetHeight:u}=n;return{top:a,right:i+s,bottom:a+u,left:i,width:s,height:u}}return{measure:e}}function DE(e){function o(a){return e*(a/100)}return{measure:o}}function ME(e,o,n,a,i,s,u){const p=[e].concat(a);let h,g,w=[],d=!1;function f(_){return i.measureSize(u.measure(_))}function m(_){if(!s)return;g=f(e),w=a.map(f);function b(x){for(const C of x){if(d)return;const N=C.target===e,j=a.indexOf(C.target),L=N?g:w[j],P=f(N?e:a[j]);if(lr(P-L)>=.5){_.reInit(),o.emit("resize");break}}}h=new ResizeObserver(x=>{(xd(s)||s(_,x))&&b(x)}),n.requestAnimationFrame(()=>{p.forEach(x=>h.observe(x))})}function k(){d=!0,h&&h.disconnect()}return{init:m,destroy:k}}function IE(e,o,n,a,i,s){let u=0,p=0,h=i,g=s,w=e.get(),d=0;function f(){const L=a.get()-e.get(),P=!h;let z=0;
vendor: 11,713 bytes, line 272
272return P?(u=0,n.set(a),e.set(a),z=L):(n.set(e),u+=L/h,u*=g,w+=u,e.add(u),z=w-d),p=eg(z),d=w,j}function m(){const L=a.get()-o.get();return lr(L)<.001}function k(){return h}function S(){return p}function _(){return u}function b(){return C(i)}function x(){return N(s)}function C(L){return h=L,j}function N(L){return g=L,j}const j={direction:S,duration:k,velocity:_,seek:f,settled:m,useBaseFriction:x,useBaseDuration:b,useFriction:N,useDuration:C};return j}function LE(e,o,n,a,i){const s=i.measure(10),u=i.measure(50),p=Fi(.1,.99);let h=!1;function g(){return!(h||!e.reachedAny(n.get())||!e.reachedAny(o.get()))}function w(m){if(!g())return;const k=e.reachedMin(o.get())?"min":"max",S=lr(e[k]-o.get()),_=n.get()-o.get(),b=p.constrain(S/u);n.subtract(_*b),!m&&lr(_)<s&&(n.set(e.constrain(n.get())),a.useDuration(25).useBaseFriction())}function d(m){h=!m}return{shouldConstrain:g,constrain:w,toggleActive:d}}function FE(e,o,n,a,i){const s=Fi(-o+e,0),u=d(),p=w(),h=f();function g(k,S){return Hl(k,S)<=1}function w(){const k=u[0],S=lo(u),_=u.lastIndexOf(k),b=u.indexOf(S)+1;return Fi(_,b)}function d(){return n.map((k,S)=>{const{min:_,max:b}=s,x=s.constrain(k),C=!S,N=tg(n,S);return C?b:N||g(_,x)?_:g(b,x)?b:x}).map(k=>parseFloat(k.toFixed(3)))}function f(){if(o<=e+i)return[s.max];if(a==="keepSnaps")return u;const{min:k,max:S}=p;return u.slice(k,S)}return{snapsContained:h,scrollContainLimit:p}}function zE(e,o,n){const a=o[0],i=n?a-e:lo(o);return{limit:Fi(i,a)}}function BE(e,o,n,a){const s=o.min+.1,u=o.max+.1,{reachedMin:p,reachedMax:h}=Fi(s,u);function g(f){return f===1?h(n.get()):f===-1?p(n.get()):!1}function w(f){if(!g(f))return;const m=e*(f*-1);a.forEach(k=>k.add(m))}return{loop:w}}function qE(e){const{max:o,length:n}=e;function a(s){const u=s-o;return n?u/-n:0}return{get:a}}function $E(e,o,n,a,i){const{startEdge:s,endEdge:u}=e,{groupSlides:p}=i,h=d().map(o.measure),g=f(),w=m();function d(){return p(a).map(S=>lo(S)[u]-S[0][s]).map(lr)}function f(){return a.map(S=>n[s]-S[s]).map(S=>-lr(S))}function m(){return p(g).map(S=>S[0]).map((S,_)=>S+h[_])}return{snaps:g,snapsAligned:w}}function UE(e,o,n,a,i,s){const{groupSlides:u}=i,{min:p,max:h}=a,g=w();function w(){const f=u(s),m=!e||o==="keepSnaps";return n.length===1?[s]:m?f:f.slice(p,h).map((k,S,_)=>{const b=!S,x=tg(_,S);if(b){const C=lo(_[0])+1;return Jw(C)}if(x){const C=pu(s)-lo(_)[0]+1;return Jw(C,lo(_)[0])}return k})}return{slideRegistry:g}}function HE(e,o,n,a,i){const{reachedAny:s,removeOffset:u,constrain:p}=a;function h(k){return k.concat().sort((S,_)=>lr(S)-lr(_))[0]}function g(k){const S=e?u(k):p(k),_=o.map((x,C)=>({diff:w(x-S,0),index:C})).sort((x,C)=>lr(x.diff)-lr(C.diff)),{index:b}=_[0];return{index:b,distance:S}}function w(k,S){const _=[k,k+n,k-n];if(!e)return k;if(!S)return h(_);const b=_.filter(x=>eg(x)===S);return b.length?h(b):lo(_)-n}function d(k,S){const _=o[k]-i.get(),b=w(_,S);return{index:k,distance:b}}function f(k,S){const _=i.get()+k,{index:b,distance:x}=g(_),C=!e&&s(_);if(!S||C)return{index:b,distance:k};const N=o[b]-x,j=k+w(N,0);return{index:b,distance:j}}return{byDistance:f,byIndex:d,shortcut:w}}function KE(e,o,n,a,i,s,u){function p(d){const f=d.distance,m=d.index!==o.get();s.add(f),f&&(a.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(n.set(o.get()),o.set(d.index),u.emit("select"))}function h(d,f){const m=i.byDistance(d,f);p(m)}function g(d,f){const m=o.clone().set(d),k=i.byIndex(m.get(),f);p(k)}return{distance:h,index:g}}function WE(e,o,n,a,i,s,u,p){const h={passive:!0,capture:!0};let g=0;function w(m){if(!p)return;function k(S){if(new Date().getTime()-g>10)return;u.emit("slideFocusStart"),e.scrollLeft=0;const x=n.findIndex(C=>C.includes(S));Jm(x)&&(i.useDuration(0),a.index(x,0),u.emit("slideFocus"))}s.add(document,"keydown",d,!1),o.forEach((S,_)=>{s.add(S,"focus",b=>{(xd(p)||p(m,b))&&k(_)},h)})}function d(m){m.code==="Tab"&&(g=new Date().getTime())}return{init:w}}function Fl(e){let o=e;function n(){return o}function a(h){o=u(h)}function i(h){o+=u(h)}function s(h){o-=u(h)}function u(h){return Jm(h)?h:h.get()}return{get:n,set:a,add:i,subtract:s}}function u1(e,o){const n=e.scroll==="x"?u:p,a=o.style;let i=null,s=!1;function u(f){return`translate3d(${f}px,0px,0px)`}function p(f){return`translate3d(0px,${f}px,0px)`}function h(f){if(s)return;const m=CE(e.direction(f));m!==i&&(a.transform=n(m),i=m)}function g(f){s=!f}function w(){s||(a.transform="",o.getAttribute("style")||o.removeAttribute("style"))}return{clear:w,to:h,toggleActive:g}}function VE(e,o,n,a,i,s,u,p,h){const w=Jl(i),d=Jl(i).reverse(),f=b().concat(x());function m(P,z){return P.reduce((H,F)=>H-i[F],z)}function k(P,z){return P.reduce((H,F)=>m(H,z)>0?H.concat([F]):H,[])}function S(P){return s.map((z,H)=>({start:z-a[H]+.5+P,end:z+o-.5+P}))}function _(P,z,H){const F=S(z);return P.map(T=>{const D=H?0:-n,B=H?n:0,$=H?"end":"start",W=F[T][$];return{index:T,loopPoint:W,slideLocation:Fl(-1),translate:u1(e,h[T]),target:()=>p.get()>W?D:B}})}function b(){const P=u[0],z=k(d,P);return _(z,n,!1)}function x(){const P=o-u[0]-1,z=k(w,P);return _(z,-n,!0)}function C(){return f.every(({index:P})=>{const z=w.filter(H=>H!==P);return m(z,o)<=.1})}function N(){f.forEach(P=>{const{target:z,translate:H,slideLocation:F}=P,T=z();T!==F.get()&&(H.to(T),F.set(T))})}function j(){f.forEach(P=>P.translate.clear())}return{canLoop:C,clear:j,loop:N,loopPoints:f}}function GE(e,o,n){let a,i=!1;function s(h){if(!n)return;function g(w){for(const d of w)if(d.type==="childList"){h.reInit(),o.emit("slidesChanged");break}}a=new MutationObserver(w=>{i||(xd(n)||n(h,w))&&g(w)}),a.observe(e,{childList:!0})}function u(){a&&a.disconnect(),i=!0}return{init:s,destroy:u}}function YE(e,o,n,a){const i={};let s=null,u=null,p,h=!1;function g(){p=new IntersectionObserver(k=>{h||(k.forEach(S=>{const _=o.indexOf(S.target);i[_]=S}),s=null,u=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:a}),o.forEach(k=>p.observe(k))}function w(){p&&p.disconnect(),h=!0}function d(k){return eu(i).reduce((S,_)=>{const b=parseInt(_),{isIntersecting:x}=i[b];return(k&&x||!k&&!x)&&S.push(b),S},[])}function f(k=!0){if(k&&s)return s;if(!k&&u)return u;const S=d(k);return k&&(s=S),k||(u=S),S}return{init:g,destroy:w,get:f}}function ZE(e,o,n,a,i,s){const{measureSize:u,startEdge:p,endEdge:h}=e,g=n[0]&&i,w=k(),d=S(),f=n.map(u),m=_();function k(){if(!g)return 0;const x=n[0];return lr(o[p]-x[p])}function S(){if(!g)return 0;const x=s.getComputedStyle(lo(a));return parseFloat(x.getPropertyValue(`margin-${h}`))}function _(){return n.map((x,C,N)=>{const j=!C,L=tg(N,C);return j?f[C]+w:L?f[C]+d:N[C+1][p]-x[p]}).map(lr)}return{slideSizes:f,slideSizesWithGaps:m,startGap:w,endGap:d}}function QE(e,o,n,a,i,s,u,p,h){const{startEdge:g,endEdge:w,direction:d}=e,f=Jm(n);function m(b,x){return Jl(b).filter(C=>C%x===0).map(C=>b.slice(C,C+x))}function k(b){return b.length?Jl(b).reduce((x,C,N)=>{const j=lo(x)||0,L=j===0,P=C===pu(b),z=i[g]-s[j][g],H=i[g]-s[C][w],F=!a&&L?d(u):0,T=!a&&P?d(p):0,D=lr(H-T-(z+F));return N&&D>o+h&&x.push(C),P&&x.push(b.length),x},[]).map((x,C,N)=>{const j=Math.max(N[C-1]||0);return b.slice(j,x)}):[]}function S(b){return f?m(b,n):k(b)}return{groupSlides:S}}function XE(e,o,n,a,i,s,u){const{align:p,axis:h,direction:g,startIndex:w,loop:d,duration:f,dragFree:m,dragThreshold:k,inViewThreshold:S,slidesToScroll:_,skipSnaps:b,containScroll:x,watchResize:C,watchSlides:N,watchDrag:j,watchFocus:L}=s,P=2,z=RE(),H=z.measure(o),F=n.map(z.measure),T=TE(h,g),D=T.measureSize(H),B=DE(D),$=AE(p,D),W=!d&&!!x,Q=d||!!x,{slideSizes:te,slideSizesWithGaps:Z,startGap:J,endGap:V}=ZE(T,H,F,n,Q,i),M=QE(T,D,_,d,H,F,J,V,P),{snaps:K,snapsAligned:X}=$E(T,$,H,F,M),ie=-lo(K)+lo(Z),{snapsContained:oe,scrollContainLimit:ee}=FE(D,ie,X,x,P),ne=W?oe:X,{limit:ce}=zE(ie,ne,d),ae=l1(pu(ne),w,d),Ae=ae.clone(),Ie=Jl(n),je=({dragHandler:vt,scrollBody:Kt,scrollBounds:hr,options:{loop:sn}})=>{sn||hr.constrain(vt.pointerDown()),Kt.seek()},ze=({scrollBody:vt,translate:Kt,location:hr,offsetLocation:sn,previousLocation:mo,scrollLooper:Yr,slideLooper:Je,dragHandler:mn,animation:Ir,eventHandler:mr,scrollBounds:Ve,options:{loop:Zr}},Qr)=>{const Tn=vt.settled(),pt=!Ve.shouldConstrain(),qt=Zr?Tn:Tn&&pt,Jt=qt&&!mn.pointerDown();Jt&&Ir.stop();const gr=hr.get()*Qr+mo.get()*(1-Qr);sn.set(gr),Zr&&(Yr.loop(vt.direction()),Je.loop()),Kt.to(sn.get()),Jt&&mr.emit("settle"),qt||mr.emit("scroll")},Xe=jE(a,i,()=>je(Cr),vt=>ze(Cr,vt)),ot=.68,Ot=ne[ae.get()],bt=Fl(Ot),ue=Fl(Ot),ye=Fl(Ot),Te=Fl(Ot),Re=IE(bt,ye,ue,Te,f,ot),Pe=HE(d,ne,ie,ce,Te),at=KE(Xe,ae,Ae,Re,Pe,Te,u),ft=qE(ce),dt=tu(),Bt=YE(o,n,u,S),{slideRegistry:Ht}=UE(W,x,ne,ee,M,Ie),At=WE(e,n,Ht,at,Re,dt,u,L),Cr={ownerDocument:a,ownerWindow:i,eventHandler:u,containerRect:H,slideRects:F,animation:Xe,axis:T,dragHandler:OE(T,e,a,i,Te,PE(T,i),bt,Xe,at,Re,Pe,ae,u,B,m,k,b,ot,j),eventStore:dt,percentOfView:B,index:ae,indexPrevious:Ae,limit:ce,location:bt,offsetLocation:ye,previousLocation:ue,options:s,resizeHandler:ME(o,u,i,n,T,C,z),scrollBody:Re,scrollBounds:LE(ce,ye,Te,Re,B),scrollLooper:BE(ie,ce,ye,[bt,ye,ue,Te]),scrollProgress:ft,scrollSnapList:ne.map(ft.get),scrollSnaps:ne,scrollTarget:Pe,scrollTo:at,slideLooper:VE(T,D,ie,te,Z,K,ne,ye,n),slideFocus:At,slidesHandler:GE(o,u,N),slidesInView:Bt,slideIndexes:Ie,slideRegistry:Ht,slidesToScroll:M,target:Te,translate:u1(T,o)};return Cr}function JE(){let e={},o;function n(g){o=g}function a(g){return e[g]||[]}function i(g){return a(g).forEach(w=>w(o,g)),h}function s(g,w){return e[g]=a(g).concat([w]),h}function u(g,w){return e[g]=a(g).filter(d=>d!==w),h}function p(){e={}}const h={init:n,emit:i,off:u,on:s,clear:p};return h}const e3={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function t3(e){function o(s,u){return s1(s,u||{})}function n(s){const u=s.breakpoints||{},p=eu(u).filter(h=>e.matchMedia(h).matches).map(h=>u[h]).reduce((h,g)=>o(h,g),{});return o(s,p)}function a(s){return s.map(u=>eu(u.breakpoints||{})).reduce((u,p)=>u.concat(p),[]).map(e.matchMedia)}return{mergeOptions:o,optionsAtMedia:n,optionsMediaQueries:a}}function r3(e){let o=[];function n(s,u){return o=u.filter(({options:p})=>e.optionsAtMedia(p).active!==!1),o.forEach(p=>p.init(s,e)),u.reduce((p,h)=>Object.assign(p,{[h.name]:h}),{})}function a(){o=o.filter(s=>s.destroy())}return{init:n,destroy:a}}function rd(e,o,n){const a=e.ownerDocument,i=a.defaultView,s=t3(i),u=r3(s),p=tu(),h=JE(),{mergeOptions:g,optionsAtMedia:w,optionsMediaQueries:d}=s,{on:f,off:m,emit:k}=h,S=T;let _=!1,b,x=g(e3,rd.globalOptions),C=g(x),N=[],j,L,P;function z(){const{container:Ie,slides:je}=C;L=(pm(Ie)?e.querySelector(Ie):Ie)||e.children[0];const Xe=pm(je)?L.querySelectorAll(je):je;P=[].slice.call(Xe||L.children)}function H(Ie){const je=XE(e,L,P,a,i,Ie,h);if(Ie.loop&&!je.slideLooper.canLoop()){const ze=Object.assign({},Ie,{loop:!1});return H(ze)}return je}function F(Ie,je){_||(x=g(x,Ie),C=w(x),N=je||N,z(),b=H(C),d([x,...N.map(({options:ze})=>ze)]).forEach(ze=>p.add(ze,"change",T)),C.active&&(b.translate.to(b.location.get()),b.animation.init(),b.slidesInView.init(),b.slideFocus.init(Ae),b.eventHandler.init(Ae),b.resizeHandler.init(Ae),b.slidesHandler.init(Ae),b.options.loop&&b.slideLooper.loop(),L.offsetParent&&P.length&&b.dragHandler.init(Ae),j=u.init(Ae,N)))}function T(Ie,je){const ze=M();D(),F(g({startIndex:ze},Ie),je),h.emit("reInit")}function D(){b.dragHandler.destroy(),b.eventStore.clear(),b.translate.clear(),b.slideLooper.clear(),b.resizeHandler.destroy(),b.slidesHandler.destroy(),b.slidesInView.destroy(),b.animation.destroy(),u.destroy(),p.clear()}
272function B(){_||(_=!0,p.clear(),D(),h.emit("destroy"),h.clear())}function $(Ie,je,ze){!C.active||_||(b.scrollBody.useBaseFriction().useDuration(je===!0?0:C.duration),b.scrollTo.index(Ie,ze||0))}function W(Ie){const je=b.index.add(1).get();$(je,Ie,-1)}function Q(Ie){const je=b.index.add(-1).get();$(je,Ie,1)}function te(){return b.index.add(1).get()!==M()}function Z(){return b.index.add(-1).get()!==M()}function J(){return b.scrollSnapList}function V(){return b.scrollProgress.get(b.offsetLocation.get())}function M(){return b.index.get()}function K(){return b.indexPrevious.get()}function X(){return b.slidesInView.get()}function ie(){return b.slidesInView.get(!1)}function oe(){return j}function ee(){return b}function ne(){return e}function ce(){return L}function ae(){return P}const Ae={canScrollNext:te,canScrollPrev:Z,containerNode:ce,internalEngine:ee,destroy:B,off:m,on:f,emit:k,plugins:oe,previousScrollSnap:K,reInit:S,rootNode:ne,scrollNext:W,scrollPrev:Q,scrollProgress:V,scrollSnapList:J,scrollTo:$,selectedScrollSnap:M,slideNodes:ae,slidesInView:X,slidesNotInView:ie};return F(o,n),setTimeout(()=>h.emit("init"),0),Ae}rd.globalOptions=void 0;function kd(e={},o=[]){const n=O.useRef(e),a=O.useRef(o),[i,s]=O.useState(),[u,p]=O.useState(),h=O.useCallback(()=>{i&&i.reInit(n.current,a.current)},[i]);return O.useEffect(()=>{Xm(n.current,e)||(n.current=e,h())},[e,h]),O.useEffect(()=>{NE(a.current,o)||(a.current=o,h())},[o,h]),O.useEffect(()=>{if(_E()&&u){rd.globalOptions=kd.globalOptions;const g=rd(u,n.current,a.current);return s(g),()=>g.destroy()}else s(void 0)},[u,s]),[p,i]}kd.globalOptions=void 0;const As="'FK Grotesk Mono', monospace",hu="'Delcan Mono', monospace",nd="#555555",ca=[{tile:6,r:2.3},{tile:6,r:1.85},{tile:7,r:1.85},{tile:7,r:1.45},{tile:8,r:1.35},{tile:8,r:1}];function ev(e){const o=`<svg xmlns='http://www.w3.org/2000/svg' width='${e.tile}' height='${e.tile}'><circle cx='${e.tile/2}' cy='${e.tile/2}' r='${e.r}' fill='black'/></svg>`;return`url("data:image/svg+xml,${encodeURIComponent(o)}")`}function rg(e){return{backgroundColor:"currentColor",WebkitMaskImage:ev(e),maskImage:ev(e),WebkitMaskRepeat:"repeat",maskRepeat:"repeat",WebkitMaskSize:`${e.tile}px ${e.tile}px`,maskSize:`${e.tile}px ${e.tile}px`}}function Dc(e,o,n,a){const i=(a-90)*Math.PI/180;return[e+n*Math.cos(i),o+n*Math.sin(i)]}function n3(){const[e,o]=O.useState(!1);return O.useEffect(()=>{const n=window.matchMedia("(prefers-reduced-motion: reduce)");o(n.matches);const a=()=>o(n.matches);return n.addEventListener("change",a),()=>n.removeEventListener("change",a)},[]),e}function Sd(e,o){const[n,a]=O.useState(!1);return O.useEffect(()=>{if(o){a(!0);return}if(e){const i=requestAnimationFrame(()=>a(!0));return()=>cancelAnimationFrame(i)}a(!1)},[e,o]),o?!0:n}function _d({value:e,run:o}){const[n,a]=O.useState(0);return O.useEffect(()=>{if(!o){a(0);return}let i=0;const s=performance.now(),u=p=>{const h=Math.min(1,(p-s)/850);a(Math.round(e*(1-Math.pow(1-h,3)))),h<1&&(i=requestAnimationFrame(u))};return i=requestAnimationFrame(u),()=>cancelAnimationFrame(i)},[o,e]),c.jsx(c.Fragment,{children:n.toLocaleString()})}function o3({items:e,active:o,reduce:n}){const a=Sd(o,n),i=Math.max(...e.map(p=>p.count),1),s=230,u=ca[2];return c.jsx("div",{className:"flex items-end gap-3 sm:gap-7 w-full text-foreground",style:{height:s+70},children:e.map((p,h)=>{const g=Math.max(10,Math.round(p.count/i*s));return c.jsxs("div",{className:"flex-1 flex flex-col items-center justify-end h-full",children:[c.jsx("span",{className:"tabular-nums mb-2",style:{fontFamily:hu,fontSize:"1.1rem"},children:c.jsx(_d,{value:p.count,run:a})}),c.jsx("div",{className:"w-full",style:{height:a?g:0,maxWidth:120,border:`2px solid ${nd}`,boxSizing:"border-box",transition:n?"none":`height .9s cubic-bezier(.2,.8,.2,1) ${h*60}ms`},children:c.jsx("div",{style:{width:"100%",height:"100%",...rg(u)}})}),c.jsx("span",{className:"text-muted-foreground uppercase mt-3 text-center",style:{fontFamily:As,fontSize:"8.5pt",letterSpacing:"0.02em"},children:p.label})]},p.label)})})}function a3({items:e,active:o,reduce:n}){const a=Sd(o,n),i=Math.max(...e.map(s=>s.count),1);return c.jsx("div",{className:"flex flex-col gap-4 w-full text-foreground",children:e.map((s,u)=>c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx("span",{className:"shrink-0 text-muted-foreground uppercase truncate",style:{width:150,fontFamily:As,fontSize:"9.5pt",letterSpacing:"0.02em"},children:s.label}),c.jsx("div",{className:"flex-1",style:{height:22},children:c.jsx("div",{style:{height:"100%",width:a?`${Math.max(6,s.count/i*100)}%`:"0%",border:`2px solid ${nd}`,boxSizing:"border-box",transition:n?"none":`width .9s cubic-bezier(.2,.8,.2,1) ${u*55}ms`},children:c.jsx("div",{style:{width:"100%",height:"100%",...rg(ca[u%ca.length])}})})}),c.jsx("span",{className:"shrink-0 tabular-nums text-right",style:{width:44,fontFamily:hu,fontSize:"1.2rem"},children:c.jsx(_d,{value:s.count,run:a})})]},s.label))})}function i3({items:e,active:o,reduce:n}){const a=Sd(o,n),i=e.reduce((w,d)=>w+d.count,0)||1,s=110,u=104,p=60;let h=0;const g=e.map((w,d)=>{const f=h/i*360;h+=w.count;const m=h/i*360,[k,S]=Dc(s,s,u,f),[_,b]=Dc(s,s,u,m),[x,C]=Dc(s,s,p,m),[N,j]=Dc(s,s,p,f),L=m-f>180?1:0,P=`M ${k} ${S} A ${u} ${u} 0 ${L} 1 ${_} ${b} L ${x} ${C} A ${p} ${p} 0 ${L} 0 ${N} ${j} Z`;return{label:w.label,d:P,pat:ca[d%ca.length]}});return c.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-8 sm:gap-12 w-full text-foreground",children:[c.jsx("div",{className:`shrink-0 mx-auto
272sm:mx-0 ${a?"is-in":""} pb-donut-reveal`,children:c.jsxs("svg",{viewBox:"0 0 220 220",className:"w-[240px] h-[240px] sm:w-[300px] sm:h-[300px]",role:"img",children:[c.jsx("defs",{children:ca.map((w,d)=>c.jsx("pattern",{id:`sc-ht${d}`,width:w.tile,height:w.tile,patternUnits:"userSpaceOnUse",children:c.jsx("circle",{cx:w.tile/2,cy:w.tile/2,r:w.r,fill:"currentColor"})},d))}),g.map(w=>c.jsx("path",{d:w.d,fill:`url(#sc-ht${ca.indexOf(w.pat)})`,style:{stroke:nd},strokeWidth:2.5},w.label))]})}),c.jsx("div",{className:"flex-1 w-full flex flex-col gap-3.5",children:e.map((w,d)=>c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"shrink-0 h-4 w-4 rounded-[3px]",style:{border:`1.5px solid ${nd}`,boxSizing:"border-box"},children:c.jsx("div",{style:{width:"100%",height:"100%",...rg(ca[d%ca.length])}})}),c.jsx("span",{className:"flex-1 text-muted-foreground uppercase truncate",style:{fontFamily:As,fontSize:"10.5pt",letterSpacing:"0.02em"},children:w.label}),c.jsx("span",{className:"tabular-nums",style:{fontFamily:hu,fontSize:"1.25rem"},children:c.jsx(_d,{value:w.count,run:a})})]},w.label))})]})}function s3({facts:e,longest:o,shortest:n,active:a,reduce:i}){const s=Sd(a,i);return c.jsxs("div",{className:"w-full text-foreground",children:[c.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-x-8 gap-y-7",children:e.map(u=>c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:"tabular-nums",style:{fontFamily:hu,fontSize:"1.6rem",lineHeight:1},children:typeof u.value=="number"?c.jsx(_d,{value:u.value,run:s}):u.value}),c.jsx("span",{className:"text-muted-foreground uppercase tracking-widest mt-1.5",style:{fontFamily:As,fontSize:"8.5pt"},children:u.label})]},u.label))}),(o||n)&&c.jsxs("div",{className:"mt-8 space-y-3",style:{fontFamily:"'Martina Plantijn', Georgia, serif"},children:[o&&c.jsxs("p",{className:"text-muted-foreground text-sm leading-relaxed",children:[c.jsxs("span",{className:"uppercase tracking-widest",style:{fontFamily:As,fontSize:"8.5pt"},children:["Longest prompt â"," "]}),c.jsxs("span",{className:"text-foreground",children:["â",o.length>120?o.slice(0,120)+"â¦":o,"â"]})]}),n&&c.jsxs("p",{className:"text-muted-foreground text-sm leading-relaxed",children:[c.jsxs("span",{className:"uppercase tracking-widest",style:{fontFamily:As,fontSize:"8.5pt"},children:["Shortest prompt â"," "]}),c.jsxs("span",{className:"text-foreground",children:["â",n,"â"]})]})]})]})}function l3(e,o,n){return e.type==="facts"?c.jsx(s3,{facts:e.facts,longest:e.longest,shortest:e.shortest,active:o,reduce:n}):e.type==="donut"?c.jsx(i3,{items:e.items,active:o,reduce:n}):e.type==="bars"?c.jsx(a3,{items:e.items,active:o,reduce:n}):c.jsx(o3,{items:e.items,active:o,reduce:n})}function u3({slides:e}){const o=n3(),[n,a]=kd({loop:!0,align:"center"}),[i,s]=O.useState(0),[u,p]=O.useState([]),h=O.useRef(null),g=O.useCallback(()=>{h.current&&window.clearInterval(h.current),h.current=null},[]),w=O.useCallback(()=>{o||!a||(g(),h.current=window.setInterval(()=>a.scrollNext(),4800))},[a,o,g]);return O.useEffect(()=>{if(!a)return;const d=()=>s(a.selectedScrollSnap()),f=()=>{p(a.scrollSnapList()),d()};return f(),a.on("select",d),a.on("reInit",f),a.on("pointerDown",g),a.on("select",w),()=>{a.off("select",d),a.off("reInit",f),a.off("pointerDown",g),a.off("select",w)}},[a,g,w]),O.useEffect(()=>(w(),g),[w,g]),e.length?c.jsxs("div",{className:"mt-16 relative",onMouseEnter:g,onMouseLeave:w,children:[c.jsx("div",{className:"overflow-hidden",ref:n,children:c.jsx("div",{className:"flex",children:e.map((d,f)=>c.jsxs("div",{className:"flex-[0_0_100%] min-w-0 px-1",children:[c.jsx("p",{className:"mb-8 text-foreground",style:{fontSize:"1.15rem",fontFamily:hu},children:d.title}),c.jsx("div",{className:"min-h-[330px] flex items-center",children:l3(d,f===i,o)})]},f))})}),c.jsxs("div",{className:"flex items-center justify-center gap-5 mt-12",children:[c.jsx("button",{onClick:()=>a?.scrollPrev(),"aria-label":"Previous stat",className:"shrink-0 w-9 h-9 rounded-full border border-border text-foreground flex items-center justify-center hover:bg-accent transition-colors",children:c.jsx(Zm,{className:"w-4 h-4"})}),c.jsx("div",{className:"flex justify-center gap-2",children:u.map((d,f)=>c.jsx("button",{onClick:()=>a?.scrollTo(f),"aria-label":`Go to stat ${f+1}`,className:"h-[7px] rounded-full transition-all duration-300",style:{width:f===i?22:7,backgroundColor:f===i?"hsl(var(--foreground))":"hsl(var(--muted-foreground) / 0.4)"}},f))}),c.jsx("button",{onClick:()=>a?.scrollNext(),"aria-label":"Next stat",className:"shrink-0 w-9 h-9 rounded-full border border-border text-foreground flex items-center justify-center hover:bg-accent transition-colors",children:c.jsx(Qm,{className:"w-4 h-4"})})]})]}):null}const c1="6778002466",gp="Prompt-Brush",ru=`https://apps.apple.com/app/prompt-brush/id${c1}`,d1=[{label:"cats",word:"cat",re:/\b(cats?|kittens?|kitty|kitties)\b/i},{label:"dogs",word:"dog",re:/\b(dogs?|pupp(?:y|ies)|pups?)\b/i},{label:"love",word:"love",re:/\blove(s|d|ly)?\b/i}
272,{label:"the sun",word:"sun",re:/\bsun(s|ny|shine)?\b/i},{label:"the moon",word:"moon",re:/\bmoons?\b/i},{label:"hearts",word:"heart",re:/\bhearts?\b/i},{label:"flowers",word:"flower",re:/\bflowers?\b/i},{label:"coffee",word:"coffee",re:/\bcoffee\b/i},{label:"birds",word:"bird",re:/\bbirds?\b/i},{label:"trees",word:"tree",re:/\btrees?\b/i},{label:"the sea",word:"sea",re:/\b(ocean|sea|waves?)\b/i},{label:"robots",word:"robot",re:/\brobots?\b/i}];function f1(e,o=6){return d1.map(n=>({label:n.label,count:e.reduce((a,i)=>a+(n.re.test(String(i.prompt||i.text||""))?1:0),0)})).filter(n=>n.count>0).sort((n,a)=>a.count-n.count).slice(0,o)}const p1=e=>String(e||"").trim().split(/\s+/).filter(Boolean).length;function h1(e){const o=[{label:"1 word",test:a=>a===1},{label:"2â3",test:a=>a>=2&&a<=3},{label:"4â6",test:a=>a>=4&&a<=6},{label:"7â10",test:a=>a>=7&&a<=10},{label:"11+",test:a=>a>=11}],n=e.map(a=>p1(a.prompt||a.text)).filter(a=>a>0);return o.map(a=>({label:a.label,count:n.filter(a.test).length})).filter(a=>a.count>0)}function m1(e,o=6){const n=new Map;for(const a of e){const i=String(a.artistName||"").trim();if(!i)continue;const s=i.toLowerCase(),u=n.get(s)||{n:0,spellings:new Map};u.n+=1,u.spellings.set(i,(u.spellings.get(i)||0)+1),n.set(s,u)}return[...n.values()].map(a=>({label:[...a.spellings.entries()].sort((i,s)=>s[1]-i[1])[0][0],count:a.n})).sort((a,i)=>i.count-a.count).slice(0,o)}function c3(e,o,n=10){const a=String(e||"");let i=null;for(const s of d1){if(!s.re.test(a))continue;const u=o.reduce((p,h)=>p+(s.re.test(String(h.prompt||h.text||""))?1:0),0);u>=n&&(!i||u>i.count)&&(i={word:s.word,count:u})}return i}const nu=864e5;function pa(e){if(typeof e=="number")return e;const o=Date.parse(String(e??""));return Number.isFinite(o)?o:NaN}function g1(e){const o=new Set;for(const n of e)n.promptId&&o.add(String(n.promptId));return o}const y1=(e,o)=>e.status==="completed"||!!e.id&&o.has(String(e.id));function w1(e,o=[]){const n=g1(o);let a=0,i=0;for(const s of e)y1(s,n)?a++:i++;return[{label:"Drawn",count:a},{label:"Still waiting",count:i}].filter(s=>s.count>0)}function v1(e,o=[]){const n=new Map;for(const p of o){const h=pa(p.createdAt);if(!p.promptId||!Number.isFinite(h))continue;const g=String(p.promptId);n.set(g,Math.min(n.get(g)??1/0,h))}const a=[];for(const p of e){const h=pa(p.createdAt);let g=pa(p.completedAt);!Number.isFinite(g)&&p.id&&n.has(String(p.id))&&(g=n.get(String(p.id))),!(p.status!=="completed"&&!Number.isFinite(g))&&(!Number.isFinite(h)||!Number.isFinite(g)||g<h||a.push((g-h)/nu))}const s=[{label:"Same day",test:p=>p<1},{label:"1â2 days",test:p=>p>=1&&p<3},{label:"3â6 days",test:p=>p>=3&&p<7},{label:"1â4 weeks",test:p=>p>=7&&p<28},{label:"A month+",test:p=>p>=28}].map(p=>({label:p.label,count:a.filter(p.test).length})).filter(p=>p.count>0);let u=null;if(a.length){const p=[...a].sort((h,g)=>h-g);u=Math.round(p[Math.floor(p.length/2)])}return{buckets:s,medianDays:u}}const d3=new Set(["the","a","an","of","and","to","in","on","at","for","with","is","it","its","my","your","that","this","as","by","or","from","into","over","under","out","up","off","about","was","are","be","been","being","he","she","they","we","you","i","me","his","her","their","our","him","them","who","what","which","but","if","so","than","then","there","here","too","very","just","not","no","yes","can","will","draw","drawing","drawn","picture","please","make","made","one","some","any","all","more","most","like","two","three","four","five","has","have","having","had","do","does","doing","did","get","gets","getting","got","go","goes","going","went","want","wants","would","could","should","also","only","each","other","another","much","many","lot","lots","really","something","someone","thing","things","while","when","where","how","why","because","through","without","within","before","after","during","again","both","same","such","let","lets","via","per","de","la","el","los","las","un","una","unos","unas","y","en","con","que","por","para","del","al","es","le","les","et","des","du","au","aux","est","dans","sur","avec"]);function b1(e,o=8){const n=new Map;for(const a of e){const i=String(a.prompt||"").toLowerCase().match(/[\p{L}\p{M}']+/gu)||[],s=new Set;for(let u of i)u=u.replace(/^'+|'+$/g,""),!(u.length<3||d3.has(u)||s.has(u))&&(s.add(u),n.set(u,(n.get(u)||0)+1))}return[...n.entries()].map(([a,i])=>({label:a,count:i})).sort((a,i)=>i.count-a.count).slice(0,o)}function x1(e){const o=new Map;for(const i of e){const s=String(i.artistName||"").trim().toLowerCase();s&&o.set(s,(o.get(s)||0)+1)}const n=[...o.values()];return[{label:"1",test:i=>i===1},{label:"2â5",test:i=>i>=2&&i<=5},{label:"6â20",test:i=>i>=6&&i<=20},{label:"21+",test:i=>i>=21}].map(i=>({label:i.label,count:n.filter(i.test).length})).filter(i=>i.count>0)}const f3=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k1(e,o=6){const n=new Map;for(const a of e){const i=pa(a.createdAt);if(!Number.isFinite(i))continue;const s=new Date(i),u=`${s.getUTCFullYear()}
272-${String(s.getUTCMonth()).padStart(2,"0")}`;n.set(u,(n.get(u)||0)+1)}return[...n.keys()].sort().slice(-o).map(a=>{const[,i]=a.split("-");return{label:f3[Number(i)]||a,count:n.get(a)}})}function S1(e){const o=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],n=new Array(7).fill(0);for(const a of e){const i=pa(a.createdAt);Number.isFinite(i)&&n[new Date(i).getDay()]++}return o.map((a,i)=>({label:a,count:n[i]}))}function p3(e,o,n=Date.now()){let a=0;for(const g of o){const w=pa(g.createdAt);Number.isFinite(w)&&n-w<7*nu&&a++}let i=0;for(const g of e){const w=pa(g.createdAt);Number.isFinite(w)&&n-w<nu&&i++}const s=e.map(g=>({text:String(g.prompt||"").trim(),n:p1(g.prompt)})).filter(g=>g.n>0);let u="",p="";s.length&&(u=s.reduce((g,w)=>w.n>g.n?w:g).text,p=s.reduce((g,w)=>w.n<g.n?w:g).text);const h=s.length?Math.round(s.reduce((g,w)=>g+w.n,0)/s.length):0;return{drawingsThisWeek:a,promptsToday:i,avgWords:h,longest:u,shortest:p}}const h3=7*nu,m3=Date.UTC(2025,0,6),g3=e=>Math.floor((e-m3)/h3);function _1(e){const o=new Map;for(const i of e){const s=String(i.artistName||"").trim().toLowerCase(),u=pa(i.createdAt);!s||!Number.isFinite(u)||(o.get(s)||o.set(s,new Set).get(s)).add(g3(u))}const n=[...o.values()].map(i=>i.size);return{buckets:[{label:"1 week",test:i=>i===1},{label:"2â3",test:i=>i>=2&&i<=3},{label:"4â9",test:i=>i>=4&&i<=9},{label:"10+",test:i=>i>=10}].map(i=>({label:i.label,count:n.filter(i.test).length})).filter(i=>i.count>0),regulars:n.filter(i=>i>=4).length}}function y3(e){let o=0,n=0,a=null;for(const i of e){const s=Number(i.heartCount)||0;o+=s,s>0&&n++,s>0&&(!a||s>a.count)&&(a={prompt:String(i.promptText||"").trim(),artist:String(i.artistName||"").trim(),count:s})}return{total:o,marked:n,share:e.length?n/e.length:0,top:a}}function w3(e,o=[],n=Date.now()){const a=g1(o),i=[];for(const u of e){if(y1(u,a))continue;const p=pa(u.createdAt);Number.isFinite(p)&&i.push(Math.max(0,n-p)/nu)}if(!i.length)return{waiting:0,medianDays:null,oldestDays:null};const s=[...i].sort((u,p)=>u-p);return{waiting:i.length,medianDays:Math.round(s[Math.floor(s.length/2)]),oldestDays:Math.round(s[s.length-1])}}const Fn="FK Grotesk Mono, monospace",yp="Delcan Mono, monospace",tv="Martina Plantijn, Georgia, serif",rv="text-2xl",v3=[];function b3(e){const o=[...e];for(let n=o.length-1;n>0;n--){const a=Math.floor(Math.random()*(n+1));[o[n],o[a]]=[o[a],o[n]]}return o}function x3({isOpen:e,onClose:o}){const n=qo(),{prompts:a,artworks:i,refreshPrompts:s,refreshArtworks:u}=$n(),[p,h]=O.useState(0),[g,w]=O.useState(null),[d,f]=kd({loop:!0,align:"start",dragFree:!0}),m=a.length,k=i.length,S=O.useMemo(()=>new Set(i.map(Q=>(Q.artistName||"").trim()).filter(Boolean)).size,[i]),_=O.useMemo(()=>{const Q=i.map(Z=>({url:Z.imageUrl||Z.image||Z.imageData,prompt:(Z.promptText||Z.prompt||"").trim(),artist:(Z.artistName||"").trim()})).filter(Z=>Z.url),te=Q.length>0?Q:v3;return b3(te).slice(0,12)},[i,p]),b=O.useMemo(()=>f1(a),[a]),x=O.useMemo(()=>h1(a),[a]),C=O.useMemo(()=>m1(i),[i]),N=O.useMemo(()=>w1(a,i),[a,i]),j=O.useMemo(()=>b1(a),[a]),L=O.useMemo(()=>v1(a,i),[a,i]),P=O.useMemo(()=>x1(i),[i]),z=O.useMemo(()=>k1(a),[a]),H=O.useMemo(()=>S1(i),[i]),F=O.useMemo(()=>_1(i),[i]),T=O.useMemo(()=>y3(i),[i]),D=O.useMemo(()=>w3(a,i),[a,i]),B=O.useMemo(()=>p3(a,i),[a,i]),$=O.useMemo(()=>{const te=[{type:"donut",title:"What people ask us to draw",items:b},{type:"bars",title:"The words you reach for most",items:j},{type:"columns",title:"How many words is a prompt?",items:x},{type:"donut",title:"Drawn, or still waiting?",items:N},{type:"columns",title:"How long until a prompt is drawn?",items:L.buckets},{type:"bars",title:"Who has drawn the most",items:C},{type:"columns",title:"How many drawings each artist makes",items:P},{type:"columns",title:"How many weeks people come back",items:F.buckets},{type:"columns",title:"Prompts asked, by month",items:z},{type:"columns",title:"When the community draws",items:H}].filter(J=>"items"in J&&J.items.length>0),Z={type:"facts",title:"A few more things",facts:[{value:B.drawingsThisWeek,label:"drawings this week"},{value:B.promptsToday,label:"prompts today"},{value:B.avgWords,label:"words · average prompt"},{value:L.medianDays==null?"â":L.medianDays===0?"<1":L.medianDays,label:"days to be drawn · median"},{value:j[0]?.label??"â",label:"most-used word"},{value:F.regulars,label:"regulars · drew in 4+ different weeks"},{value:T.total,label:"marks left on drawings"},{value:`${Math.round(T.share*100)}%`,label:"drawings with at least one mark"},{value:D.medianDays==null?"â":D.medianDays,label:"days the waiting prompts have waited · median"}],longest:B.longest,shortest:B.shortest};return[...te,Z]},[b,j,x,N,L,C,P,z,H,B,F,T,D]);O.useEffect(()=>{function Q(te){te.key==="Escape"&&e&&o()}return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[e,o]),O.useEffect(()=>{if(!e)return;const Q=setInterval(()=>f?.scrollNext(),2800),te=setInterval(()=>h(Z=>Z+1),15e3);return()=>{clearInterval(Q),clearInterval(te)}},[e,f]),O.useEffect(()=>{if(!e)return;const Q=()=>
272{s(),u(),W4().then(Z=>w(Z.people)).catch(()=>{})};Q();const te=setInterval(Q,3e4);return()=>clearInterval(te)},[e,s,u]);const W=Q=>{o(),n(Q)};return c.jsxs("div",{className:`fixed inset-0 z-[10000] bg-background transition-all duration-500 ease-out ${e?"opacity-100 scale-100 pointer-events-auto":"opacity-0 scale-[1.02] pointer-events-none"}`,"aria-hidden":!e,children:[c.jsxs("div",{className:"flex items-center justify-between px-6 md:px-12 pt-6",children:[c.jsx("span",{className:`text-foreground ${rv}`,style:{fontFamily:yp},children:"Prompt-Brush"}),c.jsx("button",{onClick:o,className:"p-2 rounded-full hover:bg-accent transition-colors text-foreground","aria-label":"Close",children:c.jsx(Li,{className:"w-6 h-6"})})]}),c.jsx("div",{className:"h-[calc(100%-72px)] overflow-y-auto",children:c.jsxs("div",{className:"max-w-5xl mx-auto px-6 md:px-12 py-12 md:py-16",children:[c.jsx("p",{className:"text-muted-foreground uppercase tracking-widest mb-8",style:{fontSize:"10pt",fontFamily:Fn},children:"The first non-AI generative art model"}),c.jsxs("h1",{className:"text-foreground text-3xl md:text-5xl leading-[1.22] max-w-3xl",style:{fontFamily:tv,letterSpacing:"0.01em"},children:["You"," ",c.jsx("span",{className:"underline decoration-1 underline-offset-[6px]",children:"pick a prompt"})," ","someone wrote, you"," ",c.jsx("span",{className:"underline decoration-1 underline-offset-[6px]",children:"draw it"}),", the person who wrote it receives it. I feel like I got so much from this exercise of drawing things for other people when I started"," ",c.jsx("span",{onClick:()=>W("/collection"),className:"italic cursor-pointer underline-offset-[6px] hover:underline",children:"Prompt-Brush 1.0"})," ","that Iâm curious and excited to see if other people might get something out of it too. A drawing made by a person for another person feels like a small good thing right now. Draw something or send in a prompt!"]}),c.jsx("div",{className:"flex flex-wrap gap-12 md:gap-20 mt-14",children:[{value:m,label:"Prompts"},{value:g,label:"People"},{value:k,label:"Drawings"},{value:S,label:"Artists"}].filter(Q=>Q.value!=null).map(Q=>c.jsxs("div",{className:"flex flex-col",children:[c.jsx("span",{className:`text-foreground ${rv} tabular-nums`,style:{fontFamily:yp},"data-stat":Q.label.toLowerCase(),children:Q.value.toLocaleString()}),c.jsx("span",{className:"text-muted-foreground uppercase tracking-widest mt-1",style:{fontSize:"9pt",fontFamily:Fn},children:Q.label})]},Q.label))}),c.jsx(u3,{slides:$}),c.jsxs("p",{className:"text-muted-foreground mt-12",style:{fontFamily:Fn,fontSize:"9pt"},children:["Live, from ",m.toLocaleString()," prompts and ",k.toLocaleString()," drawings."]}),c.jsxs("div",{className:"flex flex-wrap gap-3 mt-12",children:[ru&&c.jsx("a",{href:ru,target:"_blank",rel:"noopener noreferrer",className:"rounded-full px-6 py-3 bg-foreground text-background hover:opacity-80 transition-opacity",style:{fontFamily:Fn,fontSize:"11pt"},children:"Get the iPhone app"}),c.jsx("button",{onClick:()=>W("/prompts"),className:"border border-border rounded-full px-6 py-3 text-foreground hover:bg-foreground hover:text-background transition-colors",style:{fontFamily:Fn,fontSize:"11pt"},children:"Browse the prompts"}),c.jsx("button",{onClick:()=>W("/collection"),className:"border border-border rounded-full px-6 py-3 text-foreground hover:bg-foreground hover:text-background transition-colors",style:{fontFamily:Fn,fontSize:"11pt"},children:"The 1.0 drawings"}),c.jsx("button",{onClick:()=>W("/book"),className:"border border-border rounded-full px-6 py-3 text-foreground hover:bg-foreground hover:text-background transition-colors",style:{fontFamily:Fn,fontSize:"11pt"},children:"Get the book"}),c.jsx("button",{onClick:()=>W("/shop"),className:"border border-border rounded-full px-6 py-3 text-foreground hover:bg-foreground hover:text-background transition-colors",style:{fontFamily:Fn,fontSize:"11pt"},children:"The shop"})]}),c.jsxs("div",{className:"mt-14",children:[c.jsx("p",{className:"text-muted-foreground uppercase tracking-widest mb-2.5",style:{fontSize:"9pt",fontFamily:Fn},children:"Get in touch"}),c.jsx("a",{href:"mailto:[email protected]",className:"text-foreground underline underline-offset-[5px] decoration-1 hover:opacity-70 transition-opacity",style:{fontFamily:yp,fontSize:"1.05rem"},children:"[email protected]"}),c.jsx("p",{className:"text-muted-foreground mt-3 max-w-md",style:{fontFamily:tv,fontSize:"13px",lineHeight:1.5},children:"Questions, ideas, or just a hello â we'd love to hear from you."})]}),_.length>0&&c.jsxs("div",{className:"mt-16",children:[c.jsx("p",{className:"text-muted-foreground uppercase tracking-widest mb-4",style:{fontSize:"9pt",fontFamily:Fn},children:"Drawings from the community"}),c.jsx("div",{className:"overflow-hidden -mx-3",ref:d,children:c.jsx("div",{className:"flex",children:_.map((Q,te)=>c.jsxs("div",{className:"flex-[0_0_auto] w-60 md:w-80 px-3",children:[c.jsx("img",{src:Q.url,alt:Q.prompt||"Community drawing",className:"w-full rounded-md border border-border bg-card object-cover",style:{aspectRatio:"5/7"},loading:"lazy",draggable:!1}),c.jsxs("div",{className:"mt-3",children:[Q.prompt&&c.jsx("div",{className:"text-foreground leading-snug line-clamp-2",style:{fontFamily:Fn,fontSize:"11pt"},title:Q.prompt,children:Q.prompt}),Q.artist&&c.jsx("div",{className:"text-muted-foreground uppercase tracking-widest mt-1.5 truncate",style:{fontFamily:Fn,fontSize:"8.5pt"},children:Q.artist})]})]},`${Q.url}-${te}`))})})]})]})})]})}const N1="";console.log("[Email Service] Configured EMAIL_API_URL:",N1);async function k3(e){try{const o=await fetch(`${N1}/api/emails/app-link`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})});return o.ok?{ok:!0}:{ok:!1,error:(await o.json().catch(()=>({})))?.error||"Could not send the link."}}catch(o){return console.error("[Email Service] Failed to send app link:",o),{ok:!1,error:"Network error â please try again."}}}const E1="pb_app_banner_dismissed_at",S3=14,xn="'Delcan Mono', monospace";function _3(){if(typeof navigator>"u")return!1;const e=navigator.userAgent;return/iphone|ipad|ipod/i.test(e)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1}function N3(){const e=navigator.userAgent,o=/(instagram|fban|fbav|fb_iab|line|micromessenger|twitter|gsa|pinterest|snapchat|tiktok|linkedin)/i.test(e),n=/(crios|fxios|edgios|opios|chrome|android)/i.test(e);return/safari/i.test(e)&&!o&&!n}function E3(){return typeof window<"u"&&window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches||navigator.standalone===!0}
272function C3(){if(typeof navigator>"u")return!1;const e=navigator.userAgent;return!(/Mobi|Android|iPhone|iPad|iPod/i.test(e)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function A3(){try{const e=localStorage.getItem(E1);return e?Date.now()-Number(e)<S3*864e5:!1}catch{return!1}}function j3(){const e=jn(),[o,n]=O.useState(()=>A3()),[a,i]=O.useState(""),[s,u]=O.useState("idle"),[p,h]=O.useState(""),[g,w]=O.useState(()=>typeof window<"u"&&window.matchMedia("(max-width: 640px)").matches);O.useEffect(()=>{if(document.querySelector('meta[name="apple-itunes-app"]'))return;const C=document.createElement("meta");C.name="apple-itunes-app",C.content=`app-id=${c1}`,document.head.appendChild(C)},[]),O.useEffect(()=>{if(typeof window>"u")return;const C=window.matchMedia("(max-width: 640px)"),N=()=>w(C.matches);return C.addEventListener("change",N),()=>C.removeEventListener("change",N)},[]);const d=typeof window<"u"&&new URLSearchParams(window.location.search).has("appbanner"),f=e.pathname.startsWith("/admin")||e.pathname==="/user-draw",m=_3()?N3()?null:"direct":g?"direct":C3()?"email":null;if(!(!!ru&&m!==null&&(d||!o&&!f&&!E3())))return null;const S=()=>{try{localStorage.setItem(E1,String(Date.now()))}catch{}},_=()=>{S(),n(!0)},b=/.+@.+\..+/.test(a.trim()),x=async C=>{if(C.preventDefault(),!b||s==="sending")return;u("sending");const N=await k3(a.trim());N.ok?(S(),u("sent")):(h(N.error||"Something went wrong â try again."),u("error"))};return c.jsx("div",{className:"pb-app-backdrop fixed inset-0 z-[10001] flex items-center justify-center p-6",style:{background:"rgba(20,18,16,0.55)"},onClick:_,children:c.jsxs("div",{className:"pb-app-modal relative w-full max-w-sm rounded-[22px] border border-background/15 bg-foreground text-background p-6 text-left",role:"dialog","aria-modal":"true","aria-label":"Get the Prompt-Brush app",onClick:C=>C.stopPropagation(),children:[c.jsx("button",{type:"button","aria-label":"Dismiss",onClick:_,className:"absolute top-3 right-3 flex h-8 w-8 items-center justify-center rounded-full text-background/60 transition-colors hover:bg-background/10 hover:text-background",children:c.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",children:c.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})}),c.jsx("span",{className:"block h-[68px] w-[68px] overflow-hidden rounded-[16px]",style:{boxShadow:"0 0 0 1.5px rgba(127,127,127,0.45)"},children:c.jsx("img",{src:"/app-icon.png",alt:"",className:"block h-full w-full"})}),m==="direct"?c.jsxs(c.Fragment,{children:[c.jsxs("h2",{className:"mt-4 text-[20px] leading-tight",style:{fontFamily:xn},children:[gp," is now an app"]}),c.jsx("p",{className:"mt-2 text-[13px] text-background/70",style:{fontFamily:xn},children:"Draw the prompts by hand â no AI, just people."}),c.jsx("a",{href:ru||"#",target:"_blank",rel:"noopener noreferrer",onClick:_,className:"pb-glow-btn mt-5 block w-full rounded-full bg-background py-3.5 text-center text-[15px] text-foreground transition-opacity hover:opacity-80",style:{fontFamily:xn},children:"Get it on the App Store"}),c.jsx("button",{type:"button",onClick:_,className:"mt-3 text-[13px] text-background/70 transition-opacity hover:opacity-100",style:{fontFamily:xn},children:"Not now"})]}):s==="sent"?c.jsxs(c.Fragment,{children:[c.jsx("h2",{className:"mt-4 text-[20px] leading-tight",style:{fontFamily:xn},children:"Check your inbox"}),c.jsxs("p",{className:"mt-2 text-[13px] text-background/70",style:{fontFamily:xn},children:["We sent the App Store link to ",c.jsx("span",{className:"text-background",children:a.trim()}),". Open it on your iPhone to install ",gp,"."]}),c.jsx("button",{type:"button",onClick:_,className:"pb-glow-btn mt-5 block w-full rounded-full bg-background py-3.5 text-center text-[15px] text-foreground transition-opacity hover:opacity-80",style:{fontFamily:xn},children:"Done"})]}):c.jsxs(c.Fragment,{children:[c.jsxs("h2",{className:"mt-4 text-[20px] leading-tight",style:{fontFamily:xn},children:[gp," is on iPhone"]}),c.jsx("p",{className:"mt-2 text-[13px] text-background/70",style:{fontFamily:xn},children:"Enter your email and we'll send you the App Store link to open on your phone."}),c.jsxs("form",{onSubmit:x,children:[c.jsx("input",{type:"email",inputMode:"email",autoComplete:"email",value:a,onChange:C=>{i(C.target.value),s==="error"&&u("idle")},placeholder:"[email protected]",className:"mt-4 w-full rounded-full border border-background/25 bg-transparent px-4 py-3 text-[14px] text-background placeholder:text-background/50 outline-none focus:border-background/60",style:{fontFamily:xn}}),s==="error"&&c.jsx("p",{className:"mt-2 text-[12px]",style:{fontFamily:xn,color:"#ec6a60"},children:p}),c.jsx("button",{type:"submit",disabled:!b||s==="sending",className:"pb-glow-btn mt-3 block w-full rounded-full bg-background py-3.5 text-center text-[15px] text-foreground transition-opacity hover:opacity-80 disabled:opacity-40",style:{fontFamily:xn},children:s==="sending"?"Sendingâ¦":"Email me the App Store link"})]}),c.jsx("button",{type:"button",onClick:_,className:"mt-3 text-[13px] text-background/70 transition-opacity hover:opacity-100",style:{fontFamily:xn},children:"Not now"})]})]})})}const nv="pb:intro:v1",ks={fontFamily:"FK Grotesk Mono, monospace"},T3=[{n:"01",title:"Someone writes a prompt",copy:"A line of text. âA cat astronaut floating past the moon.â"},{n:"02",title:"A person draws it by hand",copy:"Black ink on paper. No filters, no generators â just a human deciding what it looks like."},{n:"03",title:"It joins the gallery",copy:"Every prompt is drawn once, so each drawing is somebodyâs single answer to it."}];function O3(){const[e,o]=O.useState(!1),n=qo(),{pathname:a}=jn(),i=a.startsWith("/admin")||a==="/user-draw";O.useEffect(()=>{if(!i)try{localStorage.getItem(nv)||o(!0)}catch{}},[i]);const s=()=>{try{localStorage.setItem(nv,"1")}catch{}o(!1)};return O.useEffect(()=>{if(!e)return;const u=p=>p.key==="Escape"&&s();return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[e]),e?c.jsx("div",{className:"fixed inset-0 z-[10001] flex items-center justify-center bg-black/60 p-4",onClick:s,role:"dialog","aria-modal":"true","aria-label":"What is Prompt-Brush?",children:c.jsxs("div",{className:"relative w-full max-w-lg rounded-xl bg-background border border-border p-7 md:p-9",onClick:u=>u.stopPropagation(),children:[c.jsx("button",{onClick:s,"aria-label":"Close",className:"absolute top-3 right-4 text-2xl leading-none text-muted-foreground hover:text-foreground transition-colors",children:"Ã"}),c.jsx("p",{className:"text-[11px] uppercase tracking-[0.2em] mb-7",style:{...ks,color:"hsl(var(--pb-mark))"},children:"The first non-AI generative art model"}),c.jsx("ol",{className:"space-y-5 mb-8 list-none p-0",children:T3.map(u=>c.jsxs("li",{className:"flex gap-4",children:[c.jsx("span",{className:"text-[11px] pt-1 shrink-0",style:{...ks,color:"hsl(var(--pb-mark))"},children:u.n}),c.jsxs("span",{children:[c.jsx("span",{className:"block text-[15px] text-foreground",style:ks,children:u.title}),c.jsx("span",{className:"block text-[13px] leading-relaxed text-muted-foreground mt-1",style:ks,children:u.copy})]})]},u.n))}),c.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[c.jsx("button",{onClick:()=>{s(),n("/prompts")}
vendor: 6,946 bytes, line 272
272,className:"rounded-full bg-foreground text-background px-5 py-2.5 text-[12px] tracking-wider hover:opacity-90 transition-opacity",style:ks,children:"DRAW A PROMPT"}),c.jsx("button",{onClick:s,className:"text-[12px] text-muted-foreground hover:text-foreground transition-colors",style:ks,children:"Just looking"})]})]})}):null}function on(e,o,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e?.(i),n===!1||!i.defaultPrevented)return o?.(i)}}function Nd(e,o=[]){let n=[];function a(s,u){const p=O.createContext(u),h=n.length;n=[...n,u];const g=d=>{const{scope:f,children:m,...k}=d,S=f?.[e]?.[h]||p,_=O.useMemo(()=>k,Object.values(k));return c.jsx(S.Provider,{value:_,children:m})};g.displayName=s+"Provider";function w(d,f){const m=f?.[e]?.[h]||p,k=O.useContext(m);if(k)return k;if(u!==void 0)return u;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[g,w]}const i=()=>{const s=n.map(u=>O.createContext(u));return function(p){const h=p?.[e]||s;return O.useMemo(()=>({[`__scope${e}`]:{...p,[e]:h}}),[p,h])}};return i.scopeName=e,[a,P3(i,...o)]}function P3(...e){const o=e[0];if(e.length===1)return o;const n=()=>{const a=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const u=a.reduce((p,{useScope:h,scopeName:g})=>{const d=h(s)[`__scope${g}`];return{...p,...d}},{});return O.useMemo(()=>({[`__scope${o.scopeName}`]:u}),[u])}};return n.scopeName=o.scopeName,n}function R3(e){const o=D3(e),n=O.forwardRef((a,i)=>{const{children:s,...u}=a,p=O.Children.toArray(s),h=p.find(I3);if(h){const g=h.props.children,w=p.map(d=>d===h?O.Children.count(g)>1?O.Children.only(null):O.isValidElement(g)?g.props.children:null:d);return c.jsx(o,{...u,ref:i,children:O.isValidElement(g)?O.cloneElement(g,void 0,w):null})}return c.jsx(o,{...u,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function D3(e){const o=O.forwardRef((n,a)=>{const{children:i,...s}=n;if(O.isValidElement(i)){const u=F3(i),p=L3(s,i.props);return i.type!==O.Fragment&&(p.ref=a?wd(a,u):u),O.cloneElement(i,p)}return O.Children.count(i)>1?O.Children.only(null):null});return o.displayName=`${e}.SlotClone`,o}var M3=Symbol("radix.slottable");function I3(e){return O.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===M3}function L3(e,o){const n={...o};for(const a in o){const i=e[a],s=o[a];/^on[A-Z]/.test(a)?i&&s?n[a]=(...p)=>{const h=s(...p);return i(...p),h}:i&&(n[a]=i):a==="style"?n[a]={...i,...s}:a==="className"&&(n[a]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function F3(e){let o=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=o&&"isReactWarning"in o&&o.isReactWarning;return n?e.ref:(o=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=o&&"isReactWarning"in o&&o.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var z3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Hn=z3.reduce((e,o)=>{const n=R3(`Primitive.${o}`),a=O.forwardRef((i,s)=>{const{asChild:u,...p}=i,h=u?n:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(h,{...p,ref:s})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{});function B3(e,o){e&&yd.flushSync(()=>e.dispatchEvent(o))}function Ed(e){const o=O.useRef(e);return O.useEffect(()=>{o.current=e}),O.useMemo(()=>(...n)=>o.current?.(...n),[])}function q3(e,o=globalThis?.document){const n=Ed(e);O.useEffect(()=>{const a=i=>{i.key==="Escape"&&n(i)};return o.addEventListener("keydown",a,{capture:!0}),()=>o.removeEventListener("keydown",a,{capture:!0})},[n,o])}var $3="DismissableLayer",mm="dismissableLayer.update",U3="dismissableLayer.pointerDownOutside",H3="dismissableLayer.focusOutside",ov,C1=O.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),A1=O.forwardRef((e,o)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:u,onDismiss:p,...h}=e,g=O.useContext(C1),[w,d]=O.useState(null),f=w?.ownerDocument??globalThis?.document,[,m]=O.useState({}),k=an(o,P=>d(P)),S=Array.from(g.layers),[_]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),b=S.indexOf(_),x=w?S.indexOf(w):-1,C=g.layersWithOutsidePointerEventsDisabled.size>0,N=x>=b,j=V3(P=>{const z=P.target,H=[...g.branches].some(F=>F.contains(z));!N||H||(i?.(P),u?.(P),P.defaultPrevented||p?.())},f),L=G3(P=>{const z=P.target;[...g.branches].some(F=>F.contains(z))||(s?.(P),u?.(P),P.defaultPrevented||p?.())},f);return q3(P=>{x===g.layers.size-1&&(a?.(P),!P.defaultPrevented&&p&&(P.preventDefault(),p()))},f),O.useEffect(()=>{if(w)return n&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(ov=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(w)),g.layers.add(w),av(),()=>{n&&g.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=ov)}},[w,f,n,g]),O.useEffect(()=>()=>{w&&(g.layers.delete(w),g.layersWithOutsidePointerEventsDisabled.delete(w),av())},[w,g]),O.useEffect(()=>{const P=()=>m({});return document.addEventListener(mm,P),()=>document.removeEventListener(mm,P)},[]),c.jsx(Hn.div,{...h,ref:k,style:{pointerEvents:C?N?"auto":"none":void 0,...e.style},onFocusCapture:on(e.onFocusCapture,L.onFocusCapture),onBlurCapture:on(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:on(e.onPointerDownCapture,j.onPointerDownCapture)})});A1.displayName=$3;var K3="DismissableLayerBranch",W3=O.forwardRef((e,o)=>{const n=O.useContext(C1),a=O.useRef(null),i=an(o,a);return O.useEffect(()=>{const s=a.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(Hn.div,{...e,ref:i})});W3.displayName=K3;function V3(e,o=globalThis?.document){const n=Ed(e),a=O.useRef(!1),i=O.useRef(()=>{});return O.useEffect(()=>{const s=p=>{if(p.target&&!a.current){let h=function(){j1(U3,n,g,{discrete:!0})};const g={originalEvent:p};p.pointerType==="touch"?(o.removeEventListener("click",i.current),i.current=h,o.addEventListener("click",i.current,{once:!0})):h()}else o.removeEventListener("click",i.current);a.current=!1},u=window.setTimeout(()=>{o.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(u),o.removeEventListener("pointerdown",s),o.removeEventListener("click",i.current)}},[o,n]),{onPointerDownCapture:()=>a.current=!0}}function G3(e,o=globalThis?.document){const n=Ed(e),a=O.useRef(!1);return O.useEffect(()=>{const i=s=>{s.target&&!a.current&&j1(H3,n,{originalEvent:s},{discrete:!1})};return o.addEventListener("focusin",i),()=>o.removeEventListener("focusin",i)},[o,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function av(){const e=new CustomEvent(mm);document.dispatchEvent(e)}function j1(e,o,n,{discrete:a}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});o&&i.addEventListener(e,o,{once:!0}),a?B3(i,s):i.dispatchEvent(s)}var zi=globalThis?.document?O.useLayoutEffect:()=>{},Y3=Lm[" useId ".trim().toString()]||(()=>{}
vendor: 16,639 bytes, line 272
272),Z3=0;function Q3(e){const[o,n]=O.useState(Y3());return zi(()=>{n(a=>a??String(Z3++))},[e]),o?`radix-${o}`:""}const X3=["top","right","bottom","left"],ei=Math.min,En=Math.max,od=Math.round,Mc=Math.floor,Lo=e=>({x:e,y:e}),J3={left:"right",right:"left",bottom:"top",top:"bottom"},eC={start:"end",end:"start"};function gm(e,o,n){return En(e,ei(o,n))}function ga(e,o){return typeof e=="function"?e(o):e}function ya(e){return e.split("-")[0]}function qs(e){return e.split("-")[1]}function ng(e){return e==="x"?"y":"x"}function og(e){return e==="y"?"height":"width"}const tC=new Set(["top","bottom"]);function Io(e){return tC.has(ya(e))?"y":"x"}function ag(e){return ng(Io(e))}function rC(e,o,n){n===void 0&&(n=!1);const a=qs(e),i=ag(e),s=og(i);let u=i==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return o.reference[s]>o.floating[s]&&(u=ad(u)),[u,ad(u)]}function nC(e){const o=ad(e);return[ym(e),o,ym(o)]}function ym(e){return e.replace(/start|end/g,o=>eC[o])}const iv=["left","right"],sv=["right","left"],oC=["top","bottom"],aC=["bottom","top"];function iC(e,o,n){switch(e){case"top":case"bottom":return n?o?sv:iv:o?iv:sv;case"left":case"right":return o?oC:aC;default:return[]}}function sC(e,o,n,a){const i=qs(e);let s=iC(ya(e),n==="start",a);return i&&(s=s.map(u=>u+"-"+i),o&&(s=s.concat(s.map(ym)))),s}function ad(e){return e.replace(/left|right|bottom|top/g,o=>J3[o])}function lC(e){return{top:0,right:0,bottom:0,left:0,...e}}function T1(e){return typeof e!="number"?lC(e):{top:e,right:e,bottom:e,left:e}}function id(e){const{x:o,y:n,width:a,height:i}=e;return{width:a,height:i,top:n,left:o,right:o+a,bottom:n+i,x:o,y:n}}function lv(e,o,n){let{reference:a,floating:i}=e;const s=Io(o),u=ag(o),p=og(u),h=ya(o),g=s==="y",w=a.x+a.width/2-i.width/2,d=a.y+a.height/2-i.height/2,f=a[p]/2-i[p]/2;let m;switch(h){case"top":m={x:w,y:a.y-i.height};break;case"bottom":m={x:w,y:a.y+a.height};break;case"right":m={x:a.x+a.width,y:d};break;case"left":m={x:a.x-i.width,y:d};break;default:m={x:a.x,y:a.y}}switch(qs(o)){case"start":m[u]-=f*(n&&g?-1:1);break;case"end":m[u]+=f*(n&&g?-1:1);break}return m}const uC=async(e,o,n)=>{const{placement:a="bottom",strategy:i="absolute",middleware:s=[],platform:u}=n,p=s.filter(Boolean),h=await(u.isRTL==null?void 0:u.isRTL(o));let g=await u.getElementRects({reference:e,floating:o,strategy:i}),{x:w,y:d}=lv(g,a,h),f=a,m={},k=0;for(let S=0;S<p.length;S++){const{name:_,fn:b}=p[S],{x,y:C,data:N,reset:j}=await b({x:w,y:d,initialPlacement:a,placement:f,strategy:i,middlewareData:m,rects:g,platform:u,elements:{reference:e,floating:o}});w=x??w,d=C??d,m={...m,[_]:{...m[_],...N}},j&&k<=50&&(k++,typeof j=="object"&&(j.placement&&(f=j.placement),j.rects&&(g=j.rects===!0?await u.getElementRects({reference:e,floating:o,strategy:i}):j.rects),{x:w,y:d}=lv(g,f,h)),S=-1)}return{x:w,y:d,placement:f,strategy:i,middlewareData:m}};async function ou(e,o){var n;o===void 0&&(o={});const{x:a,y:i,platform:s,rects:u,elements:p,strategy:h}=e,{boundary:g="clippingAncestors",rootBoundary:w="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=ga(o,e),k=T1(m),_=p[f?d==="floating"?"reference":"floating":d],b=id(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(p.floating)),boundary:g,rootBoundary:w,strategy:h})),x=d==="floating"?{x:a,y:i,width:u.floating.width,height:u.floating.height}:u.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p.floating)),N=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},j=id(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:x,offsetParent:C,strategy:h}):x);return{top:(b.top-j.top+k.top)/N.y,bottom:(j.bottom-b.bottom+k.bottom)/N.y,left:(b.left-j.left+k.left)/N.x,right:(j.right-b.right+k.right)/N.x}}const cC=e=>({name:"arrow",options:e,async fn(o){const{x:n,y:a,placement:i,rects:s,platform:u,elements:p,middlewareData:h}=o,{element:g,padding:w=0}=ga(e,o)||{};if(g==null)return{};const d=T1(w),f={x:n,y:a},m=ag(i),k=og(m),S=await u.getDimensions(g),_=m==="y",b=_?"top":"left",x=_?"bottom":"right",C=_?"clientHeight":"clientWidth",N=s.reference[k]+s.reference[m]-f[m]-s.floating[k],j=f[m]-s.reference[m],L=await(u.getOffsetParent==null?void 0:u.getOffsetParent(g));let P=L?L[C]:0;(!P||!await(u.isElement==null?void 0:u.isElement(L)))&&(P=p.floating[C]||s.floating[k]);const z=N/2-j/2,H=P/2-S[k]/2-1,F=ei(d[b],H),T=ei(d[x],H),D=F,B=P-S[k]-T,$=P/2-S[k]/2+z,W=gm(D,$,B),Q=!h.arrow&&qs(i)!=null&&$!==W&&s.reference[k]/2-($<D?F:T)-S[k]/2<0,te=Q?$<D?$-D:$-B:0;return{[m]:f[m]+te,data:{[m]:W,centerOffset:$-W-te,...Q&&{alignmentOffset:te}},reset:Q}}}),dC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(o){var n,a;const{placement:i,middlewareData:s,rects:u,initialPlacement:p,platform:h,elements:g}=o,{mainAxis:w=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:S=!0,..._}=ga(e,o);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=ya(i),x=Io(p),C=ya(p)===p,N=await(h.isRTL==null?void 0:h.isRTL(g.floating)),j=f||(C||!S?[ad(p)]:nC(p)),L=k!=="none";!f&&L&&j.push(...sC(p,S,k,N));const P=[p,...j],z=await ou(o,_),H=[];let F=((a=s.flip)==null?void 0:a.overflows)||[];if(w&&H.push(z[b]),d){const $=rC(i,u,N);H.push(z[$[0]],z[$[1]])}if(F=[...F,{placement:i,overflows:H}],!H.every($=>$<=0)){var T,D;const $=(((T=s.flip)==null?void 0:T.index)||0)+1,W=P[$];if(W&&(!(d==="alignment"?x!==Io(W):!1)||F.every(Z=>Io(Z.placement)===x?Z.overflows[0]>0:!0)))return{data:{index:$,overflows:F},reset:{placement:W}};let Q=(D=F.filter(te=>te.overflows[0]<=0).sort((te,Z)=>te.overflows[1]-Z.overflows[1])[0])==null?void 0:D.placement;if(!Q)switch(m){case"bestFit":{var B;const te=(B=F.filter(Z=>{if(L){const J=Io(Z.placement);return J===x||J==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(J=>J>0).reduce((J,V)=>J+V,0)]).sort((Z,J)=>Z[1]-J[1])[0])==null?void 0:B[0];te&&(Q=te);break}case"initialPlacement":Q=p;break}if(i!==Q)return{reset:{placement:Q}}}return{}}}};function uv(e,o){return{top:e.top-o.height,right:e.right-o.width,bottom:e.bottom-o.height,left:e.left-o.width}}function cv(e){return X3.some(o=>e[o]>=0)}const fC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(o){const{rects:n}=o,{strategy:a="referenceHidden",...i}=ga(e,o);switch(a){case"referenceHidden":{const s=await ou(o,{...i,elementContext:"reference"}),u=uv(s,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:cv(u)}}}case"escaped":{const s=await ou(o,{...i,altBoundary:!0}),u=uv(s,n.floating);return{data:{escapedOffsets:u,escaped:cv(u)}}}default:return{}}}}},O1=new Set(["left","top"]);async function pC(e,o){const{placement:n,platform:a,elements:i}=e,s=await(a.isRTL==null?void 0:a.isRTL(i.floating)),u=ya(n),p=qs(n),h=Io(n)==="y",g=O1.has(u)?-1:1,w=s&&h?-1:1,d=ga(o,e);let{mainAxis:f,crossAxis:m,alignmentAxis:k}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return p&&typeof k=="number"&&(m=p==="end"?k*-1:k),h?{x:m*w,y:f*g}:{x:f*g,y:m*w}}const hC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(o){var n,a;const{x:i,y:s,placement:u,middlewareData:p}=o,h=await pC(o,e);return u===((n=p.offset)==null?void 0:n.placement)&&(a=p.arrow)!=null&&a.alignmentOffset?{}:{x:i+h.x,y:s+h.y,data:{...h,placement:u}}}}},mC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){const{x:n,y:a,placement:i}=o,{mainAxis:s=!0,crossAxis:u=!1,limiter:p={fn:_=>{let{x:b,y:x}=_;return{x:b,y:x}}},...h}=ga(e,o),g={x:n,y:a},w=await ou(o,h),d=Io(ya(i)),f=ng(d);let m=g[f],k=g[d];if(s){const _=f==="y"?"top":"left",b=f==="y"?"bottom":"right",x=m+w[_],C=m-w[b];m=gm(x,m,C)}if(u){const _=d==="y"?"top":"left",b=d==="y"?"bottom":"right",x=k+w[_],C=k-w[b];k=gm(x,k,C)}const S=p.fn({...o,[f]:m,[d]:k});return{...S,data:{x:S.x-n,y:S.y-a,enabled:{[f]:s,[d]:u}}}}}},gC=function(e){return e===void 0&&(e={}),{options:e,fn(o){const{x:n,y:a,placement:i,rects:s,middlewareData:u}=o,{offset:p=0,mainAxis:h=!0,crossAxis:g=!0}=ga(e,o),w={x:n,y:a},d=Io(i),f=ng(d);let m=w[f],k=w[d];const S=ga(p,o),_=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(h){const C=f==="y"?"height":"width",N=s.reference[f]-s.floating[C]+_.mainAxis,j=s.reference[f]+s.reference[C]-_.mainAxis;m<N?m=N:m>j&&(m=j)}if(g){var b,x;const C=f==="y"?"width":"height",N=O1.has(ya(i)),j=s.reference[d]-s.floating[C]+(N&&((b=u.offset)==null?void 0:b[d])||0)+(N?0:_.crossAxis),L=s.reference[d]+s.reference[C]+(N?0:((x=u.offset)==null?void 0:x[d])||0)-(N?_.crossAxis:0);k<j?k=j:k>L&&(k=L)}return{[f]:m,[d]:k}}}},yC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(o){var n,a;const{placement:i,rects:s,platform:u,elements:p}=o,{apply:h=()=>{},...g}=ga(e,o),w=await ou(o,g),d=ya(i),f=qs(i),m=Io(i)==="y",{width:k,height:S}=s.floating;let _,b;d==="top"||d==="bottom"?(_=d,b=f===(await(u.isRTL==null?void 0:u.isRTL(p.floating))?"start":"end")?"left":"right"):(b=d,_=f==="end"?"top":"bottom");const x=S-w.top-w.bottom,C=k-w.left-w.right,N=ei(S-w[_],x),j=ei(k-w[b],C),L=!o.middlewareData.shift;let P=N,z=j;if((n=o.middlewareData.shift)!=null&&n.enabled.x&&(z=C),(a=o.middlewareData.shift)!=null&&a.enabled.y&&(P=x),L&&!f){const F=En(w.left,0),T=En(w.right,0),D=En(w.top,0),B=En(w.bottom,0);m?z=k-2*(F!==0||T!==0?F+T:En(w.left,w.right)):P=S-2*(D!==0||B!==0?D+B:En(w.top,w.bottom))}await h({...o,availableWidth:z,availableHeight:P});const H=await u.getDimensions(p.floating);return k!==H.width||S!==H.height?{reset:{rects:!0}}:{}}}};function Cd(){return typeof window<"u"}function $s(e){return P1(e)?(e.nodeName||"").toLowerCase():"#document"}function An(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function $o(e){var o;return(o=(P1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function P1(e){return Cd()?e instanceof Node||e instanceof An(e).Node:!1}function co(e){return Cd()?e instanceof Element||e instanceof An(e).Element:!1}function zo(e){return Cd()?e instanceof HTMLElement||e instanceof An(e).HTMLElement:!1}function dv(e){return!Cd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof An(e).ShadowRoot}const wC=new Set(["inline","contents"]);function mu(e){const{overflow:o,overflowX:n,overflowY:a,display:i}=fo(e);return/auto|scroll|overlay|hidden|clip/.test(o+a+n)&&!wC.has(i)}const vC=new Set(["table","td","th"]);function bC(e){return vC.has($s(e))}const xC=[":popover-open",":modal"];function Ad(e){return xC.some(o=>{try{return e.matches(o)}catch{return!1}})}const kC=["transform","translate","scale","rotate","perspective"],SC=["transform","translate","scale","rotate","perspective","filter"],_C=["paint","layout","strict","content"];function ig(e){const o=sg(),n=co(e)?fo(e):e;return kC.some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!o&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!o&&(n.filter?n.filter!=="none":!1)||SC.some(a=>(n.willChange||"").includes(a))||_C.some(a=>(n.contain||"").includes(a))}function NC(e){let o=ti(e);for(;zo(o)&&!Rs(o);){if(ig(o))return o;if(Ad(o))return null;o=ti(o)}return null}function sg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const EC=new Set(["html","body","#document"]);function Rs(e){return EC.has($s(e))}function fo(e){return An(e).getComputedStyle(e)}function jd(e){return co(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ti(e){if($s(e)==="html")return e;const o=e.assignedSlot||e.parentNode||dv(e)&&e.host||$o(e);return dv(o)?o.host:o}function R1(e){const o=ti(e);return Rs(o)?e.ownerDocument?e.ownerDocument.body:e.body:zo(o)&&mu(o)?o:R1(o)}function au(e,o,n){var a;o===void 0&&(o=[]),n===void 0&&(n=!0);const i=R1(e),s=i===((a=e.ownerDocument)==null?void 0:a.body),u=An(i);if(s){const p=wm(u);return o.concat(u,u.visualViewport||[],mu(i)?i:[],p&&n?au(p):[])}return o.concat(i,au(i,[],n))}function wm(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function D1(e){const o=fo(e);let n=parseFloat(o.width)||0,a=parseFloat(o.height)||0;const i=zo(e),s=i?e.offsetWidth:n,u=i?e.offsetHeight:a,p=od(n)!==s||od(a)!==u;return p&&(n=s,a=u),{width:n,height:a,$:p}}function lg(e){return co(e)?e:e.contextElement}function js(e){const o=lg(e);if(!zo(o))return Lo(1);const n=o.getBoundingClientRect(),{width:a,height:i,$:s}=D1(o);let u=(s?od(n.width):n.width)/a,p=(s?od(n.height):n.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!p||!Number.isFinite(p))&&(p=1),{x:u,y:p}}const CC=Lo(0);function M1(e){const o=An(e);return!sg()||!o.visualViewport?CC:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function AC(e,o,n){return o===void 0&&(o=!1),!n||o&&n!==An(e)?!1:o}function Bi(e,o,n,a){o===void 0&&(o=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=lg(e);let u=Lo(1);o&&(a?co(a)&&(u=js(a)):u=js(e));const p=AC(s,n,a)?M1(s):Lo(0);let h=(i.left+p.x)/u.x,g=(i.top+p.y)/u.y,w=i.width/u.x,d=i.height/u.y;if(s){const f=An(s),m=a&&co(a)?An(a):a;let k=f,S=wm(k);for(;S&&a&&m!==k;){const _=js(S),b=S.getBoundingClientRect(),x=fo(S),C=b.left+(S.clientLeft+parseFloat(x.paddingLeft))*_.x,N=b.top+(S.clientTop+parseFloat(x.paddingTop))*_.y;h*=_.x,g*=_.y,w*=_.x,d*=_.y,h+=C,g+=N,k=An(S),S=wm(k)}}return id({width:w,height:d,x:h,y:g})}function Td(e,o){const n=jd(e).scrollLeft;return o?o.left+n:Bi($o(e)).left+n}function I1(e,o){const n=e.getBoundingClientRect(),a=n.left+o.scrollLeft-Td(e,n),i=n.top+o.scrollTop;return{x:a,y:i}}function jC(e){let{elements:o,rect:n,offsetParent:a,strategy:i}=e;const s=i==="fixed",u=$o(a),p=o?Ad(o.floating):!1;if(a===u||p&&s)return n;let h={scrollLeft:0,scrollTop:0},g=Lo(1);const w=Lo(0),d=zo(a);if((d||!d&&!s)&&(($s(a)!=="body"||mu(u))&&(h=jd(a)),zo(a))){const m=Bi(a);g=js(a),w.x=m.x+a.clientLeft,w.y=m.y+a.clientTop}const f=u&&!d&&!s?I1(u,h):Lo(0);return{width:n.width*g.x,height:n.height*g.y,x:n.x*g.x-h.scrollLeft*g.x+w.x+f.x,y:n.y*g.y-h.scrollTop*g.y+w.y+f.y}}function TC(e){return Array.from(e.getClientRects())}function OC(e){const o=$o(e),n=jd(e),a=e.ownerDocument.body,i=En(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),s=En(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight);let u=-n.scrollLeft+Td(e);const p=-n.scrollTop;return fo(a).direction==="rtl"&&(u+=En(o.clientWidth,a.clientWidth)-i),{width:i,height:s,x:u,y:p}}const fv=25;function PC(e,o){const n=An(e),a=$o(e),i=n.visualViewport;let s=a.clientWidth,u=a.clientHeight,p=0,h=0;if(i){s=i.width,u=i.height;const w=sg();(!w||w&&o==="fixed")&&(p=i.offsetLeft,h=i.offsetTop)}const g=Td(a);if(g<=0){const w=a.ownerDocument,d=w.body,f=getComputedStyle(d),m=w.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,k=Math.abs(a.clientWidth-d.clientWidth-m);k<=fv&&(s-=k)}else g<=fv&&(s+=g);return{width:s,height:u,x:p,y:h}}const RC=new Set(["absolute","fixed"]);function DC(e,o){const n=Bi(e,!0,o==="fixed"),a=n.top+e.clientTop,i=n.left+e.clientLeft,s=zo(e)?js(e):Lo(1),u=e.clientWidth*s.x,p=e.clientHeight*s.y,h=i*s.x,g=a*s.y;return{width:u,height:p,x:h,y:g}}function pv(e,o,n){let a;if(o==="viewport")a=PC(e,n);else if(o==="document")a=OC($o(e));else if(co(o))a=DC(o,n);else{const i=M1(e);a={x:o.x-i.x,y:o.y-i.y,width:o.width,height:o.height}}return id(a)}function L1(e,o){const n=ti(e);return n===o||!co(n)||Rs(n)?!1:fo(n).position==="fixed"||L1(n,o)}function MC(e,o){const n=o.get(e);if(n)return n;let a=au(e,[],!1).filter(p=>co(p)&&$s(p)!=="body"),i=null;const s=fo(e).position==="fixed";let u=s?ti(e):e;for(;co(u)&&!Rs(u);){const p=fo(u),h=ig(u);!h&&p.position==="fixed"&&(i=null),(s?!h&&!i:!h&&p.position==="static"&&!!i&&RC.has(i.position)||mu(u)&&!h&&L1(e,u))?a=a.filter(w=>w!==u):i=p,u=ti(u)}return o.set(e,a),a}function IC(e){let{element:o,boundary:n,rootBoundary:a,strategy:i}=e;const u=[...n==="clippingAncestors"?Ad(o)?[]:MC(o,this._c):[].concat(n),a],p=u[0],h=u.reduce((g,w)=>{const d=pv(o,w,i);return g.top=En(d.top,g.top),g.right=ei(d.right,g.right),g.bottom=ei(d.bottom,g.bottom),g.left=En(d.left,g.left),g},pv(o,p,i));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function LC(e){const{width:o,height:n}=D1(e);return{width:o,height:n}}function FC(e,o,n){const a=zo(o),i=$o(o),s=n==="fixed",u=Bi(e,!0,s,o);let p={scrollLeft:0,scrollTop:0};const h=Lo(0);function g(){h.x=Td(i)}
vendor: 9,516 bytes, line 272
272if(a||!a&&!s)if(($s(o)!=="body"||mu(i))&&(p=jd(o)),a){const m=Bi(o,!0,s,o);h.x=m.x+o.clientLeft,h.y=m.y+o.clientTop}else i&&g();s&&!a&&i&&g();const w=i&&!a&&!s?I1(i,p):Lo(0),d=u.left+p.scrollLeft-h.x-w.x,f=u.top+p.scrollTop-h.y-w.y;return{x:d,y:f,width:u.width,height:u.height}}function wp(e){return fo(e).position==="static"}function hv(e,o){if(!zo(e)||fo(e).position==="fixed")return null;if(o)return o(e);let n=e.offsetParent;return $o(e)===n&&(n=n.ownerDocument.body),n}function F1(e,o){const n=An(e);if(Ad(e))return n;if(!zo(e)){let i=ti(e);for(;i&&!Rs(i);){if(co(i)&&!wp(i))return i;i=ti(i)}return n}let a=hv(e,o);for(;a&&bC(a)&&wp(a);)a=hv(a,o);return a&&Rs(a)&&wp(a)&&!ig(a)?n:a||NC(e)||n}const zC=async function(e){const o=this.getOffsetParent||F1,n=this.getDimensions,a=await n(e.floating);return{reference:FC(e.reference,await o(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function BC(e){return fo(e).direction==="rtl"}const qC={convertOffsetParentRelativeRectToViewportRelativeRect:jC,getDocumentElement:$o,getClippingRect:IC,getOffsetParent:F1,getElementRects:zC,getClientRects:TC,getDimensions:LC,getScale:js,isElement:co,isRTL:BC};function z1(e,o){return e.x===o.x&&e.y===o.y&&e.width===o.width&&e.height===o.height}function $C(e,o){let n=null,a;const i=$o(e);function s(){var p;clearTimeout(a),(p=n)==null||p.disconnect(),n=null}function u(p,h){p===void 0&&(p=!1),h===void 0&&(h=1),s();const g=e.getBoundingClientRect(),{left:w,top:d,width:f,height:m}=g;if(p||o(),!f||!m)return;const k=Mc(d),S=Mc(i.clientWidth-(w+f)),_=Mc(i.clientHeight-(d+m)),b=Mc(w),C={rootMargin:-k+"px "+-S+"px "+-_+"px "+-b+"px",threshold:En(0,ei(1,h))||1};let N=!0;function j(L){const P=L[0].intersectionRatio;if(P!==h){if(!N)return u();P?u(!1,P):a=setTimeout(()=>{u(!1,1e-7)},1e3)}P===1&&!z1(g,e.getBoundingClientRect())&&u(),N=!1}try{n=new IntersectionObserver(j,{...C,root:i.ownerDocument})}catch{n=new IntersectionObserver(j,C)}n.observe(e)}return u(!0),s}function UC(e,o,n,a){a===void 0&&(a={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:h=!1}=a,g=lg(e),w=i||s?[...g?au(g):[],...au(o)]:[];w.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const d=g&&p?$C(g,n):null;let f=-1,m=null;u&&(m=new ResizeObserver(b=>{let[x]=b;x&&x.target===g&&m&&(m.unobserve(o),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(o)})),n()}),g&&!h&&m.observe(g),m.observe(o));let k,S=h?Bi(e):null;h&&_();function _(){const b=Bi(e);S&&!z1(S,b)&&n(),S=b,k=requestAnimationFrame(_)}return n(),()=>{var b;w.forEach(x=>{i&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),d?.(),(b=m)==null||b.disconnect(),m=null,h&&cancelAnimationFrame(k)}}const HC=hC,KC=mC,WC=dC,VC=yC,GC=fC,mv=cC,YC=gC,ZC=(e,o,n)=>{const a=new Map,i={platform:qC,...n},s={...i.platform,_c:a};return uC(e,o,{...i,platform:s})};var QC=typeof document<"u",XC=function(){},Wc=QC?O.useLayoutEffect:XC;function sd(e,o){if(e===o)return!0;if(typeof e!=typeof o)return!1;if(typeof e=="function"&&e.toString()===o.toString())return!0;let n,a,i;if(e&&o&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==o.length)return!1;for(a=n;a--!==0;)if(!sd(e[a],o[a]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(o).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(o,i[a]))return!1;for(a=n;a--!==0;){const s=i[a];if(!(s==="_owner"&&e.$$typeof)&&!sd(e[s],o[s]))return!1}return!0}return e!==e&&o!==o}function B1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gv(e,o){const n=B1(e);return Math.round(o*n)/n}function vp(e){const o=O.useRef(e);return Wc(()=>{o.current=e}),o}function JC(e){e===void 0&&(e={});const{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:i,elements:{reference:s,floating:u}={},transform:p=!0,whileElementsMounted:h,open:g}=e,[w,d]=O.useState({x:0,y:0,strategy:n,placement:o,middlewareData:{},isPositioned:!1}),[f,m]=O.useState(a);sd(f,a)||m(a);const[k,S]=O.useState(null),[_,b]=O.useState(null),x=O.useCallback(Z=>{Z!==L.current&&(L.current=Z,S(Z))},[]),C=O.useCallback(Z=>{Z!==P.current&&(P.current=Z,b(Z))},[]),N=s||k,j=u||_,L=O.useRef(null),P=O.useRef(null),z=O.useRef(w),H=h!=null,F=vp(h),T=vp(i),D=vp(g),B=O.useCallback(()=>{if(!L.current||!P.current)return;const Z={placement:o,strategy:n,middleware:f};T.current&&(Z.platform=T.current),ZC(L.current,P.current,Z).then(J=>{const V={...J,isPositioned:D.current!==!1};$.current&&!sd(z.current,V)&&(z.current=V,yd.flushSync(()=>{d(V)}))})},[f,o,n,T,D]);Wc(()=>{g===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,d(Z=>({...Z,isPositioned:!1})))},[g]);const $=O.useRef(!1);Wc(()=>($.current=!0,()=>{$.current=!1}),[]),Wc(()=>{if(N&&(L.current=N),j&&(P.current=j),N&&j){if(F.current)return F.current(N,j,B);B()}},[N,j,B,F,H]);const W=O.useMemo(()=>({reference:L,floating:P,setReference:x,setFloating:C}),[x,C]),Q=O.useMemo(()=>({reference:N,floating:j}),[N,j]),te=O.useMemo(()=>{const Z={position:n,left:0,top:0};if(!Q.floating)return Z;const J=gv(Q.floating,w.x),V=gv(Q.floating,w.y);return p?{...Z,transform:"translate("+J+"px, "+V+"px)",...B1(Q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:J,top:V}},[n,p,Q.floating,w.x,w.y]);return O.useMemo(()=>({...w,update:B,refs:W,elements:Q,floatingStyles:te}),[w,B,W,Q,te])}const e5=e=>{function o(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:a,padding:i}=typeof e=="function"?e(n):e;return a&&o(a)?a.current!=null?mv({element:a.current,padding:i}).fn(n):{}:a?mv({element:a,padding:i}).fn(n):{}}}},t5=(e,o)=>({...HC(e),options:[e,o]}),r5=(e,o)=>({...KC(e),options:[e,o]}),n5=(e,o)=>({...YC(e),options:[e,o]}),o5=(e,o)=>({...WC(e),options:[e,o]}),a5=(e,o)=>({...VC(e),options:[e,o]}),i5=(e,o)=>({...GC(e),options:[e,o]}),s5=(e,o)=>({...e5(e),options:[e,o]});var l5="Arrow",q1=O.forwardRef((e,o)=>{const{children:n,width:a=10,height:i=5,...s}=e;return c.jsx(Hn.svg,{...s,ref:o,width:a,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});q1.displayName=l5;var u5=q1;function $1(e){const[o,n]=O.useState(void 0);return zi(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let u,p;if("borderBoxSize"in s){const h=s.borderBoxSize,g=Array.isArray(h)?h[0]:h;u=g.inlineSize,p=g.blockSize}else u=e.offsetWidth,p=e.offsetHeight;n({width:u,height:p})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else n(void 0)},[e]),o}var ug="Popper",[U1,H1]=Nd(ug),[c5,K1]=U1(ug),W1=e=>{const{__scopePopper:o,children:n}=e,[a,i]=O.useState(null);return c.jsx(c5,{scope:o,anchor:a,onAnchorChange:i,children:n})};W1.displayName=ug;var V1="PopperAnchor",G1=O.forwardRef((e,o)=>{const{__scopePopper:n,virtualRef:a,...i}=e,s=K1(V1,n),u=O.useRef(null),p=an(o,u),h=O.useRef(null);return O.useEffect(()=>{const g=h.current;h.current=a?.current||u.current,g!==h.current&&s.onAnchorChange(h.current)}),a?null:c.jsx(Hn.div,{...i,ref:p})});G1.displayName=V1;var cg="PopperContent",[d5,f5]=U1(cg),Y1=O.forwardRef((e,o)=>{const{__scopePopper:n,side:a="bottom",sideOffset:i=0,align:s="center",alignOffset:u=0,arrowPadding:p=0,avoidCollisions:h=!0,collisionBoundary:g=[],collisionPadding:w=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:k,...S}=e,_=K1(cg,n),[b,x]=O.useState(null),C=an(o,ne=>x(ne)),[N,j]=O.useState(null),L=$1(N),P=L?.width??0,z=L?.height??0,H=a+(s!=="center"?"-"+s:""),F=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},T=Array.isArray(g)?g:[g],D=T.length>0,B={padding:F,boundary:T.filter(h5),altBoundary:D},{refs:$,floatingStyles:W,placement:Q,isPositioned:te,middlewareData:Z}=JC({strategy:"fixed",placement:H,whileElementsMounted:(...ne)=>UC(...ne,{animationFrame:m==="always"}),elements:{reference:_.anchor},middleware:[t5({mainAxis:i+z,alignmentAxis:u}),h&&r5({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?n5():void 0,...B}),h&&o5({...B}),a5({...B,apply:({elements:ne,rects:ce,availableWidth:ae,availableHeight:Ae})=>{const{width:Ie,height:je}=ce.reference,ze=ne.floating.style;ze.setProperty("--radix-popper-available-width",`${ae}px`),ze.setProperty("--radix-popper-available-height",`${Ae}px`),ze.setProperty("--radix-popper-anchor-width",`${Ie}px`),ze.setProperty("--radix-popper-anchor-height",`${je}px`)}}),N&&s5({element:N,padding:p}),m5({arrowWidth:P,arrowHeight:z}),f&&i5({strategy:"referenceHidden",...B})]}),[J,V]=X1(Q),M=Ed(k);zi(()=>{te&&M?.()},[te,M]);const K=Z.arrow?.x,X=Z.arrow?.y,ie=Z.arrow?.centerOffset!==0,[oe,ee]=O.useState();return zi(()=>{b&&ee(window.getComputedStyle(b).zIndex)},[b]),c.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:te?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[Z.transformOrigin?.x,Z.transformOrigin?.y].join(" "),...Z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(d5,{scope:n,placedSide:J,onArrowChange:j,arrowX:K,arrowY:X,shouldHideArrow:ie,children:c.jsx(Hn.div,{"data-side":J,"data-align":V,...S,ref:C,style:{...S.style,animation:te?void 0:"none"}})})})});Y1.displayName=cg;var Z1="PopperArrow",p5={top:"bottom",right:"left",bottom:"top",left:"r
272ight"},Q1=O.forwardRef(function(o,n){const{__scopePopper:a,...i}=o,s=f5(Z1,a),u=p5[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[u]: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:c.jsx(u5,{...i,ref:n,style:{...i.style,display:"block"}})})});Q1.displayName=Z1;function h5(e){return e!==null}var m5=e=>({name:"transformOrigin",options:e,fn(o){const{placement:n,rects:a,middlewareData:i}=o,u=i.arrow?.centerOffset!==0,p=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[g,w]=X1(n),d={start:"0%",center:"50%",end:"100%"}[w],f=(i.arrow?.x??0)+p/2,m=(i.arrow?.y??0)+h/2;let k="",S="";return g==="bottom"?(k=u?d:`${f}px`,S=`${-h}px`):g==="top"?(k=u?d:`${f}px`,S=`${a.floating.height+h}px`):g==="right"?(k=`${-h}px`,S=u?d:`${m}px`):g==="left"&&(k=`${a.floating.width+h}px`,S=u?d:`${m}px`),{data:{x:k,y:S}}}});function X1(e){const[o,n="center"]=e.split("-");return[o,n]}var g5=W1,y5=G1,w5=Y1,v5=Q1;function b5(e,o){return O.useReducer((n,a)=>o[n][a]??n,e)}var J1=e=>{const{present:o,children:n}=e,a=x5(o),i=typeof n=="function"?n({present:a.isPresent}):O.Children.only(n),s=an(a.ref,k5(i));return typeof n=="function"||a.isPresent?O.cloneElement(i,{ref:s}):null};J1.displayName="Presence";function x5(e){const[o,n]=O.useState(),a=O.useRef(null),i=O.useRef(e),s=O.useRef("none"),u=e?"mounted":"unmounted",[p,h]=b5(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return O.useEffect(()=>{const g=Ic(a.current);s.current=p==="mounted"?g:"none"},[p]),zi(()=>{const g=a.current,w=i.current;if(w!==e){const f=s.current,m=Ic(g);e?h("MOUNT"):m==="none"||g?.display==="none"?h("UNMOUNT"):h(w&&f!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,h]),zi(()=>{if(o){let g;const w=o.ownerDocument.defaultView??window,d=m=>{const S=Ic(a.current).includes(CSS.escape(m.animationName));if(m.target===o&&S&&(h("ANIMATION_END"),!i.current)){const _=o.style.animationFillMode;o.style.animationFillMode="forwards",g=w.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=_)})}},f=m=>{m.target===o&&(s.current=Ic(a.current))};return o.addEventListener("animationstart",f),o.addEventListener("animationcancel",d),o.addEventListener("animationend",d),()=>{w.clearTimeout(g),o.removeEventListener("animationstart",f),o.removeEventListener("animationcancel",d),o.removeEventListener("animationend",d)}}else h("ANIMATION_END")},[o,h]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:O.useCallback(g=>{a.current=g?getComputedStyle(g):null,n(g)},[])}}function Ic(e){return e?.animationName||"none"}function k5(e){let o=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=o&&"isReactWarning"in o&&o.isReactWarning;return n?e.ref:(o=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=o&&"isReactWarning"in o&&o.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var S5=Symbol("radix.slottable");function _5(e){const o=({children:n})=>c.jsx(c.Fragment,{children:n});return o.displayName=`${e}.Slottable`,o.__radixId=S5,o}var N5=Lm[" useInsertionEffect ".trim().toString()]||zi;function ex({prop:e,defaultProp:o,onChange:n=()=>{},caller:a}){const[i,s,u]=E5({defaultProp:o,onChange:n}),p=e!==void 0,h=p?e:i;{const w=O.useRef(e!==void 0);O.useEffect(()=>{const d=w.current;d!==p&&console.warn(`${a} is changing from ${d?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),w.current=p},[p,a])}const g=O.useCallback(w=>{if(p){const d=C5(w)?w(e):w;d!==e&&u.current?.(d)}else s(w)},[p,e,s,u]);return[h,g]}function E5({defaultProp:e,onChange:o}){const[n,a]=O.useState(e),i=O.useRef(n),s=O.useRef(o);return N5(()=>{s.current=o},[o]),O.useEffect(()=>{i.current!==n&&(s.current?.(n),i.current=n)},[n,i]),[n,a,s]}function C5(e){return typeof e=="function"}var A5=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"}),j5="VisuallyHidden",tx=O.forwardRef((e,o)=>c.jsx(Hn.span,{...e,ref:o,style:{...A5,...e.style}}));tx.displayName=j5;var T5=tx,[Od]=Nd("Tooltip",[H1]),Pd=H1(),rx="TooltipProvider",O5=700,vm="tooltip.open",[P5,dg]=Od(rx),nx=e=>{const{__scopeTooltip:o,delayDuration:n=O5,skipDelayDuration:a=300,disableHoverableContent:i=!1,children:s}=e,u=O.useRef(!0),p=O.useRef(!1),h=O.useRef(0);return O.useEffect(()=>{const g=h.current;return()=>window.clearTimeout(g)},[]),c.jsx(P5,{scope:o,isOpenDelayedRef:u,delayDuration:n,onOpen:O.useCallback(()=>{window.clearTimeout(h.current),u.current=!1},[]),onClose:O.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>u.current=!0,a)},[a]),isPointerInTransitRef:p,onPointerInTransitChange:O.useCallback(g=>{p.current=g}
vendor: 7,218 bytes, line 272
272,[]),disableHoverableContent:i,children:s})};nx.displayName=rx;var iu="Tooltip",[R5,Rd]=Od(iu),ox=e=>{const{__scopeTooltip:o,children:n,open:a,defaultOpen:i,onOpenChange:s,disableHoverableContent:u,delayDuration:p}=e,h=dg(iu,e.__scopeTooltip),g=Pd(o),[w,d]=O.useState(null),f=Q3(),m=O.useRef(0),k=u??h.disableHoverableContent,S=p??h.delayDuration,_=O.useRef(!1),[b,x]=ex({prop:a,defaultProp:i??!1,onChange:P=>{P?(h.onOpen(),document.dispatchEvent(new CustomEvent(vm))):h.onClose(),s?.(P)},caller:iu}),C=O.useMemo(()=>b?_.current?"delayed-open":"instant-open":"closed",[b]),N=O.useCallback(()=>{window.clearTimeout(m.current),m.current=0,_.current=!1,x(!0)},[x]),j=O.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),L=O.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{_.current=!0,x(!0),m.current=0},S)},[S,x]);return O.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),c.jsx(g5,{...g,children:c.jsx(R5,{scope:o,contentId:f,open:b,stateAttribute:C,trigger:w,onTriggerChange:d,onTriggerEnter:O.useCallback(()=>{h.isOpenDelayedRef.current?L():N()},[h.isOpenDelayedRef,L,N]),onTriggerLeave:O.useCallback(()=>{k?j():(window.clearTimeout(m.current),m.current=0)},[j,k]),onOpen:N,onClose:j,disableHoverableContent:k,children:n})})};ox.displayName=iu;var bm="TooltipTrigger",ax=O.forwardRef((e,o)=>{const{__scopeTooltip:n,...a}=e,i=Rd(bm,n),s=dg(bm,n),u=Pd(n),p=O.useRef(null),h=an(o,p,i.onTriggerChange),g=O.useRef(!1),w=O.useRef(!1),d=O.useCallback(()=>g.current=!1,[]);return O.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),c.jsx(y5,{asChild:!0,...u,children:c.jsx(Hn.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...a,ref:h,onPointerMove:on(e.onPointerMove,f=>{f.pointerType!=="touch"&&!w.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),w.current=!0)}),onPointerLeave:on(e.onPointerLeave,()=>{i.onTriggerLeave(),w.current=!1}),onPointerDown:on(e.onPointerDown,()=>{i.open&&i.onClose(),g.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:on(e.onFocus,()=>{g.current||i.onOpen()}),onBlur:on(e.onBlur,i.onClose),onClick:on(e.onClick,i.onClose)})})});ax.displayName=bm;var D5="TooltipPortal",[VP,M5]=Od(D5,{forceMount:void 0}),Ds="TooltipContent",ix=O.forwardRef((e,o)=>{const n=M5(Ds,e.__scopeTooltip),{forceMount:a=n.forceMount,side:i="top",...s}=e,u=Rd(Ds,e.__scopeTooltip);return c.jsx(J1,{present:a||u.open,children:u.disableHoverableContent?c.jsx(sx,{side:i,...s,ref:o}):c.jsx(I5,{side:i,...s,ref:o})})}),I5=O.forwardRef((e,o)=>{const n=Rd(Ds,e.__scopeTooltip),a=dg(Ds,e.__scopeTooltip),i=O.useRef(null),s=an(o,i),[u,p]=O.useState(null),{trigger:h,onClose:g}=n,w=i.current,{onPointerInTransitChange:d}=a,f=O.useCallback(()=>{p(null),d(!1)},[d]),m=O.useCallback((k,S)=>{const _=k.currentTarget,b={x:k.clientX,y:k.clientY},x=q5(b,_.getBoundingClientRect()),C=$5(b,x),N=U5(S.getBoundingClientRect()),j=K5([...C,...N]);p(j),d(!0)},[d]);return O.useEffect(()=>()=>f(),[f]),O.useEffect(()=>{if(h&&w){const k=_=>m(_,w),S=_=>m(_,h);return h.addEventListener("pointerleave",k),w.addEventListener("pointerleave",S),()=>{h.removeEventListener("pointerleave",k),w.removeEventListener("pointerleave",S)}}},[h,w,m,f]),O.useEffect(()=>{if(u){const k=S=>{const _=S.target,b={x:S.clientX,y:S.clientY},x=h?.contains(_)||w?.contains(_),C=!H5(b,u);x?f():C&&(f(),g())};return document.addEventListener("pointermove",k),()=>document.removeEventListener("pointermove",k)}},[h,w,u,g,f]),c.jsx(sx,{...e,ref:s})}),[L5,F5]=Od(iu,{isInside:!1}),z5=_5("TooltipContent"),sx=O.forwardRef((e,o)=>{const{__scopeTooltip:n,children:a,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:u,...p}=e,h=Rd(Ds,n),g=Pd(n),{onClose:w}=h;return O.useEffect(()=>(document.addEventListener(vm,w),()=>document.removeEventListener(vm,w)),[w]),O.useEffect(()=>{if(h.trigger){const d=f=>{f.target?.contains(h.trigger)&&w()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[h.trigger,w]),c.jsx(A1,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:d=>d.preventDefault(),onDismiss:w,children:c.jsxs(w5,{"data-state":h.stateAttribute,...g,...p,ref:o,style:{...p.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:[c.jsx(z5,{children:a}),c.jsx(L5,{scope:n,isInside:!0,children:c.jsx(T5,{id:h.contentId,role:"tooltip",children:i||a})})]})})});ix.displayName=Ds;var lx="TooltipArrow",B5=O.forwardRef((e,o)=>{const{__scopeTooltip:n,...a}=e,i=Pd(n);return F5(lx,n).isInside?null:c.jsx(v5,{...i,...a,ref:o})});B5.displayName=lx;function q5(e,o){const n=Math.abs(o.top-e.y),a=Math.abs(o.bottom-e.y),i=Math.abs(o.right-e.x),s=Math.abs(o.left-e.x);switch(Math.min(n,a,i,s)){case s:return"left";case i:return"right";case n:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function $5(e,o,n=5){const a=[];switch(o){case"top":a.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":a.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":a.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":a.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return a}function U5(e){const{top:o,right:n,bottom:a,left:i}=e;return[{x:i,y:o},{x:n,y:o},{x:n,y:a},{x:i,y:a}]}function H5(e,o){const{x:n,y:a}=e;let i=!1;for(let s=0,u=o.length-1;s<o.length;u=s++){const p=o[s],h=o[u],g=p.x,w=p.y,d=h.x,f=h.y;w>a!=f>a&&n<(d-g)*(a-w)/(f-w)+g&&(i=!i)}return i}function K5(e){const o=e.slice();return o.sort((n,a)=>n.x<a.x?-1:n.x>a.x?1:n.y<a.y?-1:n.y>a.y?1:0),W5(o)}function W5(e){if(e.length<=1)return e.slice();const o=[];for(let a=0;a<e.length;a++){const i=e[a];for(;o.length>=2;){const s=o[o.length-1],u=o[o.length-2];if((s.x-u.x)*(i.y-u.y)>=(s.y-u.y)*(i.x-u.x))o.pop();else break}o.push(i)}o.pop();const n=[];for(let a=e.length-1;a>=0;a--){const i=e[a];for(;n.length>=2;){const s=n[n.length-1],u=n[n.length-2];if((s.x-u.x)*(i.y-u.y)>=(s.y-u.y)*(i.x-u.x))n.pop();else break}n.push(i)}return n.pop(),o.length===1&&n.length===1&&o[0].x===n[0].x&&o[0].y===n[0].y?o:o.concat(n)}var V5=nx,G5=ox,Y5=ax,ux=ix;const Z5=V5,Q5=G5,X5=Y5,cx=O.forwardRef(({className:e,sideOffset:o=4,...n},a)=>c.jsx(ux,{ref:a,sideOffset:o,className:Un("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),...n}));cx.displayName=ux.displayName;const Dr=O.forwardRef(({className:e,type:o,...n},a)=>c.jsx("input",{type:o,className:Un("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
272ing-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-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),ref:a,...n}));Dr.displayName="Input";const Lc="FK Grotesk Mono, monospace",J5="Delcan Mono, monospace";function eA({char:e}){return c.jsxs("span",{style:{position:"relative",display:"inline-block",width:"2.4rem",height:"3.4rem",margin:"0 2px",borderRadius:6,background:"#1a1a1a",color:"#f5f3ef",overflow:"hidden",perspective:"140px"},children:[c.jsx("span",{style:{position:"absolute",left:0,right:0,top:"50%",height:1,background:"rgba(0,0,0,0.5)",zIndex:2}}),c.jsx("span",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:J5,fontSize:"2.5rem",lineHeight:1,transformOrigin:"center",animation:"pbflap 110ms ease-out"},children:e},e)]})}function tA({value:e}){const o=String(Math.max(0,Math.floor(e))),[n,a]=O.useState(()=>o.split("").map(()=>"0"));return O.useEffect(()=>{const i=o.split("").map(Number);a(i.map(()=>"0"));const s=[];return i.forEach((u,p)=>{let h=0,g=0;const w=6+p*5,d=setInterval(()=>{h=(h+1)%10,g+=1,a(f=>{const m=[...f];return m[p]=String(h),m}),g>=w&&h===u&&clearInterval(d)},55);s.push(d)}),()=>s.forEach(clearInterval)},[o]),c.jsx("div",{style:{display:"flex",justifyContent:"center"},"aria-label":o,children:n.map((i,s)=>c.jsx(eA,{char:i},s))})}const rA=800,nA=3e3,oA=1500,aA=4e3;function iA(){const[e,o]=O.useState(""),[n,a]=O.useState(""),[i,s]=O.useState("prompt"),[u,p]=O.useState(!1),[h,g]=O.useState(!1),[w,d]=O.useState(!1),[f,m]=O.useState(null),[k,S]=O.useState(null),{addPrompt:_,prompts:b}=$n();O.useEffect(()=>{const D=setInterval(()=>{d(!0);const B=setTimeout(()=>d(!1),oA);return()=>clearTimeout(B)},aA);return()=>clearInterval(D)},[]);const x=O.useCallback(D=>{const B=D.trim();return B?B.length>xs?(st.error(`Prompt is too long. Please keep it under ${xs} characters.`),!1):!0:!1},[]),C=O.useCallback(()=>{o(""),a(""),s("prompt"),m(null)},[]),N=O.useCallback(()=>{S(null),s("email"),m(null)},[]),j=O.useCallback(D=>{if(D.preventDefault(),!x(e))return;const B=c3(e,b);if(B){S(B);return}N()},[e,x,b,N]),L=O.useCallback(D=>{const B=D.trim();return B?B.length>254?(m("Email address is too long"),!1):Bw.test(B)?(m(null),!0):(m("Please enter a valid email address"),!1):(m("Please enter your email so we can notify you."),!1)},[]),P=O.useCallback(D=>{a(D.target.value),f&&m(null)},[f]),z=O.useCallback(async D=>{if(D.preventDefault(),!x(e)){s("prompt");return}if(L(n)){g(!0),p(!0);try{await _(e.trim(),n.trim()),setTimeout(()=>{s("complete"),g(!1),p(!1),setTimeout(C,nA)},rA)}catch(B){console.error("Error submitting prompt:",B),st.error("Failed to submit prompt"),g(!1),p(!1)}}},[e,n,x,L,_,C]),H=O.useCallback(D=>{o(D.target.value)},[]),F=e.trim().length>0&&e.trim().length<=xs,T=n.trim().length>0&&Bw.test(n.trim());return c.jsxs("div",{className:"fixed inset-0 flex items-center justify-center",children:[c.jsxs("div",{className:"w-full max-w-2xl px-6",children:[i==="prompt"&&c.jsx("form",{onSubmit:j,noValidate:!0,children:c.jsxs("div",{className:`relative transition-all duration-400 ${h?"opacity-60 scale-[0.98]":"opacity-100 scale-100"}`,children:[F&&c.jsx("div",{className:"absolute -inset-[2px] rounded-[32px] blur-md overflow-hidden","aria-hidden":"true",children:c.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-foreground/50 to-transparent",style:{width:"200%",animation:"flowGlow 2.5s ease-in-out infinite"}})}
272),c.jsxs("div",{className:"relative border border-foreground/30 rounded-[36px] px-6 md:px-9 py-2.5 md:py-3 pr-2.5 md:pr-3 flex items-center gap-2 md:gap-4 bg-background w-full max-w-2xl mx-auto min-h-[48px] md:min-h-[56px]",children:[c.jsx("label",{htmlFor:"prompt-input",className:"sr-only",children:"Enter your drawing prompt"}),c.jsx(Dr,{id:"prompt-input",value:e,onChange:H,placeholder:"What should I draw for you today?",className:"bg-transparent border-none text-foreground placeholder:text-muted-foreground focus-visible:ring-0 focus-visible:ring-offset-0 px-0 flex-1 text-xl md:text-2xl h-7 md:h-8",style:{fontFamily:"Delcan Mono, monospace"},autoFocus:!0,disabled:h,maxLength:xs,autoComplete:"off","aria-invalid":e.length>xs,"aria-describedby":e.length>400?"prompt-hint":void 0}),c.jsxs(Rt,{type:"submit",disabled:!F||h,className:`relative overflow-hidden text-white hover:opacity-90 disabled:opacity-50 rounded-full p-0 flex items-center justify-center shrink-0 transition-all duration-500 w-12 h-12 ${F?"bg-gradient-to-r from-[#e89bb5] to-[#8b95a6] animate-gradient":"bg-primary text-primary-foreground"}`,"aria-label":"Submit prompt",children:[c.jsx("div",{className:`absolute inset-0 rounded-full transition-opacity duration-700 pointer-events-none ${w?"opacity-100":"opacity-0"}`,style:{background:"radial-gradient(circle, rgba(232, 155, 181, 0.6) 0%, rgba(232, 155, 181, 0.3) 50%, transparent 70%)"},"aria-hidden":"true"}),h?c.jsx(rr,{className:"w-7 h-7 relative z-10 animate-spin","aria-hidden":"true"}):c.jsx(Yw,{className:"w-7 h-7 relative z-10","aria-hidden":"true"})]})]}),e.length>400&&c.jsxs("div",{id:"prompt-hint",className:"text-xs text-muted-foreground/60 mt-2 px-9",children:[xs-e.length," characters remaining"]})]})}),i==="email"&&c.jsx("form",{onSubmit:z,noValidate:!0,children:c.jsxs("div",{className:`relative transition-all duration-400 ${h?"opacity-60 scale-[0.98]":"opacity-100 scale-100"}`,children:[T&&c.jsx("div",{className:"absolute -inset-[2px] rounded-[32px] blur-md overflow-hidden","aria-hidden":"true",children:c.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-foreground/50 to-transparent",style:{width:"200%",animation:"flowGlow 2.5s ease-in-out infinite"}})}
272),c.jsxs("div",{className:"relative border border-foreground/30 rounded-[36px] px-6 md:px-9 py-2.5 md:py-3 pr-2.5 md:pr-3 flex items-center gap-2 md:gap-4 bg-background w-full max-w-2xl mx-auto min-h-[48px] md:min-h-[56px]",children:[c.jsx("label",{htmlFor:"prompt-email",className:"sr-only",children:"Enter your email address"}),c.jsx(Dr,{id:"prompt-email",type:"email",value:n,onChange:P,placeholder:"Add your email here",className:"bg-transparent border-none text-foreground placeholder:text-muted-foreground focus-visible:ring-0 focus-visible:ring-offset-0 px-0 flex-1 text-lg md:text-xl h-7 md:h-8",style:{fontFamily:"Delcan Mono, monospace"},autoFocus:!0,disabled:u,maxLength:254,autoComplete:"email","aria-invalid":!!f,"aria-describedby":f?"email-error":void 0}),c.jsxs(Rt,{type:"submit",disabled:!T||u,className:`relative overflow-hidden text-white hover:opacity-90 disabled:opacity-50 rounded-full p-0 flex items-center justify-center shrink-0 transition-all duration-500 w-12 h-12 ${T?"bg-gradient-to-r from-[#e89bb5] to-[#8b95a6] animate-gradient":"bg-primary text-primary-foreground"}`,"aria-label":"Submit email",children:[c.jsx("div",{className:`absolute inset-0 rounded-full transition-opacity duration-700 pointer-events-none ${w?"opacity-100":"opacity-0"}`,style:{background:"radial-gradient(circle, rgba(232, 155, 181, 0.6) 0%, rgba(232, 155, 181, 0.3) 50%, transparent 70%)"},"aria-hidden":"true"}),u?c.jsx(rr,{className:"w-7 h-7 relative z-10 animate-spin","aria-hidden":"true"}):c.jsx(Yw,{className:"w-7 h-7 relative z-10","aria-hidden":"true"})]})]}),f&&c.jsx("div",{id:"email-error",className:"text-xs text-red-400 mt-2 px-9",role:"alert",children:f})]})}),i==="complete"&&c.jsx("div",{className:"relative animate-fadeIn",role:"status","aria-live":"polite",children:c.jsx("p",{className:"text-center text-foreground/70 no-underline text-xs uppercase tracking-wider",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Thanks! We'll email you as soon as someone draws your prompt."})})]}),k&&c.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center px-6 animate-fadeIn",style:{background:"rgba(20,18,15,0.55)"},role:"dialog","aria-modal":"true",children:c.jsxs("div",{className:"w-full max-w-sm rounded-2xl border border-border bg-background p-8 text-left shadow-2xl",children:[c.jsx("div",{className:"flex justify-start",children:c.jsx(tA,{value:k.count})}),c.jsxs("div",{className:"text-muted-foreground uppercase mt-3 mb-5",style:{fontFamily:Lc,fontSize:"9pt",letterSpacing:"0.12em"},children:[k.word,"-prompts already"]}),c.jsxs("p",{className:"text-foreground/80 mb-6",style:{fontFamily:Lc,fontSize:"12.5pt",lineHeight:1.6},children:["Your prompt has the word â",k.word,"â in it â and we already have"," ",k.count," ",k.word,"-prompts waiting to be drawn. Youâre in good company! Keep it, or write something else."]}),c.jsxs("div",{className:"flex flex-col gap-2.5",children:[c.jsx("button",{onClick:N,className:"rounded-full bg-foreground text-background py-3 px-6 text-left",style:{fontFamily:Lc,fontSize:"11pt"},children:"Keep it"}),c.jsx("button",{onClick:()=>S(null),className:"rounded-full border border-foreground text-foreground py-3 px-6 text-left hover:bg-accent transition-colors",style:{fontFamily:Lc,fontSize:"11pt"},children:"Write something else"})]})]})})]})}function sA(){return O.useEffect(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}),[]),c.jsx("div",{className:"h-screen w-full overflow-hidden flex",children:c.jsx(iA,{})})}const zn="FK Grotesk Mono, monospace",xm="Delcan Mono, monospace",Dl="Martina Plantijn, Georgia, serif",km="text-2xl",lA=[{label:"Buy on Amazon",href:"https://www.amazon.com/Prompt-Brush-1-0-First-Non-AI-Generative/dp/1797236636"},{label:"Buy on Bookshop",href:"https://bookshop.org/p/books/prompt-brush-1-0-the-first-non-ai-generative-art-model-pablo-delcan/37bcd4c4c4768218"},{label:"Buy at Barnes & Noble",href:"https://www.barnesandnoble.com/w/prompt-brush-10-pablo-delcan/1146793438?ean=9781797236636"}];function uA(){const[e,o]=O.useState(!1);return e?c.jsxs("div",{className:"w-full rounded-sm border border-border bg-card flex flex-col items-center justify-center text-center px-6",style:{aspectRatio:"5/7"},children:[c.jsx("div",{className:`text-foreground ${km} mb-3`,style:{fontFamily:xm},children:"Prompt-Brush 1.0"}),c.jsx("div",{className:"text-muted-foreground uppercase tracking-widest",style:{fontSize:"9pt",fontFamily:zn},children:"Add a photo at /public/book-cover.jpg"})]}):c.jsx("img",{src:"/book-cover.jpg",alt:"Prompt-Brush 1.0 â The First Non-AI Generative Art Model by Pablo Delcan",className:"w-full h-auto rounded-sm shadow-2xl",onError:()=>o(!0)})}function cA({href:e,label:o}){return c.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"block w-full text-center border border-border rounded-full px-6 py-3 text-foreground hover:bg-foreground hover:text-background transition-colors",style:{fontFamily:zn,fontSize:"11pt"},children:o})}function dA(){return c.jsx("div",{className:"h-screen overflow-y-auto",children:c.jsxs("div",{className:"container mx-auto px-4 py-16 md:py-24 max-w-6xl",children:[c.jsxs("div",{className:"grid md:grid-cols-[3fr_2fr] gap-10 md:gap-16 items-center",children:[c.jsx("div",{className:"max-w-sm sm:max-w-md md:max-w-none mx-auto w-full",children:c.jsx(uA,{})}),c.jsxs("div",{children:[c.jsx("div",{className:"text-muted-foreground uppercase tracking-widest mb-4",style:{fontSize:"9pt",fontFamily:zn},children:"The Book"}),c.jsx("h1",{className:`text-foreground ${km} leading-tight mb-2`,style:{fontFamily:xm},children:c.jsx(io,{to:"/collection",className:"hover:underline decoration-1 underline-offset-4",title:"Browse all 1,541 drawings",children:"Prompt-Brush 1.0"})}),c.jsx("p",{className:"text-foreground leading-snug mb-3",style:{fontFamily:zn,fontSize:"13pt"},children:"The First Non-AI Generative Art Model"}),c.jsx("p",{className:"text-muted-foreground uppercase tracking-widest mb-6",style:{fontSize:"9pt",fontFamily:zn},children:"by Pablo Delcan · Hardcover · â
4.2 (21)"}),c.jsx("p",{className:"text-foreground leading-relaxed mb-8 max-w-md",style:{fontFamily:Dl,fontSize:"15pt"},children:"In response to the rise of AI-generated art, designer Pablo Delcan takes a human-centered approach in this interpretive, illustrative collection of humorous, poignant, and universal ideas based on text prompts from the public."}),c.jsx("div",{className:"space-y-3 max-w-xs",children:lA.map(e=>c.jsx(cA,{href:e.href,label:e.label},e.href))}),c.jsx(io,{to:"/collection",className:"inline-flex items-center gap-2 mt-6 text-foreground hover:underline decoration-1 underline-offset-4",style:{fontFamily:zn,fontSize:"11pt"},children:"Or browse all 1,541 drawings free â"})]})]}),c.jsxs("div",{className:"mt-24 max-w-2xl",children:[c.jsx("div",{className:"text-muted-foreground uppercase tracking-widest mb-6",style:{fontSize:"9pt",fontFamily:zn},children:"About the book"}),c.jsxs("div",{className:"space-y-6 text-foreground leading-relaxed",style:{fontFamily:Dl,fontSize:"15pt"},children:[c.jsxs("p",{children:["Unlike AI tools that automatically generate art based on text prompts,"," ",c.jsx(io,{to:"/collection",className:"underline decoration-1 underline-offset-2 hover:opacity-70",children:"Prompt-Brush 1.0"})," ","celebrates the creativity and sensibility of the artist's work. Pablo Delcan invited the public to submit prompts, which he then manually interpreted and translated into images â a curated selection of submitted prompts and original artwork, every piece with a unique, human touch."]}),c.jsx("p",{children:"In Delcan's quirky and clever sensibility, prompts like â5 Second Ruleâ become an ice cream cone embedded with cigarette butts and debris. His hand-drawn interpretations emphasize the value of human creativity and effort over the speed and efficie
272ncy of AI models. The simplicity of the black ink drawings is direct and childlike â a refreshing departure from the increasingly detailed, hyperrealistic outputs of AI art generators."})]}),c.jsxs("blockquote",{className:"border-l-2 border-foreground pl-5 my-10 text-foreground",style:{fontFamily:Dl,fontSize:"20pt",lineHeight:1.3},children:["âInfinitely more layered than its AI-generated counterpart.â",c.jsx("span",{className:"block mt-2 text-muted-foreground uppercase tracking-widest",style:{fontSize:"9pt",fontFamily:zn},children:"Fast Company"})]}),c.jsx("p",{className:"text-foreground leading-relaxed",style:{fontFamily:Dl,fontSize:"15pt"},children:"This handsome slipcased volume makes an outstanding gift for artists and art advocates, graphic designers, creative professionals, educators, students, and anyone who values the creative process and is wary of AI's impact on the art world."})]}),c.jsxs("div",{className:"mt-24 max-w-2xl",children:[c.jsx("div",{className:"text-muted-foreground uppercase tracking-widest mb-6",style:{fontSize:"9pt",fontFamily:zn},children:"About the author"}),c.jsxs("div",{className:"space-y-6 text-foreground leading-relaxed",style:{fontFamily:Dl,fontSize:"15pt"},children:[c.jsx("p",{children:"Pablo Delcan is a graphic designer and art director originally from the island of Menorca, Spain. He is a visual contributor to The New York Times, where he communicates complex ideas through compelling imagery â designing numerous covers for The New York Times Magazine and illustrating hundreds of op-eds, some for noted figures such as Joe Biden, Mikhail Gorbachev, and John McWhorter, including the anonymous âI Am Part of the Resistance Inside the Trump Administrationâ op-ed that became a political sensation in 2018."}),c.jsx("p",{children:"His work has appeared in Le Monde, The Washington Post, and The Wall Street Journal. Forbes included him in their â30 Under 30 in Art and Style,â and he was honored as a Young Gun by the Art Directors Club in 2016. He lives with his young family in upstate New York, where he works out of his studio in a barn marked with large letters that state âTHIS PLACE.â"})]})]}),c.jsxs("div",{className:"mt-24 pt-12 border-t border-border",children:[c.jsx("div",{className:"text-muted-foreground uppercase tracking-widest mb-3",style:{fontSize:"9pt",fontFamily:zn},children:"Support the project"}),c.jsx("h2",{className:`text-foreground ${km} mb-4`,style:{fontFamily:xm},children:"Take a piece home"}),c.jsx("p",{className:"text-muted-foreground leading-relaxed mb-8 max-w-2xl",style:{fontFamily:zn,fontSize:"11pt"},children:"Prompt-Brush is an independent project. The zine, archival giclée prints of any of the 1,541 drawings, and the signed S.V.A. subway poster are all in the store â every order helps keep it going."}),c.jsx(io,{to:"/shop",className:"inline-block rounded-full px-8 py-3 bg-foreground text-background hover:opacity-80 transition-opacity",style:{fontFamily:zn,fontSize:"11pt"},children:"Visit the store â"})]})]})})}const Ml="FK Grotesk Mono, monospace",fA="Delcan Mono, monospace",pA="Martina Plantijn, Georgia, serif",hA="https://buy.stripe.com/6oUaEYe4L0uLe2C0Fx7kc0J",Ss=[{src:"/shop/zine/gray-00.webp",bg:"#D2CED6",label:"Cover"},{src:"/shop/zine/gray-01.webp",bg:"#E5E5E9",label:"Spread 1"},{src:"/shop/zine/gray-02.webp",bg:"#E4E3E8",label:"Spread 2"},{src:"/shop/zine/gray-03.webp",bg:"#ECECF0",label:"Spread 3"},{src:"/shop/zine/gray-04.webp",bg:"#ECECF0",label:"Spread 4"},{src:"/shop/zine/gray-05.webp",bg:"#ECECF0",label:"Spread 5"},{src:"/shop/zine/gray-06.webp",bg:"#ECECF0",label:"Spread 6"},{src:"/shop/zine/gray-07.webp",bg:"#ECECF0",label:"Spread 7"},{src:"/shop/zine/gray-08.webp",bg:"#E7E6EB",label:"Spread 8"},{src:"/shop/zine/gray-09.webp",bg:"#DDDCE2",label:"Spread 9"},{src:"/shop/zine/gray-10.webp",bg:"#DAD9DE",label:"Spread 10"},{src:"/shop/zine/gray-11.webp",bg:"#E8E7EC",label:"Back cover"}];function mA(){const[e,o]=O.useState(0),n=Ss[e],a=O.useCallback(s=>{o(u=>(u+s+Ss.length)%Ss.length)},[]);O.useEffect(()=>{const s=u=>
272{u.key==="ArrowRight"?a(1):u.key==="ArrowLeft"&&a(-1)};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[a]),O.useEffect(()=>{const s=new Image;s.src=Ss[(e+1)%Ss.length].src},[e]);const i="absolute top-1/2 -translate-y-1/2 w-11 h-11 rounded-full border border-black/10 bg-white/70 backdrop-blur text-black/70 hover:text-black hover:bg-white transition-colors";return c.jsxs("section",{className:"mt-14",children:[c.jsx("div",{className:"text-muted-foreground uppercase tracking-widest mb-4",style:{fontSize:"9pt",fontFamily:Ml},children:"New â Zine 1"}),c.jsxs("div",{className:"relative rounded-lg overflow-hidden border border-border",style:{backgroundColor:n.bg,transition:"background-color 0.35s ease"},children:[c.jsx("img",{src:n.src,alt:`Prompt-Brush 2.0 Zine 1 â ${n.label}`,onClick:()=>a(1),draggable:!1,className:"w-full cursor-pointer select-none",style:{aspectRatio:"16 / 9",objectFit:"contain"}},n.src),c.jsx("button",{onClick:()=>a(-1),"aria-label":"Previous page",className:`${i} left-4`,style:{fontFamily:Ml},children:"â"}),c.jsx("button",{onClick:()=>a(1),"aria-label":"Next page",className:`${i} right-4`,style:{fontFamily:Ml},children:"â"})]}),c.jsx("div",{className:"flex gap-2 mt-3 overflow-x-auto pb-1",children:Ss.map((s,u)=>c.jsx("button",{onClick:()=>o(u),"aria-label":s.label,"aria-current":u===e,className:"shrink-0 rounded overflow-hidden border transition-opacity",style:{width:64,aspectRatio:"16 / 9",backgroundColor:s.bg,borderColor:u===e?"rgba(0,0,0,0.55)":"rgba(0,0,0,0.12)",opacity:u===e?1:.55},children:c.jsx("img",{src:s.src,alt:"",className:"w-full h-full",style:{objectFit:"contain"},loading:"lazy"})},s.src))}),c.jsxs("div",{className:"mt-8 flex flex-col md:flex-row md:items-end md:justify-between gap-6",children:[c.jsxs("div",{className:"max-w-xl",children:[c.jsx("h2",{className:"text-foreground text-2xl leading-tight",style:{fontFamily:fA},children:"Prompt-Brush 2.0 / Zine 1"}),c.jsx("p",{className:"text-foreground leading-relaxed mt-3",style:{fontFamily:pA,fontSize:"15pt"},children:"Sixteen pages, newsprint. Prompts sent in by anyone, drawn by hand by someone else â Javier Jaén, Najeebah Al-Ghadban, Edmon de Haro, Ben Grandgenett and Santiago Carrasquilla printed next to anonymous handles, every drawing credited the same way."})]}),c.jsxs("div",{className:"shrink-0",children:[c.jsx("a",{href:hA,target:"_blank",rel:"noopener noreferrer",className:"block text-center rounded-full px-8 py-3 bg-foreground text-background hover:opacity-80 transition-opacity",style:{fontFamily:Ml,fontSize:"11pt"},children:"Buy · $25"}),c.jsx("div",{className:"text-muted-foreground text-center mt-2",style:{fontFamily:Ml,fontSize:"9pt"},children:"+ shipping"})]})]})]})}const Do="FK Grotesk Mono, monospace",dx="Delcan Mono, monospace",gA="Martina Plantijn, Georgia, serif",fx="text-2xl",yA=[{id:"book",name:"Prompt-Brush 1.0",kind:"Book",blurb:"The book. 1,541 prompts sent in by the public, every one drawn by hand. Hardcover, slipcased.",price:"",image:"/book-cover.jpg",paymentLink:"",to:"/book",cta:"Where to buy â"},{id:"giclee-print",name:"Giclée prints",kind:"Print",blurb:"Archival giclée, signed 13 à 16 in or larger unsigned (18 à 24, 24 à 32). From $90. Choose from all 1,541 drawings.",price:"",image:"/shop/giclee-print.jpg",paymentLink:"",to:"/collection",cta:"Browse the prints â"},{id:"sva-poster",name:"S.V.A. Subway Poster",kind:"Poster",blurb:"30 à 46 in. Signed poster from the 2025 NYC Subway campaign for the School of Visual Arts and Prompt-Brush 1.0.",price:"$100",image:"/shop/sva-poster.jpg",paymentLink:"https://buy.stripe.com/3cI7sMaSz2CT2jUgEv7kc04"},{id:"logo-tee",draft:!0,name:"Non-AI Tee",kind:"Apparel",blurb:"Heavyweight cotton, printed on demand.",price:"$35",image:"/shop/logo-tee.jpg",paymentLink:""},{id:"sticker-pack",draft:!0,name:"Sticker Pack",kind:"Object",blurb:"Five hand-drawn vinyl stickers.",price:"$10",image:"/shop/sticker-pack.jpg",paymentLink:""}];function wA({src:e,name:o}){const[n,a]=O.useState(!1);return n||!e?c.jsx("div",{className:"w-full rounded-lg border border-border bg-card flex items-center justify-center",style:{aspectRatio:"1/1"},children:c.jsx("span",{className:"text-muted-foreground uppercase tracking-widest",style:{fontSize:"9pt",fontFamily:Do},children:"Photo soon"})}):c.jsx("img",{src:e,alt:o,className:"w-full rounded-lg border border-border bg-card",style:{aspectRatio:"1/1",objectFit:"cover"},onError:()=>a(!0)})}function vA({p:e}){const o=!!e.paymentLink&&!e.soldOut;return c.jsxs("div",{className:"flex flex-col",children:[c.jsx(wA,{src:e.image,name:e.name}),c.jsxs("div",{className:"flex items-baseline justify-between mt-4",children:[c.jsx("div",{className:`text-foreground ${fx}`,style:{fontFamily:dx},children:e.name}),!!e.price&&c.jsx("div",{className:"text-foreground ml-3 shrink-0",style:{fontFamily:Do,fontSize:"12pt"},children:e.price})]}),c.jsx("div",{className:"text-muted-foreground uppercase tracking-widest mt-2",style:{fontSize:"9pt",fontFamily:Do},children:e.kind}),!!e.blurb&&c.jsx("p",{className:"text-muted-foreground leading-snug mt-2",style:{fontFamily:Do,fontSize:"10.5pt"},children:e.blurb}),e.to?c.jsx(io,{to:e.to,className:"block w-full text-center border border-border rounded-full px-6 py-3 mt-4 text-foreground hover:bg-foreground hover:text-background transition-colors",style:{fontFamily:Do,fontSize:"11pt"},children:e.cta||"View â"}):o?c.jsx("a",{href:e.paymentLink,target:"_blank",rel:"noopener noreferrer",className:"block w-full text-center border border-border rounded-full px-6 py-3 mt-4 text-foreground hover:bg-foreground hover:text-background transition-colors",style:{fontFamily:Do,fontSize:"11pt"},children:e.cta||`Buy · ${e.price}`}):c.jsx("div",{className:"block w-full text-center border border-border rounded-full px-6 py-3 mt-4 text-muted-foreground uppercase tracking-widest cursor-default",style:{fontFamily:Do,fontSize:"9pt"},children:e.soldOut?"Sold out":"Coming soon"})]})}function bA(){return c.jsx("div",{className:"h-screen overflow-y-auto",children:c.jsxs("div",{className:"container mx-auto px-4 py-16 md:py-24 max-w-5xl",children:[c.jsxs("div",{className:"max-w-2xl",children:[c.jsx("div",{className:"text-muted-foreground uppercase tracking-widest mb-4",style:{fontSize:"9pt",fontFamily:Do},children:"The Store"}),c.jsx("h1",{className:`text-foreground ${fx} leading-tight mb-3`,style:{fontFamily:dx},children:"The book, the zine, prints & posters"}),c.jsx("p",{className:"text-foreground leading-relaxed max-w-md",style:{fontFamily:gA,fontSize:"15pt"},children:"Take a piece of Prompt-Brush home. Everything is made by hand, never by AI â and every order helps keep this independent project going."})]}),c.jsx(mA,{}),c.jsx("div",{className:"mt-20 text-muted-foreground uppercase tracking-widest",style:{fontSize:"9pt",fontFamily:Do},children:"Also in the store"}),c.jsx("div",{className:"mt-8 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-10 md:gap-12",children:yA.f
272ilter(e=>!e.draft).map(e=>c.jsx(vA,{p:e},e.id))}),c.jsx("div",{className:"mt-20 pt-10 border-t border-border max-w-2xl",children:c.jsxs("p",{className:"text-muted-foreground leading-relaxed",style:{fontFamily:Do,fontSize:"10.5pt"},children:["Checkout is handled securely by Stripe, which collects your shipping address. The zine ships flat-rate; prints are made to order. Questions? Email"," ",c.jsx("a",{href:"mailto:[email protected]",className:"underline",children:"[email protected]"}),"."]})})]})})}const xA=JSON.parse('[{"page":2,"prompt":"A dolphin with a baseball hat","file":"draw-0002.webp"},{"page":3,"prompt":"A cat who has hit rock bottom","file":"draw-0003.webp"},{"page":4,"prompt":"Cats dancing around a fire","file":"draw-0004.webp"},{"page":5,"prompt":"random cup cafe, a coffee shop","file":"draw-0005.webp"},{"page":6,"prompt":"A chicken planting a flag on the moon.","file":"draw-0006.webp"},{"page":7,"prompt":"Cala San Esteban during summer","file":"draw-0007.webp"},{"page":8,"prompt":"A giraffe losing its balance","file":"draw-0008.webp"},{"page":9,"prompt":"Kites flying on Radio Tower Rd","file":"draw-0009.webp"},{"page":10,"prompt":"The letter A landing on the moon","file":"draw-0010.webp"},{"page":11,"prompt":"Two cacti that want to embrace","file":"draw-0011.webp"},{"page":12,"prompt":"A city made of clouds","file":"draw-0012.webp"},{"page":13,"prompt":"A pigeon dancing tango","file":"draw-0013.webp"},{"page":14,"prompt":"Pigeon Witch Convention","file":"draw-0014.webp"},{"page":15,"prompt":"A cat drawing a car","file":"draw-0015.webp"},{"page":16,"prompt":"cookie monster trying soup for the 1st time","file":"draw-0016.webp"},{"page":17,"prompt":"Elephant surfing in the ocean","file":"draw-0017.webp"},{"page":18,"prompt":"Godzilla and santa-claus dancing tango","file":"draw-0018.webp"},{"page":19,"prompt":"A portrait of me","file":"draw-0019.webp"},{"page":20,"prompt":"My soulmate","file":"draw-0020.webp"},{"page":21,"prompt":"Rabbit wears eye patch smoking a cigar crossing each of hind legs","file":"draw-0021.webp"},{"page":22,"prompt":"A dog dancing in a donut","file":"draw-0022.webp"},{"page":23,"prompt":"A matchstick riding a log","file":"draw-0023.webp"},{"page":24,"prompt":"Peas in a pod. But the peas are basketballs","file":"draw-0024.webp"},{"page":25,"prompt":"A bear painting on a tiny canvas","file":"draw-0025.webp"},{"page":26,"prompt":"Bite the bullet","file":"draw-0026.webp"},{"page":27,"prompt":"Pablo Delcan and his dad drawing together","file":"draw-0027.webp"},{"page":28,"prompt":"A dream remaining distant","file":"draw-0028.webp"},{"page":29,"prompt":"A fire on a cold morning.","file":"draw-0029.webp"},{"page":30,"prompt":"A daisy who is afraid of a butterfly","file":"draw-0030.webp"},{"page":31,"prompt":"A flower giving birth to a pencil","file":"draw-0031.webp"},{"page":32,"prompt":"A cat as The Godfather","file":"draw-0032.webp"},{"page":33,"prompt":"Happiness in a bowl","file":"draw-0033.webp"},{"page":34,"prompt":"A happy father","file":"draw-0034.webp"},{"page":35,"prompt":"Made up brand logo that would make you fall in love with it.","file":"draw-0035.webp"},{"page":36,"prompt":"Me","file":"draw-0036.webp"},{"page":37,"prompt":"Spaghetti without meatballs","file":"draw-0037.webp"},{"page":38,"prompt":"Needle thief.","file":"draw-0038.webp"},{"page":39,"prompt":"Sardines outside of a can","file":"draw-0039.webp"},{"page":40,"prompt":"Sisterhood","file":"draw-0040.webp"},{"page":41,"prompt":"The pleasure of sleeping","file":"draw-0041.webp"},{"page":42,"prompt":"An otter in winter","file":"draw-0042.webp"},{"page":43,"prompt":"Baltimore in the winter time","file":"draw-0043.webp"},{"page":44,"prompt":"World peace","file":"draw-0044.webp"},{"page":45,"prompt":"The wrong kind of baked beans","file":"draw-0045.webp"},{"page":46,"prompt":"A happy river filled with love and joy","file":"draw-0046.webp"},{"page":47,"prompt":"An ashtray on a motorbike","file":"draw-0047.webp"},{"page":48,"prompt":"Dark hope","file":"draw-0048.webp"},{"page":49,"prompt":"Bird with human eyes","file":"draw-0049.webp"},{"page":50,"prompt":"A massive ear actually listening to the world","file":"draw-0050.webp"},{"page":51,"prompt":"Fuck AI","file":"draw-0051.webp"},{"page":52,"prompt":"A t-rex doing a hand stand.","file":"draw-0052.webp"},{"page":53,"prompt":"A âNoâ to all jerks.","file":"draw-0053.webp"},{"page":54,"prompt":"A penguin in casual attire","file":"draw-0054.webp"},{"page":55,"prompt":"A very angry flower smoking!","file":"draw-0055.webp"},{"page":56,"prompt":"Sweet potato","file":"draw-0056.webp"},{"page":57,"prompt":"Broken raindrops","file":"draw-0057.webp"},{"page":58,"prompt":"A mother bird kissing a baby bird","file":"draw-0058.webp"}
272,{"page":59,"prompt":"A happy dog enjoying the newspaper.","file":"draw-0059.webp"},{"page":60,"prompt":"A pine tree that is relaxing.","file":"draw-0060.webp"},{"page":61,"prompt":"Foregiveness","file":"draw-0061.webp"},{"page":62,"prompt":"A horse without a skeleton.","file":"draw-0062.webp"},{"page":63,"prompt":"A face without a trace.","file":"draw-0063.webp"},{"page":64,"prompt":"A mirror looking at it self in a mirror","file":"draw-0064.webp"},{"page":65,"prompt":"Festive CatPig","file":"draw-0065.webp"},{"page":66,"prompt":"Candy cane eating the dog!","file":"draw-0066.webp"},{"page":67,"prompt":"A cow doing a bicycle kick","file":"draw-0067.webp"},{"page":68,"prompt":"A human being who is not aware of being a human being","file":"draw-0068.webp"},{"page":69,"prompt":"The perfect breakfast after a night out.","file":"draw-0069.webp"},{"page":70,"prompt":"A car jumping over a river","file":"draw-0070.webp"},{"page":71,"prompt":"RÃo playing drums Delcan & Co.","file":"draw-0071.webp"},{"page":72,"prompt":"Snakes on skates Delcan & Co.","file":"draw-0072.webp"},{"page":73,"prompt":"Pablo wondering all about life","file":"draw-0073.webp"},{"page":74,"prompt":"Bananas in pajamas Delcan & Co.","file":"draw-0074.webp"},{"page":75,"prompt":"Inside out zebra Delcan & Co.","file":"draw-0075.webp"},{"page":76,"prompt":"Zip it! Delcan & Co.","file":"draw-0076.webp"},{"page":77,"prompt":"Draw a gorilla doing the thumbs up","file":"draw-0077.webp"},{"page":78,"prompt":"A pocketfull of hope Delcan & Co.","file":"draw-0078.webp"},{"page":79,"prompt":"Double decker sandwich Delcan & Co.","file":"draw-0079.webp"},{"page":80,"prompt":"Spain is in pain Delcan & Co.","file":"draw-0080.webp"},{"page":81,"prompt":"Horses galloping down the street","file":"draw-0081.webp"},{"page":82,"prompt":"German man surfing a big wave in a small pond.","file":"draw-0082.webp"},{"page":83,"prompt":"A sisterhood of traveling pants","file":"draw-0083.webp"},{"page":84,"prompt":"Fog Delcan & Co.","file":"draw-0084.webp"},{"page":85,"prompt":"A grandmother with christmas lights","file":"draw-0085.webp"},{"page":86,"prompt":"Collective consciousness Delcan & Co.","file":"draw-0086.webp"},{"page":87,"prompt":"A chandelier shaped piñata Delcan & Co.","file":"draw-0087.webp"},{"page":88,"prompt":"A baby boy and a globe Delcan & Co.","file":"draw-0088.webp"},{"page":89,"prompt":"Christmas in a new language","file":"draw-0089.webp"},{"page":90,"prompt":"Italian greyhound eating pesto","file":"draw-0090.webp"},{"page":91,"prompt":"A groundhog meandering towards your yard","file":"draw-0091.webp"},{"page":92,"prompt":"Non-red tomato Delcan & Co.","file":"draw-0092.webp"},{"page":93,"prompt":"The world as a place of peace and love","file":"draw-0093.webp"},{"page":94,"prompt":"Draw me a lamb Delcan & Co.","file":"draw-0094.webp"},{"page":95,"prompt":"Hello world Delcan & Co.","file":"draw-0095.webp"},{"page":96,"prompt":"A family of turkeys eating a thanksgiving dinner Delcan & Co.","file":"draw-0096.webp"},{"page":97,"prompt":"A cat destroyed school Delcan & Co.","file":"draw-0097.webp"},{"page":98,"prompt":"Pablo Delcan & Co.","file":"draw-0098.webp"},{"page":99,"prompt":"Flamingo submarine Delcan & Co.","file":"draw-0099.webp"},{"page":100,"prompt":"5 second rule Delcan & Co.","file":"draw-0100.webp"},{"page":101,"prompt":"Rocket shit Delcan & Co.","file":"draw-0101.webp"},{"page":102,"prompt":"Fish eating sushi Delcan & Co.","file":"draw-0102.webp"},{"page":103,"prompt":"A bowling alley in the jungle Delcan & Co.","file":"draw-0103.webp"},{"page":104,"prompt":"Underwater disco Delcan & Co.","file":"draw-0104.webp"},{"page":105,"prompt":"A scuffy dog dreaming about themselves dreaming","file":"draw-0105.webp"},{"page":106,"prompt":"A rug made of joy Delcan & Co.","file":"draw-0106.webp"},{"page":107,"prompt":"Heart hugs Delcan & Co.","file":"draw-0107.webp"},{"page":108,"prompt":"A one second race. Delcan & Co.","file":"draw-0108.webp"},{"page":109,"prompt":"A breathing apparatus for fish to travel on land","file":"draw-0109.webp"},{"page":110,"prompt":"A cloud with feelings Delcan & Co.","file":"draw-0110.webp"},{"page":111,"prompt":"Marijuana pizza Delcan & Co.","file":"draw-0111.webp"},{"page":112,"prompt":"A frustrated artist eating his own ideas Delcan & Co.","file":"draw-0112.webp"},{"page":113,"prompt":"An artificial intelligence Delcan & Co.","file":"draw-0113.webp"},{"page":114,"prompt":"New year, same me Delcan & Co.","file":"draw-0114.webp"},{"page":115,"prompt":"Why are you still here? Delcan & Co.","file":"draw-0115.webp"},{"page":116,"prompt":"I like fruit Delcan & Co.","file":"draw-0116.webp"},{"page":117,"prompt":"Like, the handcuffs of our minds","file":"draw-0117.webp"},{"page":118,"prompt":"A glass tower overlooking a river and waterfall","file":"draw-0118.webp"},{"page":119,"prompt":"Dog party Delcan & Co.","file":"draw-0119.webp"},{"page":120,"prompt":"A sail boat running down wind","file":"draw-0120.webp"},{"page":121,"prompt":"internet Delcan & Co.","file":"draw-0121.webp"},{"page":122,"prompt":"A dog in a bathtub Delcan & Co.","file":"draw-0122.webp"},{"page":123,"prompt":"A frog concert Delcan & Co.","file":"draw-0123.
272webp"},{"page":124,"prompt":"A hoity-toity ostrich Delcan & Co.","file":"draw-0124.webp"},{"page":125,"prompt":"A glistening array of mycelial maps dancing beneath the forest floor","file":"draw-0125.webp"},{"page":126,"prompt":"A golden doodle racing a car","file":"draw-0126.webp"},{"page":127,"prompt":"A girl on a horse talking on the phone with a tiger on her shoulders and a fantasy landscape with mushrooms","file":"draw-0127.webp"},{"page":128,"prompt":"A man and a woman in the distance, looking up at a solar eclipse","file":"draw-0128.webp"},{"page":129,"prompt":"A floppy disk between two hamburger buns Delcan & Co.","file":"draw-0129.webp"},{"page":130,"prompt":"A courtroom drawing of a trial in progress Delcan & Co.","file":"draw-0130.webp"},{"page":131,"prompt":"A phone using a phone to make a phone call","file":"draw-0131.webp"},{"page":132,"prompt":"Schnauzer with one up and one ear down happy dog","file":"draw-0132.webp"},{"page":133,"prompt":"A one-hit wonder earworm Delcan & Co.","file":"draw-0133.webp"},{"page":134,"prompt":"A joyful dance Delcan & Co.","file":"draw-0134.webp"},{"page":135,"prompt":"Three men in a horse costume","file":"draw-0135.webp"},{"page":136,"prompt":"Draw a picture of a struggling commercial real estate industry looking forward to a new year, 2024","file":"draw-0136.webp"},{"page":137,"prompt":"A jaunty tree Delcan & Co.","file":"draw-0137.webp"},{"page":138,"prompt":"A sky filled with stars like judgmental eyes watching us all destroy ourselves","file":"draw-0138.webp"},{"page":139,"prompt":"A cool app icon Delcan & Co.","file":"draw-0139.webp"},{"page":140,"prompt":"A lonely dinosaur farting out heart shaped fart clouds","file":"draw-0140.webp"},{"page":141,"prompt":"A juicy steak playing baseball","file":"draw-0141.webp"},{"page":142,"prompt":"A cat helping a rabbit friend with their taxes","file":"draw-0142.webp"},{"page":143,"prompt":"A roflcopter Delcan & Co.","file":"draw-0143.webp"},{"page":144,"prompt":"A smiling boxer puppy Delcan & Co.","file":"draw-0144.webp"},{"page":145,"prompt":"Gritty, the mascot for the Philadelphia Flyers, in a bikini Delcan & Co.","file":"draw-0145.webp"},{"page":146,"prompt":"Grey and white tuxedo cat Delcan & Co.","file":"draw-0146.webp"},{"page":147,"prompt":"New York City if our planet had two suns (like in Star Wars)","file":"draw-0147.webp"},{"page":148,"prompt":"A grim reaper frustrated with his computer","file":"draw-0148.webp"},{"page":149,"prompt":"An eye looking through a keyhole","file":"draw-0149.webp"},{"page":150,"prompt":"A cookie with legs and a hat Delcan & Co.","file":"draw-0150.webp"},{"page":151,"prompt":"Aikido in space Delcan & Co.","file":"draw-0151.webp"},{"page":152,"prompt":"Cookie thatâs a monster Delcan & Co.","file":"draw-0152.webp"},{"page":153,"prompt":"A deer with a beer Delcan & Co.","file":"draw-0153.webp"},{"page":154,"prompt":"Can you do The Thinker, but contemporary? Delcan & Co.","file":"draw-0154.webp"},{"page":155,"prompt":"A mouse and a bunny are in love","file":"draw-0155.webp"},{"page":156,"prompt":"A cat with a lizard in its mouth","file":"draw-0156.webp"},{"page":157,"prompt":"A smiling old man Delcan & Co.","file":"draw-0157.webp"},{"page":158,"prompt":"Butterfly Delcan & Co.","file":"draw-0158.webp"},{"page":159,"prompt":"A person running in the forest","file":"draw-0159.webp"},{"page":160,"prompt":"A UFO beaming up a slice of pizza","file":"draw-0160.webp"},{"page":161,"prompt":"Longing Delcan & Co.","file":"draw-0161.webp"},{"page":162,"prompt":"Draw me working late at night, feeling my anger because I hate my co-workers","file":"draw-0162.webp"},{"page":163,"prompt":"Please draw me a tree house with two connected octagons as a floor plan","file":"draw-0163.webp"},{"page":164,"prompt":"A satellite that has a big dish antenna with a spider and a frog on it","file":"draw-0164.webp"},{"page":165,"prompt":"Please draw a crow perched on a power line, with a pair of tied-together running shoes also thrown over the line","file":"draw-0165.webp"},{"page":166,"prompt":"Please draw me a family portrait a man, a woman, and two girls","file":"draw-0166.webp"},{"page":167,"prompt":"A new idea Delcan & Co.","file":"draw-0167.webp"},{"page":168,"prompt":"Draw me a sketch of a human riding a dolphin","file":"draw-0168.webp"}
272,{"page":169,"prompt":"A school bus filled with balloons","file":"draw-0169.webp"},{"page":170,"prompt":"A pickle on roller blades Delcan & Co.","file":"draw-0170.webp"},{"page":171,"prompt":"A sad girl awake late in the night","file":"draw-0171.webp"},{"page":172,"prompt":"Making money without working","file":"draw-0172.webp"},{"page":173,"prompt":"A cocktail with old mac computers as ice","file":"draw-0173.webp"},{"page":174,"prompt":"Look at it! Delcan & Co.","file":"draw-0174.webp"},{"page":175,"prompt":"a devil-shaped banana Delcan & Co.","file":"draw-0175.webp"},{"page":176,"prompt":"A fat boy with glasses riding three bicycles Delcan & Co.","file":"draw-0176.webp"},{"page":177,"prompt":"Oh no! Itâs Batman! Delcan & Co.","file":"draw-0177.webp"},{"page":178,"prompt":"Two clouds making love Delcan & Co.","file":"draw-0178.webp"},{"page":179,"prompt":"A dick Delcan & Co.","file":"draw-0179.webp"},{"page":180,"prompt":"Could you draw bluey giving bandit (both from Bluey) a heart for Valentineâs day please","file":"draw-0180.webp"},{"page":181,"prompt":"A really buff guy struggling to pick up a feather","file":"draw-0181.webp"},{"page":182,"prompt":"a depiction of space to inspire my newborn.","file":"draw-0182.webp"},{"page":183,"prompt":"Too many giant noses on the earth","file":"draw-0183.webp"},{"page":184,"prompt":"Man with watermelon for a head","file":"draw-0184.webp"},{"page":185,"prompt":"Love Delcan & Co.","file":"draw-0185.webp"},{"page":186,"prompt":"A chicken with a severe cocain addiction","file":"draw-0186.webp"},{"page":187,"prompt":"A buff french fry Delcan & Co.","file":"draw-0187.webp"},{"page":188,"prompt":"A little alien guy in his flying spoon Delcan & Co.","file":"draw-0188.webp"},{"page":189,"prompt":"Version of a giving tree Delcan & Co.","file":"draw-0189.webp"},{"page":190,"prompt":"A connection between loved ones who canât be physically together","file":"draw-0190.webp"},{"page":191,"prompt":"A coffee mug with a face on it","file":"draw-0191.webp"},{"page":192,"prompt":"A jellyfish with an umbrella Delcan & Co.","file":"draw-0192.webp"},{"page":193,"prompt":"The meaning of life Delcan & Co.","file":"draw-0193.webp"},{"page":194,"prompt":"Draw a portrait of Charlie Brown in the style of Vincent Van Gogh","file":"draw-0194.webp"},{"page":195,"prompt":"Draw a cute Pikachu Delcan & Co.","file":"draw-0195.webp"},{"page":196,"prompt":"A person who doesnât want to go to work pretends to be happy every day","file":"draw-0196.webp"},{"page":197,"prompt":"A free hand Delcan & Co.","file":"draw-0197.webp"},{"page":198,"prompt":"Kintsugi octopus Delcan & Co.","file":"draw-0198.webp"},{"page":199,"prompt":"A boring picnic Delcan & Co.","file":"draw-0199.webp"},{"page":200,"prompt":"A goose with a scythe in its beak chasing the grim reaper","file":"draw-0200.webp"},{"page":201,"prompt":"A robot inputting a prompt on its computer for some human-generated artwork","file":"draw-0201.webp"},{"page":202,"prompt":"Silly magic fish that secretly live in your dishwasher","file":"draw-0202.webp"},{"page":203,"prompt":"A coffee mug that is functionally useless","file":"draw-0203.webp"},{"page":204,"prompt":"Aliens dancing Delcan & Co.","file":"draw-0204.webp"},{"page":205,"prompt":"Someone lost in their own mind","file":"draw-0205.webp"},{"page":206,"prompt":"A prompt brush arriving late Delcan & Co.","file":"draw-0206.webp"},{"page":207,"prompt":"Waiting for snow that never arrives","file":"draw-0207.webp"},{"page":208,"prompt":"a brand new animal species Delcan & Co.","file":"draw-0208.webp"},{"page":209,"prompt":"A bit of sorrow Delcan & Co.","file":"draw-0209.webp"},{"page":210,"prompt":"Coffee coffee coffee coffee Delcan & Co.","file":"draw-0210.webp"},{"page":211,"prompt":"Two people who were meant to be together","file":"draw-0211.webp"},{"page":212,"prompt":"sometimes I get so bored that I wanna scream","file":"draw-0212.webp"},{"page":213,"prompt":"A magic snail in a bottle Delcan & Co.","file":"draw-0213.webp"},{"page":214,"prompt":"aimlessness Delcan & Co.","file":"draw-0214.webp"},{"page":215,"prompt":"A fish that feeds on fear. Delcan & Co.","file":"draw-0215.webp"},{"page":216,"prompt":"Metal pipe falling sound effect","file":"draw-0216.webp"},{"page":217,"prompt":"Two rats in love, smoking and listening to music","file":"draw-0217.webp"},{"page":218,"prompt":"A cowboy hat that says the word fingers","file":"draw-0218.webp"},{"page":219,"prompt":"Brad Pitt as my new boyfriend","file":"draw-0219.webp"},{"page":220,"prompt":"a lady in her 20âs finding love in NYC","file":"draw-0220.webp"},{"page":221,"prompt":"Futuristic flooded Subway station","file":"draw-0221.webp"},{"page":222,"prompt":"A man kissing a woman, she secretly doesnât love him","file":"draw-0222.webp"},{"page":223,"prompt":"just donât Delcan & Co.","file":"draw-0223.webp"},{"page":224,"prompt":"It is what it is Delcan & Co.","file":"draw-0224.webp"}
272,{"page":225,"prompt":"An art director getting his haircut","file":"draw-0225.webp"},{"page":226,"prompt":"Feeling lost in the world but finally finding light Delcan & Co.","file":"draw-0226.webp"},{"page":227,"prompt":"A man finally finding love after years of looking","file":"draw-0227.webp"},{"page":228,"prompt":"A man with three arms Delcan & Co.","file":"draw-0228.webp"},{"page":229,"prompt":"what it feels like living through dark winter in Scotland","file":"draw-0229.webp"},{"page":230,"prompt":"broken hearted shark Delcan & Co.","file":"draw-0230.webp"},{"page":231,"prompt":"Existential terror is cozy Delcan & Co.","file":"draw-0231.webp"},{"page":232,"prompt":"reward Delcan & Co.","file":"draw-0232.webp"},{"page":233,"prompt":"fuck you dude Delcan & Co.","file":"draw-0233.webp"},{"page":234,"prompt":"doomed romance Delcan & Co.","file":"draw-0234.webp"},{"page":235,"prompt":"Meaningful Delcan & Co.","file":"draw-0235.webp"},{"page":236,"prompt":"Youâre feeling my pulse while Iâm feeling your pulse right back","file":"draw-0236.webp"},{"page":237,"prompt":"The sun eating itself please! Delcan & Co.","file":"draw-0237.webp"},{"page":238,"prompt":"10th wedding anniversary Delcan & Co.","file":"draw-0238.webp"},{"page":239,"prompt":"Death Delcan & Co.","file":"draw-0239.webp"},{"page":240,"prompt":"black diamond Delcan & Co.","file":"draw-0240.webp"},{"page":241,"prompt":"The beginning of it all Delcan & Co.","file":"draw-0241.webp"},{"page":242,"prompt":"Man and woman riding a bicycle to the moon","file":"draw-0242.webp"},{"page":243,"prompt":"Car Delcan & Co.","file":"draw-0243.webp"},{"page":244,"prompt":"Chicken drives apple shaped car","file":"draw-0244.webp"},{"page":245,"prompt":"Multiple melting clocks Delcan & Co.","file":"draw-0245.webp"},{"page":246,"prompt":"A squishy cactus Delcan & Co.","file":"draw-0246.webp"},{"page":247,"prompt":"An angry Person Delcan & Co.","file":"draw-0247.webp"},{"page":248,"prompt":"A fox catching a snowflake with its tongue","file":"draw-0248.webp"},{"page":249,"prompt":"Student sits at desk and works sadly Delcan & Co.","file":"draw-0249.webp"},{"page":250,"prompt":"Melbourne cyclist recovering happily from a knee surgery Delcan & Co.","file":"draw-0250.webp"},{"page":251,"prompt":"less angry bull Delcan & Co.","file":"draw-0251.webp"},{"page":252,"prompt":"if nothing changes, nothing changes","file":"draw-0252.webp"},{"page":253,"prompt":"nothing Delcan & Co.","file":"draw-0253.webp"},{"page":254,"prompt":"interpretation of friendship between human and robot Delcan & Co.","file":"draw-0254.webp"},{"page":255,"prompt":"AI asking Pablo to draw a hand for him Delcan & Co.","file":"draw-0255.webp"},{"page":256,"prompt":"Can you draw a picture of me and my three friends having a nice time in our winter cabin in Norway?","file":"draw-0256.webp"},{"page":257,"prompt":"A house full of love Delcan & Co.","file":"draw-0257.webp"},{"page":258,"prompt":"my girlfriend and me sharing a pizza, looking at each other in a happy, knowing way","file":"draw-0258.webp"},{"page":259,"prompt":"man with 8 arms trying to do something","file":"draw-0259.webp"},{"page":260,"prompt":"a house with a tree Delcan & Co.","file":"draw-0260.webp"},{"page":261,"prompt":"Lonely Delcan & Co.","file":"draw-0261.webp"},{"page":262,"prompt":"Dignity Delcan & Co.","file":"draw-0262.webp"},{"page":263,"prompt":"Donât die Delcan & Co.","file":"draw-0263.webp"},{"page":264,"prompt":"Something never seen before","file":"draw-0264.webp"},{"page":265,"prompt":"this is fine, everything is fine!","file":"draw-0265.webp"},{"page":266,"prompt":"Friday office vibes Delcan & Co.","file":"draw-0266.webp"},{"page":267,"prompt":"Blink and it will be gone. Delcan & Co.","file":"draw-0267.webp"},{"page":268,"prompt":"a valentines love letter to my creative team","file":"draw-0268.webp"},{"page":269,"prompt":"your dreams slowly coming true","file":"draw-0269.webp"},{"page":270,"prompt":"A picture of me longing for my dead father","file":"draw-0270.webp"},{"page":271,"prompt":"Sad Superhero Delcan & Co.","file":"draw-0271.webp"},{"page":272,"prompt":"Doraemon holding up a peace sign saying congrats","file":"draw-0272.webp"},{"page":273,"prompt":"A sandwich eating a sandwich","file":"draw-0273.webp"},{"page":274,"prompt":"an 8-ball creature Delcan & Co.","file":"draw-0274.webp"},{"page":275,"prompt":"Victory Delcan & Co.","file":"draw-0275.webp"},{"page":276,"prompt":"Me (a black guy), with a white girl with long hair eating food together or walking.","file":"draw-0276.webp"},{"page":277,"prompt":"A character with a faucet for a head, also has a runny nose","file":"draw-0277.webp"},{"page":278,"prompt":"a female that is in love with someone else than she is currently dating. in black clothes, please. Delcan & Co.","file":"draw-0278.webp"},{"page":279,"prompt":"the moment between sleeping and being awake","file":"draw-0279.webp"},{"page":280,"prompt":"overthinking Delcan & Co.","file":"draw-0280.webp"},{"page":281,"prompt":"draw me a firehydrant, please?","file":"draw-0281.webp"},{"page":282,"prompt":"Four breasts coming together","file":"draw-0282.webp"},{"page":283,"prompt":"For fucks sake Delcan & Co.","file":"draw-0283.webp"},{"page":284,"prompt":"A book cover idea getting killed.","file":"draw-0284.webp"},{"page":285,"prompt":"divorce Delcan & Co.","file":"draw-0285.webp"},{"page":286,"prompt":"tomorrow Delcan & Co.","file":"draw-0286.webp"},{"page":287,"prompt":"2 small kids playing soccer Delcan & Co.","file":"draw-0287.webp"},{"page":288,"prompt":"draw me a picture of a depressed student using their cell phone","file":"draw-0288.webp"},{"page":289,"prompt":"A cigarette wearing a skirt that is way too short smoking a cigar","file":"draw-0289.webp"},{"page":290,"prompt":"Life goes on Delcan & Co.","file":"draw-0290.webp"},{"page":291,"prompt":"healthy lifestyle for 2024 Delcan & Co.","file":"draw-0291.webp"},{"page":292,"prompt":"thinking Delcan & Co.","file":"draw-0292.webp"},{"page":293,"prompt":"A man that lost his soul Delcan & Co.","file":"draw-0293.webp"},{"page":294,"prompt":"A very small place very very crowded","file":"draw-0294.webp"},{"page":295,"prompt":"a woman hugging a butterfly","file":"draw-0295.webp"}
272,{"page":296,"prompt":"A two way petting zoo. Delcan & Co.","file":"draw-0296.webp"},{"page":297,"prompt":"Discoball dancing Delcan & Co.","file":"draw-0297.webp"},{"page":298,"prompt":"Pour a bottle of beer down your throat Delcan & Co.","file":"draw-0298.webp"},{"page":299,"prompt":"Existing Delcan & Co.","file":"draw-0299.webp"},{"page":300,"prompt":"peer pressure Delcan & Co.","file":"draw-0300.webp"},{"page":301,"prompt":"Someone getting a kiss on their tongue","file":"draw-0301.webp"},{"page":302,"prompt":"fish-woman spanking a silly diver","file":"draw-0302.webp"},{"page":303,"prompt":"An artist looking for purpose","file":"draw-0303.webp"},{"page":304,"prompt":"a person eating apples under a table","file":"draw-0304.webp"},{"page":305,"prompt":"lonely meetings at work Delcan & Co.","file":"draw-0305.webp"},{"page":306,"prompt":"how are you? Delcan & Co.","file":"draw-0306.webp"},{"page":307,"prompt":"needle in a haystack Delcan & Co.","file":"draw-0307.webp"},{"page":308,"prompt":"A sad guy doing 3d graphics by computer.","file":"draw-0308.webp"},{"page":309,"prompt":"A man with giraffe neck Delcan & Co.","file":"draw-0309.webp"},{"page":310,"prompt":"Goal Delcan & Co.","file":"draw-0310.webp"},{"page":311,"prompt":"drawing of polyamory relationships. Amanandtwowomenortwomenandonewoman hugging. I would like it to be erotic but not pornographic. is that posible?","file":"draw-0311.webp"},{"page":312,"prompt":"A feeling that thereâs too much information","file":"draw-0312.webp"},{"page":313,"prompt":"When she woke, the dinosaur was still there","file":"draw-0313.webp"},{"page":314,"prompt":"Make a giraffe on a skateboard","file":"draw-0314.webp"},{"page":315,"prompt":"The essence of doubt Delcan & Co.","file":"draw-0315.webp"},{"page":316,"prompt":"Compassion Delcan & Co.","file":"draw-0316.webp"},{"page":317,"prompt":"A giraffe being abducted by aliens","file":"draw-0317.webp"},{"page":318,"prompt":"a sad flower looking the sky Delcan & Co.","file":"draw-0318.webp"},{"page":319,"prompt":"a camel couple getting married","file":"draw-0319.webp"},{"page":320,"prompt":"Wiener dog Delcan & Co.","file":"draw-0320.webp"},{"page":321,"prompt":"Dolphin decided today was the day to try something newâ¦","file":"draw-0321.webp"},{"page":322,"prompt":"an alien called glimbo glumby","file":"draw-0322.webp"},{"page":323,"prompt":"The Pope tries to relax on a Saturday night in Rome - but gets a surprise!","file":"draw-0323.webp"},{"page":324,"prompt":"Gigachad squidward doing a roundhouse kick","file":"draw-0324.webp"},{"page":325,"prompt":"Imagine a mature pinecone, its woody texture is a symphony of deep browns and subtle ambers, reflecting (...)","file":"draw-0325.webp"},{"page":326,"prompt":"Do you know the muffin man?","file":"draw-0326.webp"},{"page":327,"prompt":"early riser or night owl? Delcan & Co.","file":"draw-0327.webp"},{"page":328,"prompt":"Freddy Fax-bear Delcan & Co.","file":"draw-0328.webp"},{"page":329,"prompt":"Half woman half cat eating an ice cream cone.","file":"draw-0329.webp"},{"page":330,"prompt":"Whatever you want Delcan & Co.","file":"draw-0330.webp"},{"page":331,"prompt":"make a map as a group Delcan & Co.","file":"draw-0331.webp"},{"page":332,"prompt":"Taking back your word Delcan & Co.","file":"draw-0332.webp"},{"page":333,"prompt":"A very round owl with comically long human legs","file":"draw-0333.webp"},{"page":334,"prompt":"Short person with short chin length hair, a unibrow, elf ears, riding a big horse.","file":"draw-0334.webp"},{"page":335,"prompt":"My neighbour totoro Delcan & Co.","file":"draw-0335.webp"},{"page":336,"prompt":"SpongeBob with a candle in each of his holes","file":"draw-0336.webp"},{"page":337,"prompt":"hyperspherical harmonics Delcan & Co.","file":"draw-0337.webp"},{"page":338,"prompt":"This is not my day Delcan & Co.","file":"draw-0338.webp"},{"page":339,"prompt":"ringo starr hugging an octopus","file":"draw-0339.webp"},{"page":340,"prompt":"Draw me a picture of a sumo size ginger man","file":"draw-0340.webp"},{"page":341,"prompt":"A well lived life Delcan & Co.","file":"draw-0341.webp"},{"page":342,"prompt":"A robot with great hair feeling a little underappreciated","file":"draw-0342.webp"},{"page":343,"prompt":"An old man with an ice cream sitting in a toy truck","file":"draw-0343.webp"},{"page":344,"prompt":"Deep contemplation Delcan & Co.","file":"draw-0344.webp"},{"page":345,"prompt":"King of locks Delcan & Co.","file":"draw-0345.webp"},{"page":346,"prompt":"Disco Cob. A thick-necked anthropomorphic corncob with disco fever. Corn silk where hair should be, and (... )","file":"draw-0346.webp"},{"page":347,"prompt":"That is not my finger Delcan & Co.","file":"draw-0347.webp"},{"page":348,"prompt":"A ghost eating a shoe Delcan & Co.","file":"draw-0348.webp"},{"page":349,"prompt":"Finally, a quiet peace Delcan & Co.","file":"draw-0349.webp"},{"page":350,"prompt":"Tongueshake (tongue handshake)","file":"draw-0350.webp"},{"page":351,"prompt":"a box in a box Delcan & Co.","file":"draw-0351.webp"},{"page":352,"prompt":"me feeling joy for the first time in my life","file":"draw-0352.webp"},{"page":353,"prompt":"My ever growing pile of unread books","file":"draw-0353.webp"},{"page":354,"prompt":"A dream inside a dream Delcan & Co.","file":"draw-0354.webp"},{"page":355,"prompt":"a typical peopleperson, someone who likes to vibe with others and has loads of rizz","file":"draw-0355.webp"},{"page":356,"prompt":"talk dirty to me Delcan & Co.","file":"draw-0356.webp"},{"page":357,"prompt":"Why is the power still out? Delcan & Co.","file":"draw-0357.webp"},{"page":358,"prompt":"Woman who does not like her own feet because her second toe is far too long","file":"draw-0358.webp"},{"page":359,"prompt":"Empathy Delcan & Co.","file":"draw-0359.webp"},{"page":360,"prompt":"A bald toy Delcan & Co.","file":"draw-0360.webp"},{"page":361,"prompt":"Motivation Delcan & Co.","file":"draw-0361.webp"},{"page":362,"prompt":"Two worms sipping wine Delcan & Co.","file":"draw-0362.webp"},{"page":363,"prompt":"Crying about wanting all the art I canât afford","file":"draw-0363.webp"},{"page":364,"prompt":"Two people holding hand Delcan & Co.","file":"draw-0364.webp"},{"page":365,"prompt":"Draw me a universe. Delcan & Co.","file":"draw-0365.webp"},{"page":366,"prompt":"draw my portrait, iâm 17, i have black hair (draw my portrait) and thick lip","file":"draw-0366.webp"},{"page":367,"prompt":"A raccoon with a gun Delcan & Co.","file":"draw-0367.webp"},{"page":368,"prompt":"the state of the world Delcan & Co.","file":"draw-0368.webp"},{"page":369,"prompt":"Someone who just doesnât care","file":"draw-0369.webp"},{"page":370,"prompt":"a big nose proposing to a set of teeth with a ring","file":"draw-0370.webp"},{"page":371,"prompt":"A software developer coding in a warzone","file":"draw-0371.webp"},{"page":372,"prompt":"the human nature Delcan & Co.","file":"draw-0372.
272webp"},{"page":373,"prompt":"draw a picture of me feeling bummed out about AI Delcan & Co.","file":"draw-0373.webp"},{"page":374,"prompt":"an all out fight between the head and the heart Delcan & Co.","file":"draw-0374.webp"},{"page":375,"prompt":"Existential dread Delcan & Co.","file":"draw-0375.webp"},{"page":376,"prompt":"spaghetti western Delcan & Co.","file":"draw-0376.webp"},{"page":377,"prompt":"let it be Delcan & Co.","file":"draw-0377.webp"},{"page":378,"prompt":"Mankind in 12,000 years. Delcan & Co.","file":"draw-0378.webp"},{"page":379,"prompt":"My mum having a margarita in heaven","file":"draw-0379.webp"},{"page":380,"prompt":"Draw me a person who is stuck in their routine and on very deep level finds it very pointless but on the surface life (...)","file":"draw-0380.webp"},{"page":381,"prompt":"A man eating his own head Delcan & Co.","file":"draw-0381.webp"},{"page":382,"prompt":"awwww man i am not ready for the week","file":"draw-0382.webp"},{"page":383,"prompt":"fish smoking under water Delcan & Co.","file":"draw-0383.webp"},{"page":384,"prompt":"my life so far Delcan & Co.","file":"draw-0384.webp"},{"page":385,"prompt":"Shame Delcan & Co.","file":"draw-0385.webp"},{"page":386,"prompt":"a flowering cactus Delcan & Co.","file":"draw-0386.webp"},{"page":387,"prompt":"Forever together Delcan & Co.","file":"draw-0387.webp"},{"page":388,"prompt":"ex-boyfriend Delcan & Co.","file":"draw-0388.webp"},{"page":389,"prompt":"another turn Delcan & Co.","file":"draw-0389.webp"},{"page":390,"prompt":"a starfish is born Delcan & Co.","file":"draw-0390.webp"},{"page":391,"prompt":"a bird man Delcan & Co.","file":"draw-0391.webp"},{"page":392,"prompt":"two eyes skating Delcan & Co.","file":"draw-0392.webp"},{"page":393,"prompt":"motivational message","file":"draw-0393.webp"},{"page":394,"prompt":"An image with two parts: 1. A diagram of a man watching an artwork 2. A diagram of an artwork watching a man.","file":"draw-0394.webp"},{"page":395,"prompt":"A female writer who is frustraded because she canât finish writing her book.","file":"draw-0395.webp"},{"page":396,"prompt":"Paint the mona lisa","file":"draw-0396.webp"},{"page":397,"prompt":"Close-up image of a person with curly hair, mustache and goatee, and with a serious expression","file":"draw-0397.webp"},{"page":398,"prompt":"draw someone with back pain","file":"draw-0398.webp"},{"page":399,"prompt":"A hard to scratch itch","file":"draw-0399.webp"},{"page":400,"prompt":"photo of a couple including a woman with short black hair with bangs and brown eyes, a blond man with greenish eyes, a beige and brown cat and a gray tabby cat.","file":"draw-0400.webp"},{"page":401,"prompt":"A cute animal that survives the end of the world","file":"draw-0401.webp"},{"page":402,"prompt":"One maindish, one sidedish","file":"draw-0402.webp"},{"page":403,"prompt":"A human bird who eat ice cream","file":"draw-0403.webp"},{"page":404,"prompt":"Adhesive tape with handles, legs, eyes and mouth","file":"draw-0404.webp"},{"page":405,"prompt":"itâs never too late","file":"draw-0405.webp"},{"page":406,"prompt":"enlightenment","file":"draw-0406.webp"},{"page":407,"prompt":"a sunset from a quiet beach in the Mediterranean cost","file":"draw-0407.webp"},{"page":408,"prompt":"A couple, mid 30s on the beach watching the world end.","file":"draw-0408.webp"},{"page":409,"prompt":"Zorro, a new version of the masked hero for the 21st century","file":"draw-0409.webp"},{"page":410,"prompt":"Look at my eyes","file":"draw-0410.webp"},{"page":411,"prompt":"Love","file":"draw-0411.webp"},{"page":412,"prompt":"A guy on a bicycle dreaming about becoming the bicycle itself","file":"draw-0412.webp"},{"page":413,"prompt":"Showing unconditional love to my 2 year-old daughter","file":"draw-0413.webp"},{"page":414,"prompt":"tulip","file":"draw-0414.webp"},{"page":415,"prompt":"Iâm 54 years old and a korean. My dad has been sufferd from Alzheimerâs disease for 4 years and died in 2002. I regret that iâve never told how much love him when he awakes. I miss him very much. Prompt-Brush.com","file":"draw-0415.webp"},{"page":416,"prompt":"Anxiety","file":"draw-0416.webp"},{"page":417,"prompt":"A duck-headed dog","file":"draw-0417.webp"},{"page":418,"prompt":"a girl with brown hair, green eyes, and FC Barcelona T-shirt","file":"draw-0418.webp"},{"page":419,"prompt":"a frog holding an umbrella","file":"draw-0419.webp"},{"page":420,"prompt":"A woman making noises in front of the laptop","file":"draw-0420.webp"},{"page":421,"prompt":"Drawmeamanbendingoverbackwards to eat his own feet","file":"draw-0421.webp"},{"page":422,"prompt":"draw something for 10 minutes","file":"draw-0422.webp"},{"page":423,"prompt":"A elephant pirate wearing a tutu","file":"draw-0423.webp"},{"page":424,"prompt":"Sun or moon?","file":"draw-0424.webp"},{"page":425,"prompt":"pablo picasso","file":"draw-0425.webp"},{"page":426,"prompt":"a painting growing limbs and finally left the painter","file":"draw-0426.webp"},{"page":427,"prompt":"A crossbreed of a lemon and a bee resting on a bed","file":"draw-0427.webp"},{"page":428,"prompt":"Olaf Scholz as a King.","file":"draw-0428.webp"},{"page":429,"prompt":"An infographic made of humans","file":"draw-0429.webp"},{"page":430,"prompt":"5 siblings that donât know how to love each other","file":"draw-0430.webp"},{"page":431,"prompt":"draw a tennis racquet with a triangle net to it","file":"draw-0431.webp"},{"page":432,"prompt":"new marriage","file":"draw-0432.webp"},{"page":433,"prompt":"A devil reading a book and enjoying it","file":"draw-0433.webp"},{"page":434,"prompt":"snowglobe toaster","file":"draw-0434.webp"},{"page":435,"prompt":"Lemmings run off a diving board","file":"draw-0435.webp"},{"page":436,"prompt":"A bouquet of sunflowers.","file":"draw-0436.webp"},{"page":437,"prompt":"An unexpected friendship between a carrot and a stick","file":"draw-0437.webp"},{"page":438,"prompt":"Cathedral of Menorca","file":"draw-0438.webp"},{"page":439,"prompt":"A girl lost on earth","file":"draw-0439.webp"},{"page":440,"prompt":"Female police officer with a duck","file":"draw-0440.webp"},{"page":441,"prompt":"a squirrel in a pool","file":"draw-0441.webp"},{"page":442,"prompt":"a man with more balls than brains","file":"draw-0442.webp"},{"page":443,"prompt":"French girl","file":"draw-0443.webp"},{"page":444,"prompt":"Balance","file":"draw-0444.webp"},{"page":445,"prompt":"Please can you paint an infinite hole","file":"draw-0445.webp"},{"page":446,"prompt":"Reminder to read a book","file":"draw-0446.webp"},{"page":447,"prompt":"a girl who fell in love","file":"draw-0447.webp"},{"page":448,"prompt":"The two sides of the same brain shaking hands. Thanks!","file":"draw-0448.webp"},{"page":449,"prompt":"Love is in the air","file":"draw-0449.webp"},{"page":450,"prompt":"running girl","file":"draw-0450.webp"},{"page":451,"prompt":"A day in New York City with friends from Harvard and seeing shows","file":"draw-0451.webp"},{"page":452,"prompt":"a sausage on a BBQ","file":"draw-0452.webp"},{"page":453,"prompt":"Please draw a picture where I can have a day full of happiness.","file":"draw-0453.webp"},{"page":454,"prompt":"what you ate for breakfast","file":"draw-0454.webp"},{"page":455,"prompt":"The drop that filled the glass","file":"draw-0455.webp"},{"page":456,"prompt":"Your current emotional state","file":"draw-0456.webp"},{"page":457,"prompt":"a 30 year old woman with middle lenght black hair in bob style. She has dimples, small lips, big happy eyes and a beauty spot on left cheek.","file":"draw-0457.webp"},{"page":458,"prompt":"Girl with blonde hair","file":"draw-0458.webp"},{"page":459,"prompt":"Unnecessary","file":"draw-0459.webp"},{"page":460,"prompt":"A very tired girl excited that the weekend is finally here","file":"draw-0460.webp"},{"page":461,"prompt":"A guy playing a claw machine and another guy on their phone","file":"draw-0461.webp"},{"page":462,"prompt":"a girl who wants to be a poem writer","file":"draw-0462.webp"},{"page":463,"prompt":"a traditional jam jar, with a cloth as a cap, with a sticker that says âjamâ","file":"draw-0463.webp"},{"page":464,"prompt":"one flower with a happy face in the middle of the mountains","file":"draw-0464.webp"},{"page":465,"prompt":"A rat screaming","file":"draw-0465.webp"},{"page":466,"prompt":"Grandpa and grandma are gone and my heart is broken","file":"draw-0466.webp"},{"page":467,"prompt":"The Creative Act","file":"draw-0467.webp"},{"page":468,"prompt":"A bouquet of tulips and some greens leafs. It is a present to my sister.","file":"draw-0468.webp"},{"page":469,"prompt":"a feeling of hatred for untolerance","file":"draw-0469.webp"},{"page":470,"prompt":"Sisyphus taking a break","file":"draw-0470.webp"},{"page":471,"prompt":"curly haired girl feeling the perfect bliss reading a book","file":"draw-0471.webp"},{"page":472,"prompt":"waiting for success","file":"draw-0472.webp"},{"page":473,"prompt":"I canât get up from my bed","file":"draw-0473.webp"},{"page":474,"prompt":"a funny dragon","file":"draw-0474.webp"},{"page":475,"prompt":"Me, 36 yo male, bitting my wifeâs nose","file":"draw-0475.webp"},{"page":476,"prompt":"three people","file":"draw-0476.webp"},{"page":477,"prompt":"A stressed mom with 1 year old twins and a 4 year old.","file":"draw-0477.webp"},{"page":478,"prompt":"skeleton of a cactus","file":"draw-0478.webp"},{"page":479,"prompt":"I am tired. But still I scroll.","file":"draw-0479.webp"},{"page":480,"prompt":"a man coming out of a circle","file":"draw-0480.webp"},{"page":481,"prompt":"finally!! I donât care, I won!","file":"draw-0481.webp"},{"page":482,"prompt":"Futuristic Astronaut","file":"draw-0482.webp"}
272,{"page":483,"prompt":"A car race on a doughnut planet","file":"draw-0483.webp"},{"page":484,"prompt":"a sloth listening to music","file":"draw-0484.webp"},{"page":485,"prompt":"Cat holding a card with 2 + 2 = text, and dog near with the card 5 + 3 =","file":"draw-0485.webp"},{"page":486,"prompt":"The edge of space and time","file":"draw-0486.webp"},{"page":487,"prompt":"How it feels to dance to your favourite song","file":"draw-0487.webp"},{"page":488,"prompt":"a sandwich monster","file":"draw-0488.webp"},{"page":489,"prompt":"picture mountains","file":"draw-0489.webp"},{"page":490,"prompt":"Mechanics thinking about artificial intelligence","file":"draw-0490.webp"},{"page":491,"prompt":"please draw the thin line between love and anger","file":"draw-0491.webp"},{"page":492,"prompt":"An octopusâs spaghetti monster legs protruding out of Salvador Daliâs head","file":"draw-0492.webp"},{"page":493,"prompt":"The power of love","file":"draw-0493.webp"},{"page":494,"prompt":"finding love in an unusual place","file":"draw-0494.webp"},{"page":495,"prompt":"a kid having their first existential realization","file":"draw-0495.webp"},{"page":496,"prompt":"A famous toilet","file":"draw-0496.webp"},{"page":497,"prompt":"A chicken with glasses","file":"draw-0497.webp"},{"page":498,"prompt":"A barberâs gesture","file":"draw-0498.webp"},{"page":499,"prompt":"a happy fish in a candy ocean","file":"draw-0499.webp"},{"page":500,"prompt":"a potatoe with a duck face and a pikachu tail","file":"draw-0500.webp"},{"page":501,"prompt":"AI in 2050","file":"draw-0501.webp"},{"page":502,"prompt":"Pants that want to be something else","file":"draw-0502.webp"},{"page":503,"prompt":"something unusually comforting","file":"draw-0503.webp"},{"page":504,"prompt":"a diverse group of people working smarter together in a team","file":"draw-0504.webp"},{"page":505,"prompt":"a kidâs first bike ride","file":"draw-0505.webp"},{"page":506,"prompt":"three friends (non-sexual) hugging each other","file":"draw-0506.webp"},{"page":507,"prompt":"cat with me","file":"draw-0507.webp"},{"page":508,"prompt":"design as a way of helping people act a certain way","file":"draw-0508.webp"},{"page":509,"prompt":"dicks and horses Texan ranch","file":"draw-0509.webp"},{"page":510,"prompt":"a fly pig","file":"draw-0510.webp"},{"page":511,"prompt":"A man with fire in his eyes","file":"draw-0511.webp"},{"page":512,"prompt":"An eye and eyebrow","file":"draw-0512.webp"},{"page":513,"prompt":"A dog realising the purpose of life","file":"draw-0513.webp"},{"page":514,"prompt":"I miss you","file":"draw-0514.webp"},{"page":515,"prompt":"A cherry with arms and legs and maybe even a face","file":"draw-0515.webp"},{"page":516,"prompt":"Alien surfing","file":"draw-0516.webp"},{"page":517,"prompt":"i am happy in unhappy","file":"draw-0517.webp"},{"page":518,"prompt":"accidental torture","file":"draw-0518.webp"},{"page":519,"prompt":"Speeding Rapunzel","file":"draw-0519.webp"},{"page":520,"prompt":"Dying of light","file":"draw-0520.webp"},{"page":521,"prompt":"A cute but distant asteroid","file":"draw-0521.webp"},{"page":522,"prompt":"caught by thoughts","file":"draw-0522.webp"},{"page":523,"prompt":"Flowers in the vase which is combined with a table","file":"draw-0523.webp"},{"page":524,"prompt":"please draw the phrase âeven if i fall, iâll hit the ground runningâ thanks","file":"draw-0524.webp"},{"page":525,"prompt":"Tattooed pig","file":"draw-0525.webp"},{"page":526,"prompt":"You, drowning in all the prompts you need to draw.","file":"draw-0526.webp"},{"page":527,"prompt":"getting an ugly bruise the day before your birthday party","file":"draw-0527.webp"},{"page":528,"prompt":"a super happy moon","file":"draw-0528.webp"},{"page":529,"prompt":"A fish with feet taking its first steps","file":"draw-0529.webp"},{"page":530,"prompt":"a bald man breaking open like an egg","file":"draw-0530.webp"},{"page":531,"prompt":"buzz kill","file":"draw-0531.webp"},{"page":532,"prompt":"the art and the artist","file":"draw-0532.webp"},{"page":533,"prompt":"a man throwing a tomato at another guy playing a guitar","file":"draw-0533.webp"},{"page":534,"prompt":"a cigarette smoking a human","file":"draw-0534.webp"},{"page":535,"prompt":"Overwhelmingly exploding with ideas","file":"draw-0535.webp"},{"page":536,"prompt":"God hates us all","file":"draw-0536.webp"},{"page":537,"prompt":"Coping","file":"draw-0537.webp"},{"page":538,"prompt":"regret","file":"draw-0538.webp"},{"page":539,"prompt":"The future","file":"draw-0539.webp"},{"page":540,"prompt":"Can you describe the heart of a woman who loves that man so much, but is preparing to break up out of fear because she feels like she will be hurt and hurt a lot by his actions?","file":"draw-0540.webp"},{"page":541,"prompt":"A horse with a long legs","file":"draw-0541.webp"},{"page":542,"prompt":"a beach","file":"draw-0542.webp"},{"page":543,"prompt":"a man sitting on a chair","file":"draw-0543.webp"},{"page":544,"prompt":"being thirsty for love","file":"draw-0544.webp"},{"page":545,"prompt":"LOVE IS ALL WE NEED","file":"draw-0545.webp"},{"page":546,"prompt":"Addiction","file":"draw-0546.webp"},{"page":547,"prompt":"A girl writing with a lot of ideas in her head but blocked","file":"draw-0547.webp"},{"page":548,"prompt":"We are life","file":"draw-0548.webp"},{"page":549,"prompt":"this is the life","file":"draw-0549.webp"},{"page":550,"prompt":"an old, distinguished turtle thats lived to see generations of hatred and turmoil, now awakened to the beauty in humanity","file":"draw-0550.webp"},{"page":551,"prompt":"eight girlfriends with different characteristics.","file":"draw-0551.webp"},{"page":552,"prompt":"a glass of wine with friends","file":"draw-0552.webp"},{"page":553,"prompt":"Wine bottle","file":"draw-0553.webp"},{"page":554,"prompt":"No to war","file":"draw-0554.webp"},{"page":555,"prompt":"a bowl of cockroaches","file":"draw-0555.webp"},{"page":556,"prompt":"Real Virtuality","file":"draw-0556.webp"},{"page":557,"prompt":"girl multitasking while running","file":"draw-0557.webp"},{"page":558,"prompt":"A person discovering a horrible","file":"draw-0558.webp"},{"page":559,"prompt":"A transparent glass sculpture, shaped elegantly like a nautilus shell. Put a few blossoms in the background, blurred (...)","file":"draw-0559.webp"},{"page":560,"prompt":"Draw a beautiful lady, head angled back, catching sunrays","file":"draw-0560.webp"},{"page":561,"prompt":"A man that build a house around himself","file":"draw-0561.webp"},{"page":562,"prompt":"Macaroni noodle with a friendly face coming out of one side","file":"draw-0562.webp"},{"page":563,"prompt":"a man cooking pasta","file":"draw-0563.webp"},{"page":564,"prompt":"cat play with dog","file":"draw-0564.webp"},{"page":565,"prompt":"flowers dancing","file":"draw-0565.webp"},{"page":566,"prompt":"Middle aged bald systems analyst working on a laptop and loving his job","file":"draw-0566.webp"},{"page":567,"prompt":"A t-rex with clown nose that rides a monocycle","file":"draw-0567.webp"},{"page":568,"prompt":"gilmore girls","file":"draw-0568.webp"},{"page":569,"prompt":"draw a cover for a italian fashion magazine","file":"draw-0569.webp"},{"page":570,"prompt":"Sunset","file":"draw-0570.webp"},{"page":571,"prompt":"if we could be strangers again, we would get to know each other again","file":"draw-0571.webp"},{"page":572,"prompt":"A man looking down from heaven looking at his wife and son","file":"draw-0572.webp"},{"page":573,"prompt":"four hands playing guitar","file":"draw-0573.webp"},{"page":574,"prompt":"Jenny","file":"draw-0574.webp"},{"page":575,"prompt":"A film lighting designer","file":"draw-0575.webp"},{"page":576,"prompt":"End movie clap","file":"draw-0576.webp"},{"page":577,"prompt":"The sheer joy of a heavy bassline.","file":"draw-0577.webp"},{"page":578,"prompt":"An abstract art on the inspiration of pablo Picasso","file":"draw-0578.webp"},{"page":579,"prompt":"A lighthouse in the night","file":"draw-0579.webp"},{"page":580,"prompt":"Friends that both like bubble tea","file":"draw-0580.webp"},{"page":581,"prompt":"AI doomer in trendy outfit","file":"draw-0581.webp"},{"page":582,"prompt":"Draw a 39 years old girl, who loves puppies, dancing, the wind and being imaginative","file":"draw-0582.webp"},{"page":583,"prompt":"ifs, buts, maybes","file":"draw-0583.webp"},{"page":584,"prompt":"A fish walking into a bar","file":"draw-0584.webp"},{"page":585,"prompt":"a girl missing a close friend","file":"draw-0585.webp"},{"page":586,"prompt":"You are the sunshine in my life","file":"draw-0586.webp"},{"page":587,"prompt":"a transparent creature crawling around fire","file":"draw-0587.webp"},{"page":588,"prompt":"clapped","file":"draw-0588.webp"},{"page":589,"prompt":"Someone looking into their future","file":"draw-0589.webp"},{"page":590,"prompt":"a dog in a rock band","file":"draw-0590.webp"},{"page":591,"prompt":"Lost and found","file":"draw-0591.webp"},{"page":592,"prompt":"2 ladies in Greece","file":"draw-0592.webp"},{"page":593,"prompt":"Consciousness","file":"draw-0593.webp"},{"page":594,"prompt":"Dancing smoke","file":"draw-0594.webp"},{"page":595,"prompt":"Freedom","file":"draw-0595.webp"},{"page":596,"prompt":"A good person","file":"draw-0596.webp"},{"page":597,"prompt":"A man with the napoleon hat","file":"draw-0597.webp"},{"page":598,"prompt":"the lights going on and off","file":"draw-0598.webp"},{"page":599,"prompt":"Endless coffee","file":"draw-0599.webp"},{"page":600,"prompt":"i draw for you","file":"draw-0600.webp"},{"page":601,"prompt":"art-therapy","file":"draw-0601.webp"},{"page":602,"prompt":"the AI ââlaughing at one of your drawings","file":"draw-0602.
272webp"},{"page":603,"prompt":"A castle at the top of a mountain","file":"draw-0603.webp"},{"page":604,"prompt":"time is over","file":"draw-0604.webp"},{"page":605,"prompt":"my Ex-wife (the Anti-Christ)","file":"draw-0605.webp"},{"page":606,"prompt":"You have 22 seconds. No retries.","file":"draw-0606.webp"},{"page":607,"prompt":"Itâs a difficult period but I hug my wife and my daughter tightly because itâs just my life","file":"draw-0607.webp"},{"page":608,"prompt":"a cowboy banana","file":"draw-0608.webp"},{"page":609,"prompt":"To the moon and back","file":"draw-0609.webp"},{"page":610,"prompt":"cheer up someone who is feeling down","file":"draw-0610.webp"},{"page":611,"prompt":"A baby who laughs","file":"draw-0611.webp"},{"page":612,"prompt":"office affair","file":"draw-0612.webp"},{"page":613,"prompt":"a frog on a stone under the rain","file":"draw-0613.webp"},{"page":614,"prompt":"laptop, speakers and a MIDI keyboard","file":"draw-0614.webp"},{"page":615,"prompt":"My depression as I try to get an MFA","file":"draw-0615.webp"},{"page":616,"prompt":"One day I will marry you (lesbian couple)","file":"draw-0616.webp"},{"page":617,"prompt":"Crazy grass workshop","file":"draw-0617.webp"},{"page":618,"prompt":"Sexy women in black","file":"draw-0618.webp"},{"page":619,"prompt":"A cat swallowing me. I donât put up a fight because it could be a good death.","file":"draw-0619.webp"},{"page":620,"prompt":"soccer player, back kick, goal missed","file":"draw-0620.webp"},{"page":621,"prompt":"the fear of missing out","file":"draw-0621.webp"},{"page":622,"prompt":"A rabbit skydiving","file":"draw-0622.webp"},{"page":623,"prompt":"green plant maniac","file":"draw-0623.webp"},{"page":624,"prompt":"4 pizza boys making pizza (kosher)","file":"draw-0624.webp"},{"page":625,"prompt":"A pig really wants to take a photo with Justin Bieber","file":"draw-0625.webp"},{"page":626,"prompt":"a dog eating a banana","file":"draw-0626.webp"},{"page":627,"prompt":"being hungry","file":"draw-0627.webp"},{"page":628,"prompt":"A dog being overjoyed with happiness to see icecream","file":"draw-0628.webp"},{"page":629,"prompt":"A tomato play guitar on top of an apple tree","file":"draw-0629.webp"},{"page":630,"prompt":"AI musical instrument","file":"draw-0630.webp"},{"page":631,"prompt":"two rhinos having a cup of tea","file":"draw-0631.webp"},{"page":632,"prompt":"Two suns","file":"draw-0632.webp"},{"page":633,"prompt":"drum kit, fever dream","file":"draw-0633.webp"},{"page":634,"prompt":"Empire State climbing on King Kong","file":"draw-0634.webp"},{"page":635,"prompt":"tic tac toe, a winner","file":"draw-0635.webp"},{"page":636,"prompt":"FLANN OâBRIEN","file":"draw-0636.webp"},{"page":637,"prompt":"Happyveggieshugginghappyjapanese farmer","file":"draw-0637.webp"},{"page":638,"prompt":"parrot","file":"draw-0638.webp"},{"page":639,"prompt":"A sunflower at an improv comedy show","file":"draw-0639.webp"},{"page":640,"prompt":"dos RÃos revueltos","file":"draw-0640.webp"},{"page":641,"prompt":"Creative Survival Kit","file":"draw-0641.webp"},{"page":642,"prompt":"Bugs Bunny and Mickey Mouse","file":"draw-0642.webp"},{"page":643,"prompt":"Girl watching eclipse","file":"draw-0643.webp"},{"page":644,"prompt":"The Seamonster ate my ice cream","file":"draw-0644.webp"},{"page":645,"prompt":"depressed mickey mouse","file":"draw-0645.webp"},{"page":646,"prompt":"Flower head","file":"draw-0646.webp"},{"page":647,"prompt":"Uncertain but trying","file":"draw-0647.webp"},{"page":648,"prompt":"a teacher who knows that he doesnât know anything","file":"draw-0648.webp"},{"page":649,"prompt":"Old italian man joking about french food","file":"draw-0649.webp"},{"page":650,"prompt":"A skeleton drinking a martini (you can see the martini passing by the bones).","file":"draw-0650.webp"},{"page":651,"prompt":"Humanoid frogs cleansing their sins in a river of tears","file":"draw-0651.webp"},{"page":652,"prompt":"Paul Simon","file":"draw-0652.webp"},{"page":653,"prompt":"draw a couple fall in love in the river","file":"draw-0653.webp"},{"page":654,"prompt":"Draw me âprocessâ","file":"draw-0654.webp"},{"page":655,"prompt":"Drink more water","file":"draw-0655.webp"},{"page":656,"prompt":"ABC","file":"draw-0656.webp"},{"page":657,"prompt":"three moon","file":"draw-0657.webp"},{"page":658,"prompt":"broken heart","file":"draw-0658.webp"},{"page":659,"prompt":"love in cup","file":"draw-0659.webp"},{"page":660,"prompt":"An art student burning out","file":"draw-0660.webp"},{"page":661,"prompt":"a man screaming for his life as he falls into a black hole","file":"draw-0661.webp"},{"page":662,"prompt":"Over think person","file":"draw-0662.webp"},{"page":663,"prompt":"Je voudrais le portrait de mon futur amoureux. Merci ! I would like the portrait of my future lover. Thank y
272ou!","file":"draw-0663.webp"},{"page":664,"prompt":"A small hotdog like dog looking for a hotdog","file":"draw-0664.webp"},{"page":665,"prompt":"a student in high school being pressured by the ancient school system, that is fostering confomity instead of creativity","file":"draw-0665.webp"},{"page":666,"prompt":"A monster truck with glasses (my sons request actually)","file":"draw-0666.webp"},{"page":667,"prompt":"Sonic the Hedgehog doing a cool pose","file":"draw-0667.webp"},{"page":668,"prompt":"The woman who kisses the flowers","file":"draw-0668.webp"},{"page":669,"prompt":"long haired geek","file":"draw-0669.webp"},{"page":670,"prompt":"A house","file":"draw-0670.webp"},{"page":671,"prompt":"A person who is doing a slow-paced breathing and synchronizes body and mind (in a fast-paced world)","file":"draw-0671.webp"},{"page":672,"prompt":"Patti Smith","file":"draw-0672.webp"},{"page":673,"prompt":"Two soulmates","file":"draw-0673.webp"},{"page":674,"prompt":"Negative Thinking, Positive Making","file":"draw-0674.webp"},{"page":675,"prompt":"UK leaving Europe","file":"draw-0675.webp"},{"page":676,"prompt":"aliens taking a bong hit","file":"draw-0676.webp"},{"page":677,"prompt":"a man having a business meeting with his shadow","file":"draw-0677.webp"},{"page":678,"prompt":"An AI giving a request to a human","file":"draw-0678.webp"},{"page":679,"prompt":"Pixelated playstation programmer","file":"draw-0679.webp"},{"page":681,"prompt":"Smart guy (glasses on obv.) reading at a terrace café","file":"draw-0681.webp"},{"page":682,"prompt":"Life in retrospect","file":"draw-0682.webp"},{"page":683,"prompt":"A fish with legs and a winning smile.","file":"draw-0683.webp"},{"page":684,"prompt":"Employees working at AI technology companies","file":"draw-0684.webp"},{"page":685,"prompt":"A rabbit with a knife","file":"draw-0685.webp"},{"page":686,"prompt":"a dark-haired man with dark undereye circles holding a coffee cup with dark under-eye circles","file":"draw-0686.webp"},{"page":687,"prompt":"a paper towell roll yelling at the dirty kitchen counter","file":"draw-0687.webp"},{"page":688,"prompt":"a lot of confusing thoughts in head","file":"draw-0688.webp"},{"page":689,"prompt":"Guy with a flame head and another guy with the body of a matchstick","file":"draw-0689.webp"},{"page":690,"prompt":"I told my therapist that, I am a teepee & I am a wigwam, she thinks I am too tense or maybe she said I am two tents","file":"draw-0690.webp"},{"page":691,"prompt":"dog","file":"draw-0691.webp"},{"page":692,"prompt":"an open window showing the interior of a house showing a table with the remains of a wine bottle and glasses","file":"draw-0692.webp"},{"page":693,"prompt":"Remembering something you forgot","file":"draw-0693.webp"},{"page":694,"prompt":"A cat in jellyfish form","file":"draw-0694.webp"},{"page":695,"prompt":"Seeing takes time","file":"draw-0695.webp"},{"page":696,"prompt":"Dreaming about you","file":"draw-0696.webp"},{"page":697,"prompt":"The end of times","file":"draw-0697.webp"},{"page":698,"prompt":"A rough day","file":"draw-0698.webp"},{"page":699,"prompt":"Jane Eyre","file":"draw-0699.webp"},{"page":700,"prompt":"A frog gazing at the sky","file":"draw-0700.webp"},{"page":701,"prompt":"AI being annoyed by my prompt","file":"draw-0701.webp"},{"page":702,"prompt":"The queen of tears","file":"draw-0702.webp"},{"page":703,"prompt":"the lunacy has method","file":"draw-0703.webp"},{"page":704,"prompt":"date with girlfriend in beach on spring","file":"draw-0704.webp"},{"page":705,"prompt":"respect old people","file":"draw-0705.webp"},{"page":706,"prompt":"A creative with too many ideas","file":"draw-0706.webp"},{"page":707,"prompt":"endless likes","file":"draw-0707.webp"},{"page":708,"prompt":"if the moon was a boy","file":"draw-0708.webp"},{"page":709,"prompt":"Shape and transform","file":"draw-0709.webp"},{"page":711,"prompt":"happy girl with holahoop","file":"draw-0711.webp"},{"page":712,"prompt":"coffee for breakfast","file":"draw-0712.webp"},{"page":713,"prompt":"Looking for the weekend","file":"draw-0713.webp"},{"page":714,"prompt":"An orchid flower in lisbon","file":"draw-0714.webp"},{"page":715,"prompt":"two truths can exist simultaneously","file":"draw-0715.webp"},{"page":716,"prompt":"A goldfish cracker frowning","file":"draw-0716.webp"},{"page":717,"prompt":"The fear of an overwhelming and close deadline.","file":"draw-0717.webp"},{"page":718,"prompt":"Ai drawing Paplo Delcan drawing Ai drawing Paplo Delcan","file":"draw-0718.webp"},{"page":719,"prompt":"the useless tool in the world","file":"draw-0719.webp"},{"page":720,"prompt":"Happy friday","file":"draw-0720.webp"},{"page":721,"prompt":"Man with kidney stones","file":"draw-0721.webp"},{"page":722,"prompt":"A dragon pig - a cool pig enjoy life in the year of dragon","file":"draw-0722.webp"},{"page":723,"prompt":"I want to draw a bull that doesnât look like a bull","file":"draw-0723.webp"},{"page":724,"prompt":"Trickpony","file":"draw-0724.webp"},{"page":725,"prompt":"music is my life","file":"draw-0725.webp"},{"page":726,"prompt":"very cute bunny eating a small carrot in the flowers","file":"draw-0726.webp"},{"page":727,"prompt":"A giant standing on the shoulders of giants standing on the shoulders of giants","file":"draw-0727.webp"},{"page":728,"prompt":"Lion","file":"draw-0728.webp"},{"page":729,"prompt":"Just a girl","file":"draw-0729.webp"},{"page":730,"prompt":"a glass cup melting","file":"draw-0730.webp"},{"page":731,"prompt":"knife and plato","file":"draw-0731.webp"},{"page":732,"prompt":"A happy and imposing normal dog after defeating his enemies","file":"draw-0732.webp"}
272,{"page":733,"prompt":"A guy with two butts","file":"draw-0733.webp"},{"page":734,"prompt":"a baby with a lightsaber","file":"draw-0734.webp"},{"page":735,"prompt":"Sometimes music sometimes silence","file":"draw-0735.webp"},{"page":736,"prompt":"Finishing the last page of a book","file":"draw-0736.webp"},{"page":737,"prompt":"Mental breakdown!!!!!!!","file":"draw-0737.webp"},{"page":738,"prompt":"Earth day","file":"draw-0738.webp"},{"page":739,"prompt":"a self heating hotdog","file":"draw-0739.webp"},{"page":740,"prompt":"He said he wanted to surprise me with a date but then he broke up with me","file":"draw-0740.webp"},{"page":741,"prompt":"A businessman without the business and the man","file":"draw-0741.webp"},{"page":742,"prompt":"Not being ccâd in an email","file":"draw-0742.webp"},{"page":743,"prompt":"My dry hands","file":"draw-0743.webp"},{"page":744,"prompt":"hope in a mason jar","file":"draw-0744.webp"},{"page":745,"prompt":"Dwayne the Rock eating a rock","file":"draw-0745.webp"},{"page":746,"prompt":"â¦it is a tiger that devours me, but I am the tigerâ¦","file":"draw-0746.webp"},{"page":747,"prompt":"3 heads body person","file":"draw-0747.webp"},{"page":748,"prompt":"A human kite","file":"draw-0748.webp"},{"page":749,"prompt":"A fish making sushi","file":"draw-0749.webp"},{"page":750,"prompt":"Lightheartedness","file":"draw-0750.webp"},{"page":751,"prompt":"World Peace","file":"draw-0751.webp"},{"page":752,"prompt":"nasal spray addiction","file":"draw-0752.webp"},{"page":753,"prompt":"a tube test","file":"draw-0753.webp"},{"page":754,"prompt":"A cream cheese bagel falls in love with an egg","file":"draw-0754.webp"},{"page":755,"prompt":"I am suspicious","file":"draw-0755.webp"},{"page":756,"prompt":"Ruminating thoughts","file":"draw-0756.webp"},{"page":757,"prompt":"LEGO toy","file":"draw-0757.webp"},{"page":758,"prompt":"bad handwriting","file":"draw-0758.webp"},{"page":759,"prompt":"A snowman with suicidal tendencies.","file":"draw-0759.webp"},{"page":760,"prompt":"A bunch of people walking the wrong way and a single person walking the right way","file":"draw-0760.webp"},{"page":761,"prompt":"a girl who likes olives","file":"draw-0761.webp"},{"page":762,"prompt":"a horse please","file":"draw-0762.webp"},{"page":763,"prompt":"eye","file":"draw-0763.webp"},{"page":764,"prompt":"monkey with beer on skateboard","file":"draw-0764.webp"},{"page":765,"prompt":"Flower for the emotionally unreachable girl","file":"draw-0765.webp"},{"page":766,"prompt":"burning flowers inside me","file":"draw-0766.webp"},{"page":767,"prompt":"cannibal pac-man","file":"draw-0767.webp"},{"page":768,"prompt":"Disappointing world","file":"draw-0768.webp"},{"page":769,"prompt":"The hungry eye","file":"draw-0769.webp"},{"page":770,"prompt":"A sexy and beautiful girl is riding a pig by the seaside.","file":"draw-0770.webp"},{"page":771,"prompt":"The degradation of NYC","file":"draw-0771.webp"},{"page":772,"prompt":"limbo","file":"draw-0772.webp"},{"page":773,"prompt":"Delivery man on scooter","file":"draw-0773.webp"},{"page":774,"prompt":"A sense of belonging","file":"draw-0774.webp"},{"page":775,"prompt":"a tiger drinking a cup of tea","file":"draw-0775.webp"},{"page":776,"prompt":"Pesto sauce in the bottle","file":"draw-0776.webp"},{"page":777,"prompt":"a three hands handshake","file":"draw-0777.webp"},{"page":778,"prompt":"Draw something that proves you are a machine please","file":"draw-0778.webp"},{"page":779,"prompt":"My mother wishes I was not always sick of myself. Of her mirror image.","file":"draw-0779.webp"},{"page":780,"prompt":"Everyone in this room is violent","file":"draw-0780.webp"},{"page":781,"prompt":"People of the sun","file":"draw-0781.webp"},{"page":782,"prompt":"Fox jumping","file":"draw-0782.webp"},{"page":783,"prompt":"A balloon with angel wings","file":"draw-0783.webp"},{"page":784,"prompt":"May I use it as my profile picture?","file":"draw-0784.webp"},{"page":785,"prompt":"my face","file":"draw-0785.webp"},{"page":786,"prompt":"a heart with wings and a halo","file":"draw-0786.webp"},{"page":787,"prompt":"suffering from jet lag","file":"draw-0787.webp"},{"page":788,"prompt":"A wig wearing a lady","file":"draw-0788.webp"},{"page":789,"prompt":"Miracle of life","file":"draw-0789.webp"},{"page":790,"prompt":"a mermaid","file":"draw-0790.webp"},{"page":791,"prompt":"flowers arguing about sun vs. rain","file":"draw-0791.webp"},{"page":792,"prompt":"Cigarette Charlie","file":"draw-0792.webp"},{"page":793,"prompt":"Me checking insta everyday if my prompt has been drawn but NO","file":"draw-0793.webp"},{"page":794,"prompt":"Hi Pablo, please will you draw me a fluffy tortoiseshell cat called Humbug. Thanks!","file":"draw-0794.webp"},{"page":795,"prompt":"A rock badger","file":"draw-0795.webp"},{"page":796,"prompt":"A drawing for a band called Slow Dance. Sounds like a rock band playing pop songs.","file":"draw-0796.webp"},{"page":797,"prompt":"The concept of realism","file":"draw-0797.webp"},{"page":798,"prompt":"no hard feelings","file":"draw-0798.webp"},{"page":799,"prompt":"Open studio","file":"draw-0799.webp"},{"page":800,"prompt":"a robot and a dinosaur are friends","file":"draw-0800.webp"},{"page":801,"prompt":"the star village every stars is","file":"draw-0801.webp"},{"page":802,"prompt":"Iâm bad at it, but everything is","file":"draw-0802.webp"},{"page":803,"prompt":"The universe in 4 dimensions","file":"draw-0803.webp"},{"page":804,"prompt":"a record that disappears when the time is right","file":"draw-0804.webp"},{"page":805,"prompt":"A female cat who is like a little tiger and only has one eye","file":"draw-0805.webp"},{"page":806,"prompt":"a robot walking by the street","file":"draw-0806.webp"},{"page":807,"prompt":"Please can you draw a picture of âthe legal eagleâ","file":"draw-0807.webp"},{"page":808,"prompt":"2030 Census","file":"draw-0808.webp"},{"page":809,"prompt":"A dragon directing a theatre show","file":"draw-0809.webp"},{"page":810,"prompt":"crossword frustration","file":"draw-0810.webp"},{"page":811,"prompt":"A very sad and happy lady","file":"draw-0811.webp"},{"page":812,"prompt":"Coffee time","file":"draw-0812.webp"},{"page":813,"prompt":"The most unique tattoo design","file":"draw-0813.webp"},{"page":814,"prompt":"off the wall","file":"draw-0814.webp"},{"page":815,"prompt":"Me & The moon","file":"draw-0815.webp"},{"page":816,"prompt":"a border thats is in love with a river","file":"draw-0816.webp"},{"page":817,"prompt":"A child enjoying butterflies","file":"draw-0817.webp"},{"page":818,"prompt":"Sad tamagotchi because owner didnât take care of it","file":"draw-0818.webp"}
272,{"page":819,"prompt":"My name is Sora. Create a cute character that goes with my name","file":"draw-0819.webp"},{"page":820,"prompt":"stand up please","file":"draw-0820.webp"},{"page":821,"prompt":"Doing meditation","file":"draw-0821.webp"},{"page":822,"prompt":"fairy tale","file":"draw-0822.webp"},{"page":823,"prompt":"a bird doing a backflip","file":"draw-0823.webp"},{"page":824,"prompt":"a smiling space invader","file":"draw-0824.webp"},{"page":825,"prompt":"Drought","file":"draw-0825.webp"},{"page":826,"prompt":"an artist finally freed from a 9 to 5 job","file":"draw-0826.webp"},{"page":827,"prompt":"Draw me the figure of a manager who helps the collaborators","file":"draw-0827.webp"},{"page":828,"prompt":"Dinosaur sex party","file":"draw-0828.webp"},{"page":829,"prompt":"graduate meme","file":"draw-0829.webp"},{"page":830,"prompt":"A non-caricature Napoleon, please.","file":"draw-0830.webp"},{"page":831,"prompt":"a horse on the bike","file":"draw-0831.webp"},{"page":832,"prompt":"A woman drinking a bottle of wine","file":"draw-0832.webp"},{"page":833,"prompt":"A joke","file":"draw-0833.webp"},{"page":834,"prompt":"A Picasso painting, portrait, taking a selfie","file":"draw-0834.webp"},{"page":835,"prompt":"a man but also noodle","file":"draw-0835.webp"},{"page":836,"prompt":"a monkey eating a banana","file":"draw-0836.webp"},{"page":837,"prompt":"A beach on top of a head","file":"draw-0837.webp"},{"page":838,"prompt":"A shape changing fluid displaying sometimes as a box out of titanium, sometimes as an all existence absorbent black whole vacuum around my heart which (...)","file":"draw-0838.webp"},{"page":839,"prompt":"a cat eating a mushroom","file":"draw-0839.webp"},{"page":840,"prompt":"a pig with frogâs head","file":"draw-0840.webp"},{"page":841,"prompt":"a teen making music on a keyboard and laptop in a bedroom","file":"draw-0841.webp"},{"page":842,"prompt":"The moment when I start crying","file":"draw-0842.webp"},{"page":843,"prompt":"a man dancing on top of his work desk in his daily boring job","file":"draw-0843.webp"},{"page":844,"prompt":"fish partying","file":"draw-0844.webp"},{"page":845,"prompt":"a messy desk","file":"draw-0845.webp"},{"page":846,"prompt":"iphone in the year 2040","file":"draw-0846.webp"},{"page":847,"prompt":"An aircraft crying because all the air in the world has been sold to Mars.","file":"draw-0847.webp"},{"page":848,"prompt":"Donuts on a plate with cofee","file":"draw-0848.webp"},{"page":849,"prompt":"World with legs","file":"draw-0849.webp"},{"page":850,"prompt":"A boy with twin ponytails","file":"draw-0850.webp"},{"page":851,"prompt":"gen ai being creative like designers","file":"draw-0851.webp"},{"page":852,"prompt":"two cats on an olive tree under the moon","file":"draw-0852.webp"},{"page":853,"prompt":"modernistic armchair","file":"draw-0853.webp"},{"page":854,"prompt":"a happy bean","file":"draw-0854.webp"},{"page":855,"prompt":"A banana at the beach","file":"draw-0855.webp"},{"page":856,"prompt":"two suns","file":"draw-0856.webp"},{"page":857,"prompt":"A Matter of Form","file":"draw-0857.webp"},{"page":858,"prompt":"A ratty book is well read","file":"draw-0858.webp"},{"page":859,"prompt":"Ratty Books","file":"draw-0859.webp"},{"page":860,"prompt":"Ratty Books","file":"draw-0860.webp"},{"page":861,"prompt":"Ratty Books","file":"draw-0861.webp"},{"page":862,"prompt":"Ratty Books","file":"draw-0862.webp"},{"page":863,"prompt":"Pabloâs interpretation of Claude Monetâs masterpiece San Giorgio Maggiore","file":"draw-0863.webp"},{"page":864,"prompt":"Feeling unexpected love","file":"draw-0864.webp"},{"page":865,"prompt":"shrimp wizard","file":"draw-0865.webp"},{"page":866,"prompt":"sadness","file":"draw-0866.webp"},{"page":867,"prompt":"a cover for a book about how big tech both helps and exploits us.","file":"draw-0867.webp"},{"page":868,"prompt":"A cover for a book about how all the material we put on the internet can be seen as raw material for both our own selfexpression and the accumulation of wealth and power by those who already have it.","file":"draw-0868.webp"},{"page":869,"prompt":"a cover for a book about how big tech both helps and exploits us.","file":"draw-0869.webp"},{"page":870,"prompt":"a writer implicating the reader","file":"draw-0870.webp"},{"page":871,"prompt":"how big tech exploits us","file":"draw-0871.webp"},{"page":872,"prompt":"Please draw me an otter that I can get as a tattoo","file":"draw-0872.webp"},{"page":873,"prompt":"A fish out of water","file":"draw-0873.webp"},{"page":874,"prompt":"a guy made from clouds","file":"draw-0874.webp"},{"page":875,"prompt":"I am a 5ft6 blonde long haired lady walking my golden retreiver around clapham common","file":"draw-0875.webp"},{"page":876,"prompt":"woman with a shovel dancing on a tree","file":"draw-0876.webp"},{"page":877,"prompt":"hello","file":"draw-0877.webp"},{"page":878,"prompt":"Side view of teapot with angry face expression and with muscular human arms and legs walking","file":"draw-0878.webp"},{"page":879,"prompt":"a happy face","file":"draw-0879.webp"},{"page":880,"prompt":"Ballet dancer with freckles","file":"draw-0880.webp"},{"page":881,"prompt":"flag football pirate reading a book","file":"draw-0881.webp"},{"page":882,"prompt":"Toes hungry","file":"draw-0882.webp"},{"page":883,"prompt":"a happy flower","file":"draw-0883.webp"},{"page":884,"prompt":"a raccoon running for president","file":"draw-0884.webp"},{"page":885,"prompt":"orchids","file":"draw-0885.webp"},{"page":886,"prompt":"A moon and a tree walk into a barâ¦","file":"draw-0886.webp"},{"page":887,"prompt":"Infectious laughter","file":"draw-0887.webp"},{"page":888,"prompt":"A picture of hope","file":"draw-0888.webp"},{"page":889,"prompt":"miserable man sit at home alone, crying and smoking, because he has no heart","file":"draw-0889.webp"},{"page":890,"prompt":"a winning mood","file":"draw-0890.webp"},{"page":891,"prompt":"a girl","file":"draw-0891.webp"},{"page":892,"prompt":"a serious goose","file":"draw-0892.webp"},{"page":893,"prompt":"a squirrel working with a computer","file":"draw-0893.webp"},{"page":894,"prompt":"something that made you happy today:)","file":"draw-0894.webp"},{"page":895,"prompt":"Netflix platform in 2040","file":"draw-0895.webp"},{"page":896,"prompt":"a minimalist series of symbols related to magic, witchcraft and mysticism, none of them have to be already existing symbols, they must be new ones,","file":"draw-0896.webp"},{"page":897,"prompt":"a girl is texting her cv","file":"draw-0897.webp"},{"page":898,"prompt":"Someone falling in an apple pile","file":"draw-0898.webp"},{"page":899,"prompt":"413 jumping around","file":"draw-0899.webp"},{"page":900,"prompt":"group of creatives gathering and having coffee","file":"draw-0900.webp"},{"page":901,"prompt":"a monkey","file":"draw-0901.webp"},{"page":902,"prompt":"the end of the ai","file":"draw-0902.webp"},{"page":903,"prompt":"melting piano keys","file":"draw-0903.webp"},{"page":904,"prompt":"listening to the best song in the world","file":"draw-0904.webp"},{"page":905,"prompt":"A shark eating eggs","file":"draw-0905.webp"},{"page":906,"prompt":"eating a nuclear baguette","file":"draw-0906.webp"},{"page":907,"prompt":"An astronaut cat","file":"draw-0907.webp"},{"page":908,"prompt":"a bread man","file":"draw-0908.webp"},{"page":909,"prompt":"an angry girl, holding a glass of water upside down","file":"draw-0909.webp"},{"page":910,"prompt":"A black cat","file":"draw-0910.webp"},{"page":911,"prompt":"Hi Pablo, I would be honored if you could drawn a
272symbolic image of me (living in Paris, 54 years old) and my Partner in life living in NY (she is 50) in our love story","file":"draw-0911.webp"},{"page":912,"prompt":"A Everyday Tiger","file":"draw-0912.webp"},{"page":913,"prompt":"two people in different aisles on a plane","file":"draw-0913.webp"},{"page":914,"prompt":"generate a minimalistic logo with","file":"draw-0914.webp"},{"page":915,"prompt":"A mango singing","file":"draw-0915.webp"},{"page":916,"prompt":"The all seeing eye of Providence.","file":"draw-0916.webp"},{"page":917,"prompt":"A fork made of spaghettis","file":"draw-0917.webp"},{"page":918,"prompt":"handmade soap","file":"draw-0918.webp"},{"page":919,"prompt":"A Pianist who play the devilâs music","file":"draw-0919.webp"},{"page":920,"prompt":"an alien who is lonely","file":"draw-0920.webp"},{"page":921,"prompt":"draw me a man in the rain","file":"draw-0921.webp"},{"page":922,"prompt":"Mental Health","file":"draw-0922.webp"},{"page":923,"prompt":"My best friendâs boyfriend","file":"draw-0923.webp"},{"page":924,"prompt":"Draw a cafe table top with 4 human legs. The table top has hair stubble. On the tabletop is small cup of hot steaming coffee","file":"draw-0924.webp"},{"page":925,"prompt":"Bing bong dingelinge dink donk","file":"draw-0925.webp"},{"page":926,"prompt":"The leaning tower of pisa if it wasnât leaning","file":"draw-0926.webp"},{"page":927,"prompt":"A nice potato","file":"draw-0927.webp"},{"page":928,"prompt":"the night me and your mama met","file":"draw-0928.webp"},{"page":929,"prompt":"A paint brush painting itself","file":"draw-0929.webp"},{"page":930,"prompt":"Ahead of the curve","file":"draw-0930.webp"},{"page":931,"prompt":"Bouldering","file":"draw-0931.webp"},{"page":932,"prompt":"A flower blooming into a pigeon","file":"draw-0932.webp"},{"page":933,"prompt":"an underwater animal weâve never seen before","file":"draw-0933.webp"},{"page":934,"prompt":"An altar for worms.","file":"draw-0934.webp"},{"page":935,"prompt":"draw me a dog with three legs","file":"draw-0935.webp"},{"page":936,"prompt":"Hi Pablo! Two glass bottles in love","file":"draw-0936.webp"},{"page":937,"prompt":"a very uncomfortable chair that showcases why I moved to berlin","file":"draw-0937.webp"},{"page":938,"prompt":"the last man on earth","file":"draw-0938.webp"},{"page":939,"prompt":"a girl lost in her books","file":"draw-0939.webp"},{"page":940,"prompt":"A boob that looks like my boyfriend","file":"draw-0940.webp"},{"page":941,"prompt":"Spiky-Haired man with sunglasses","file":"draw-0941.webp"},{"page":942,"prompt":"When you have your hair all done and pretty and need to get into your hoodie","file":"draw-0942.webp"},{"page":943,"prompt":"cash back","file":"draw-0943.webp"},{"page":944,"prompt":"overcoming loneliness","file":"draw-0944.webp"},{"page":945,"prompt":"The sleepy little bear snuggled deeply into the woods to protect her from ghosts","file":"draw-0945.webp"},{"page":946,"prompt":"draw me in love","file":"draw-0946.webp"},{"page":947,"prompt":"The road less travelled","file":"draw-0947.webp"},{"page":948,"prompt":"the color red, but in black and white","file":"draw-0948.webp"},{"page":949,"prompt":"small masterpiece","file":"draw-0949.webp"},{"page":950,"prompt":"a happy wedge of cheese","file":"draw-0950.webp"},{"page":951,"prompt":"Emptiness","file":"draw-0951.webp"},{"page":952,"prompt":"the worst day Iâve had in months","file":"draw-0952.webp"},{"page":953,"prompt":"a fountain","file":"draw-0953.webp"},{"page":954,"prompt":"eating darkness as breakfast","file":"draw-0954.webp"},{"page":955,"prompt":"Bittersweet smiley emoji","file":"draw-0955.webp"},{"page":956,"prompt":"Getting dumped over text","file":"draw-0956.webp"},{"page":957,"prompt":"Broccoli character","file":"draw-0957.webp"},{"page":958,"prompt":"wait for soldier during sunset. he is my grand son.","file":"draw-0958.webp"},{"page":959,"prompt":"Can you show me my future","file":"draw-0959.webp"},{"page":960,"prompt":"Will you marry me, Sazzi?","file":"draw-0960.webp"},{"page":961,"prompt":"Me studying for my thesis while my friends go to the beach.","file":"draw-0961.webp"},{"page":962,"prompt":"a portrait of Sid Vicious with his guitar","file":"draw-0962.webp"},{"page":963,"prompt":"A woman in her fourties, managing three intensive Whatsapp conversations at once","file":"draw-0963.webp"},{"page":964,"prompt":"an orange with some caterpillar on it","file":"draw-0964.webp"},{"page":965,"prompt":"Gold golem","file":"draw-0965.webp"},{"page":966,"prompt":"Goomba For super Mario","file":"draw-0966.webp"},{"page":967,"prompt":"the world in 20 years","file":"draw-0967.webp"},{"page":968,"prompt":"< 3 is love","file":"draw-0968.webp"},{"page":969,"prompt":"sleep","file":"draw-0969.webp"},{"page":970,"prompt":"Puglia","file":"draw-0970.webp"},{"page":971,"prompt":"Colony of ants picking up food","file":"draw-0971.webp"},{"page":972,"prompt":"A tree full of chickens","file":"draw-0972.webp"},{"page":973,"prompt":"The cutest cat you can muster, Please. Thank y
272ou.","file":"draw-0973.webp"},{"page":974,"prompt":"The (over)Thinker","file":"draw-0974.webp"},{"page":975,"prompt":"pablo delcan with a cartoon angel and devil on each shoulder","file":"draw-0975.webp"},{"page":976,"prompt":"A tuktuk in Thailand with an elephant driving it","file":"draw-0976.webp"},{"page":977,"prompt":"Vacation plans that went horribly wrong","file":"draw-0977.webp"},{"page":978,"prompt":"mother and daughter that look like sisters with short hair","file":"draw-0978.webp"},{"page":979,"prompt":"snail","file":"draw-0979.webp"},{"page":980,"prompt":"I wanna get me out of me.","file":"draw-0980.webp"},{"page":981,"prompt":"Draw yourself on a shelf","file":"draw-0981.webp"},{"page":982,"prompt":"a rose under a tree","file":"draw-0982.webp"},{"page":983,"prompt":"Coffee cup character steaming hot","file":"draw-0983.webp"},{"page":984,"prompt":"A woman with a phone instead of the nose","file":"draw-0984.webp"},{"page":985,"prompt":"End of the world, cheerful.","file":"draw-0985.webp"},{"page":986,"prompt":"The sad dog for my music label logo","file":"draw-0986.webp"},{"page":987,"prompt":"Draw me a pencil with a cup of coffee nearby","file":"draw-0987.webp"},{"page":988,"prompt":"A labyrinth in somebodyâs head, full of trees and rivers","file":"draw-0988.webp"},{"page":989,"prompt":"A smiling caterpillar being shot out of a canon","file":"draw-0989.webp"},{"page":990,"prompt":"I hate my job","file":"draw-0990.webp"},{"page":991,"prompt":"i have hairy knees","file":"draw-0991.webp"},{"page":992,"prompt":"A human with feathers, trying to fly","file":"draw-0992.webp"},{"page":993,"prompt":"A humanoid with three heads","file":"draw-0993.webp"},{"page":994,"prompt":"Iâm stuck","file":"draw-0994.webp"},{"page":995,"prompt":"A depressed cigarette","file":"draw-0995.webp"},{"page":996,"prompt":"A sad man with a feather","file":"draw-0996.webp"},{"page":997,"prompt":"Half man, half record player.","file":"draw-0997.webp"},{"page":998,"prompt":"Flowers of love","file":"draw-0998.webp"},{"page":999,"prompt":"Juggling five balls","file":"draw-0999.webp"},{"page":1000,"prompt":"An office crush","file":"draw-1000.webp"},{"page":1001,"prompt":"An office crush","file":"draw-1001.webp"},{"page":1002,"prompt":"An office crush","file":"draw-1002.webp"},{"page":1003,"prompt":"An office crush","file":"draw-1003.webp"},{"page":1004,"prompt":"An office crush","file":"draw-1004.webp"},{"page":1005,"prompt":"","file":"draw-1005.webp"},{"page":1006,"prompt":"A boy with a lantern","file":"draw-1006.webp"},{"page":1007,"prompt":"Future Emoji","file":"draw-1007.webp"},{"page":1008,"prompt":"my next tattoo","file":"draw-1008.webp"},{"page":1009,"prompt":"dog head frog body buys a house","file":"draw-1009.webp"},{"page":1010,"prompt":"a woman in her 20s who was burned out due to a lot of work","file":"draw-1010.webp"},{"page":1011,"prompt":"Naked woman surrounded by cats","file":"draw-1011.webp"},{"page":1012,"prompt":"Island with a big mountain","file":"draw-1012.webp"},{"page":1013,"prompt":"A passing relationship","file":"draw-1013.webp"},{"page":1014,"prompt":"Sharing is caring","file":"draw-1014.webp"},{"page":1015,"prompt":"a black and white cat with a dinosaur","file":"draw-1015.webp"},{"page":1016,"prompt":"a house","file":"draw-1016.webp"},{"page":1017,"prompt":"An unsuspicious criminal eating a snack","file":"draw-1017.webp"},{"page":1018,"prompt":"Garfileld giving me an evil idea","file":"draw-1018.webp"},{"page":1019,"prompt":"me hooking up with fishes","file":"draw-1019.webp"},{"page":1020,"prompt":"A woman who is finally able to say how she feels","file":"draw-1020.webp"},{"page":1021,"prompt":"a godzilla-esque monster sitting behind a desk mid workday","file":"draw-1021.webp"},{"page":1022,"prompt":"macron with a banana","file":"draw-1022.webp"},{"page":1023,"prompt":"Color, i dare you","file":"draw-1023.webp"},{"page":1024,"prompt":"pool, because itâs hot.","file":"draw-1024.webp"},{"page":1025,"prompt":"Draw me a picture of Joy","file":"draw-1025.webp"},{"page":1026,"prompt":"long distance relationship problems","file":"draw-1026.webp"},{"page":1027,"prompt":"Rain inside a human head","file":"draw-1027.webp"},{"page":1028,"prompt":"furry cat","file":"draw-1028.webp"},{"page":1029,"prompt":"Strength","file":"draw-1029.webp"},{"page":1030,"prompt":"A person trying to increase and reduce the many speed dials of life","file":"draw-1030.webp"},{"page":1031,"prompt":"a man drinking a lot","file":"draw-1031.webp"},{"page":1032,"prompt":"A person working without a strategy","file":"draw-1032.webp"},{"page":1033,"prompt":"a frog dancing in a frog night club","file":"draw-1033.webp"},{"page":1034,"prompt":"the weekend","file":"draw-1034.webp"},{"page":1035,"prompt":"An east village girl with a latte","file":"draw-1035.webp"},{"page":1036,"prompt":"A broken heart drinking coffee","file":"draw-1036.webp"},{"page":1037,"prompt":"A butterfly","file":"draw-1037.webp"},{"page":1038,"prompt":"angry cat smoking cigarrette","file":"draw-1038.webp"},{"page":1039,"prompt":"a synthesizer made of cake and bannanas","file":"draw-1039.webp"},{"page":1040,"prompt":"tres tigres","file":"draw-1040.webp"},{"page":1041,"prompt":"functioning with a foggy mind","file":"draw-1041.webp"},{"page":1042,"prompt":"True Love","file":"draw-1042.webp"},{"page":1043,"prompt":"bird","file":"draw-1043.webp"},{"page":1044,"prompt":"Itâs been a complicated day in my head","file":"draw-1044.webp"},{"page":1045,"prompt":"a falcon dancing on a gramophone","file":"draw-1045.webp"},{"page":1046,"prompt":"A man riding a bike drinking a cup of tea","file":"draw-1046.webp"},{"page":1047,"prompt":"A man filming with the camera with a rope around his knack","file":"draw-1047.webp"},{"page":1048,"prompt":"a visit to the dentist","file":"draw-1048.webp"},{"page":1049,"prompt":"A dog running faster than itself","file":"draw-1049.webp"},{"page":1050,"prompt":"a man with the demeanor of a princess","file":"draw-1050.webp"},{"page":1051,"prompt":"very very hungry pig","file":"draw-1051.webp"},{"page":1052,"prompt":"a mole in a hole","file":"draw-1052.webp"},{"page":1053,"prompt":"Alien late for work has 9 eyes.","file":"draw-1053.webp"},{"page":1054,"prompt":"half shark half alligator half man","file":"draw-1054.webp"},{"page":1055,"prompt":"situationship (sheâs afraid to commit)","file":"draw-1055.webp"},{"page":1056,"prompt":"should i stay or should i go","file":"draw-1056.webp"},{"page":1057,"prompt":"my brain melting out my tears","file":"draw-1057.webp"}
272,{"page":1058,"prompt":"happy woman watching a dark future","file":"draw-1058.webp"},{"page":1059,"prompt":"a dark rendering of the crow graphic novel bloody bloody super bloody","file":"draw-1059.webp"},{"page":1060,"prompt":"Ducks engaging in a âwho wore it better?â contest","file":"draw-1060.webp"},{"page":1061,"prompt":"A wrong way gone right.. :)","file":"draw-1061.webp"},{"page":1062,"prompt":"A lizard smoking a cigarette","file":"draw-1062.webp"},{"page":1063,"prompt":"Fruit monster","file":"draw-1063.webp"},{"page":1064,"prompt":"Fruit monster","file":"draw-1064.webp"},{"page":1065,"prompt":"Awesomeness","file":"draw-1065.webp"},{"page":1066,"prompt":"Please draw me a persons face or head wearing a hat being happy with todayâs achievements while maintaining certain degree of mystery.","file":"draw-1066.webp"},{"page":1067,"prompt":"A dog riding a horse","file":"draw-1067.webp"},{"page":1068,"prompt":"Start by drawing a large circle for the head. Then, add two smaller circles below for the eyes. Next, draw a nose and add ears around the eyes. Complete the body and legs, and draw the tail to finish. Finally, add small details near the face to emphasize the dogâs features.","file":"draw-1068.webp"},{"page":1069,"prompt":"I became a happy chef","file":"draw-1069.webp"},{"page":1070,"prompt":"MONSTER COFFEE","file":"draw-1070.webp"},{"page":1071,"prompt":"a robot bee","file":"draw-1071.webp"},{"page":1072,"prompt":"I love you","file":"draw-1072.webp"},{"page":1073,"prompt":"A disappointing Friday","file":"draw-1073.webp"},{"page":1074,"prompt":"A world with upside down people.","file":"draw-1074.webp"},{"page":1075,"prompt":"A dancing ring","file":"draw-1075.webp"},{"page":1076,"prompt":"I want to feel free.","file":"draw-1076.webp"},{"page":1077,"prompt":"Take a nice break, Pablo, you deserve it","file":"draw-1077.webp"},{"page":1078,"prompt":"A chameleon","file":"draw-1078.webp"},{"page":1079,"prompt":"Sparkles emoji","file":"draw-1079.webp"},{"page":1080,"prompt":"My boss wants us to have AI generated profile pictures. Can you draw a girl with curly hair and large square glasses?","file":"draw-1080.webp"},{"page":1081,"prompt":"A house in the moutains where good life happens","file":"draw-1081.webp"},{"page":1082,"prompt":"yesterday","file":"draw-1082.webp"},{"page":1083,"prompt":"a graphic designer struggling to come up with a prompt idea","file":"draw-1083.webp"},{"page":1084,"prompt":"dont lose your joy in life","file":"draw-1084.webp"},{"page":1085,"prompt":"yourself","file":"draw-1085.webp"},{"page":1086,"prompt":"a hello kitty version of a veritech fighter","file":"draw-1086.webp"},{"page":1087,"prompt":"a boy with a toy shark","file":"draw-1087.webp"},{"page":1088,"prompt":"A creative light bulb getting a ton of ideas","file":"draw-1088.webp"},{"page":1089,"prompt":"jesus","file":"draw-1089.webp"},{"page":1090,"prompt":"a crooked house","file":"draw-1090.webp"},{"page":1091,"prompt":"a bear on the go","file":"draw-1091.webp"},{"page":1092,"prompt":"A sun setting but rising elsewhere.","file":"draw-1092.webp"},{"page":1093,"prompt":"Dennis, I love you forever!","file":"draw-1093.webp"},{"page":1094,"prompt":"internal peace V1 V3 V2","file":"draw-1094.webp"},{"page":1095,"prompt":"unrequited love","file":"draw-1095.webp"},{"page":1096,"prompt":"A tiger with three heads and each one has a different emotion/ state","file":"draw-1096.webp"},{"page":1097,"prompt":"natural wine in iceland","file":"draw-1097.webp"},{"page":1098,"prompt":"my anxiety","file":"draw-1098.webp"},{"page":1099,"prompt":"internal peace","file":"draw-1099.webp"},{"page":1100,"prompt":"Sex and the city","file":"draw-1100.webp"},{"page":1101,"prompt":"Cats Kill Mountains","file":"draw-1101.webp"},{"page":1102,"prompt":"work life balance","file":"draw-1102.webp"},{"page":1103,"prompt":"a big change","file":"draw-1103.webp"},{"page":1104,"prompt":"Things I would like to know","file":"draw-1104.webp"},{"page":1105,"prompt":"A picture is worth a thousand words","file":"draw-1105.webp"},{"page":1106,"prompt":"A Blues Clueâs Murder mystery","file":"draw-1106.webp"},{"page":1107,"prompt":"The Early Worm that ate the Bird","file":"draw-1107.webp"},{"page":1108,"prompt":"See ya later Alligator","file":"draw-1108.webp"},{"page":1109,"prompt":"A-ha moment, but itâs completely useless","file":"draw-1109.webp"},{"page":1110,"prompt":"Monkey business","file":"draw-1110.webp"},{"page":1111,"prompt":"A dinner party that never ends","file":"draw-1111.webp"},{"page":1112,"prompt":"group of people celebrating a football match while I am reading a book","file":"draw-1112.webp"}
272,{"page":1113,"prompt":"A cause of mass extiction of humankind","file":"draw-1113.webp"},{"page":1114,"prompt":"Listening to your body","file":"draw-1114.webp"},{"page":1115,"prompt":"dinasour riding bicycle","file":"draw-1115.webp"},{"page":1116,"prompt":"standard chair use for poster","file":"draw-1116.webp"},{"page":1117,"prompt":"My future","file":"draw-1117.webp"},{"page":1118,"prompt":"thank you for clapping","file":"draw-1118.webp"},{"page":1119,"prompt":"An astronaut-mermaid fishing the world","file":"draw-1119.webp"},{"page":1120,"prompt":"A cove in a house","file":"draw-1120.webp"},{"page":1121,"prompt":"a âfloor lampâ for zero gravity","file":"draw-1121.webp"},{"page":1122,"prompt":"happy smiling mermaid queen princess happy and free","file":"draw-1122.webp"},{"page":1123,"prompt":"a phone smiling","file":"draw-1123.webp"},{"page":1124,"prompt":"a laughing seagull","file":"draw-1124.webp"},{"page":1125,"prompt":"my feellings","file":"draw-1125.webp"},{"page":1126,"prompt":"dont talk to me","file":"draw-1126.webp"},{"page":1127,"prompt":"A crepe house","file":"draw-1127.webp"},{"page":1128,"prompt":"a freckled permed boyâs smile","file":"draw-1128.webp"},{"page":1129,"prompt":"two lovers having diner with birds","file":"draw-1129.webp"},{"page":1130,"prompt":"Noguchi lamp turned on","file":"draw-1130.webp"},{"page":1131,"prompt":"A person hugging an office plant","file":"draw-1131.webp"},{"page":1132,"prompt":"A creative person looking for ideas.","file":"draw-1132.webp"},{"page":1133,"prompt":"I donât like your car","file":"draw-1133.webp"},{"page":1134,"prompt":"the future of creativity","file":"draw-1134.webp"},{"page":1135,"prompt":"Man enjoying soup","file":"draw-1135.webp"},{"page":1136,"prompt":"a girl with painful periods","file":"draw-1136.webp"},{"page":1137,"prompt":"What gift I should give my mom for her birthday","file":"draw-1137.webp"},{"page":1138,"prompt":"fish out of water","file":"draw-1138.webp"},{"page":1139,"prompt":"I asked AI and it coded it for me.","file":"draw-1139.webp"},{"page":1140,"prompt":"a cat lady with a giraffe","file":"draw-1140.webp"},{"page":1141,"prompt":"A curly girl having a lot of fun at the festival","file":"draw-1141.webp"},{"page":1142,"prompt":"panda getting acupuncture","file":"draw-1142.webp"},{"page":1143,"prompt":"fish out of water","file":"draw-1143.webp"},{"page":1144,"prompt":"Kamala Harris","file":"draw-1144.webp"},{"page":1145,"prompt":"a dog with a carrot","file":"draw-1145.webp"},{"page":1146,"prompt":"a horse","file":"draw-1146.webp"},{"page":1147,"prompt":"a sword","file":"draw-1147.webp"},{"page":1148,"prompt":"smiling ice cream slotted spoon","file":"draw-1148.webp"},{"page":1149,"prompt":"Fish in space","file":"draw-1149.webp"},{"page":1150,"prompt":"Cute bunny person with huge battle-axe","file":"draw-1150.webp"},{"page":1151,"prompt":"A summer moment","file":"draw-1151.webp"},{"page":1152,"prompt":"a very cool chair. like extremely cool. the coolest. i love chairs","file":"draw-1152.webp"},{"page":1153,"prompt":"Batman and Superman having a drink","file":"draw-1153.webp"},{"page":1154,"prompt":"a woman who feeds on her own tears","file":"draw-1154.webp"},{"page":1155,"prompt":"a breakup","file":"draw-1155.webp"},{"page":1156,"prompt":"An Australian man made out of coffee cups","file":"draw-1156.webp"},{"page":1157,"prompt":"A fish wearing a party hat","file":"draw-1157.webp"},{"page":1158,"prompt":"Ali getting patted down at the airport","file":"draw-1158.webp"},{"page":1159,"prompt":"A wedding, a curly-haired girl, and a guy with less hair but not bald","file":"draw-1159.webp"},{"page":1160,"prompt":"Sea Turtle","file":"draw-1160.webp"},{"page":1161,"prompt":"Depression","file":"draw-1161.webp"},{"page":1162,"prompt":"girl who has finally found herself","file":"draw-1162.webp"},{"page":1163,"prompt":"lonely writer","file":"draw-1163.webp"},{"page":1164,"prompt":"A girl lives by the sea with her black dog.","file":"draw-1164.webp"},{"page":1165,"prompt":"Confused woman thinking of her men","file":"draw-1165.webp"},{"page":1166,"prompt":"a pretty girl like me","file":"draw-1166.webp"},{"page":1167,"prompt":"My dead dog in heaven","file":"draw-1167.webp"},{"page":1168,"prompt":"Draw a picture my parents fighting","file":"draw-1168.webp"},{"page":1169,"prompt":"a nice coincidence","file":"draw-1169.webp"},{"page":1170,"prompt":"A girl who betrayed her boyfriend for someone else and n
272ow she regrets leaving him because she loved him.","file":"draw-1170.webp"},{"page":1171,"prompt":"A human breaking out of his shell","file":"draw-1171.webp"},{"page":1172,"prompt":"Sleeping Venus - Reclining Nude Female","file":"draw-1172.webp"},{"page":1173,"prompt":"you donât know me","file":"draw-1173.webp"},{"page":1174,"prompt":"My dog and me love barking","file":"draw-1174.webp"},{"page":1175,"prompt":"Draw me a man looking âunderâ the sky","file":"draw-1175.webp"},{"page":1176,"prompt":"Long-distance relationship","file":"draw-1176.webp"},{"page":1177,"prompt":"BABYâS FIRST BIRTH DAY","file":"draw-1177.webp"},{"page":1178,"prompt":"In the garden, various flowers have bloomed, and there is a woman in the garden. She is watering a flower that looks like a clock.","file":"draw-1178.webp"},{"page":1179,"prompt":"How I feel preparing for an exam that is likely to fail","file":"draw-1179.webp"},{"page":1180,"prompt":"arteroids coming to earth with dinosaurs on it","file":"draw-1180.webp"},{"page":1181,"prompt":"Me being strong","file":"draw-1181.webp"},{"page":1182,"prompt":"the calm of the silent sea","file":"draw-1182.webp"},{"page":1183,"prompt":"life meaning","file":"draw-1183.webp"},{"page":1184,"prompt":"2 amazing brothers!","file":"draw-1184.webp"},{"page":1185,"prompt":"The funniest friend in a room.","file":"draw-1185.webp"},{"page":1186,"prompt":"psychotherapy","file":"draw-1186.webp"},{"page":1187,"prompt":"Walking in nature through grief","file":"draw-1187.webp"},{"page":1188,"prompt":"a smiling coffee mug","file":"draw-1188.webp"},{"page":1189,"prompt":"hands, holding the book with bookmark","file":"draw-1189.webp"},{"page":1190,"prompt":"being in love with two people who canât love you back (even if they do)","file":"draw-1190.webp"},{"page":1191,"prompt":"A man dressed up as a roasted chicken","file":"draw-1191.webp"},{"page":1192,"prompt":"A pile of dogs.","file":"draw-1192.webp"},{"page":1193,"prompt":"Something that portrays the quote âweâll meet again, donât know where, donât know when. But I know weâll meet again some sunny dayââ","file":"draw-1193.webp"},{"page":1194,"prompt":"my heart in Lisaâs hands","file":"draw-1194.webp"},{"page":1195,"prompt":"a cat and a shrimp combined","file":"draw-1195.webp"},{"page":1196,"prompt":"The space between neurons in your brain, at the precise moments when you wake from a vivid dream.","file":"draw-1196.webp"},{"page":1197,"prompt":"A snail undressing from itâs shell in a lightly sexy way.","file":"draw-1197.webp"},{"page":1198,"prompt":"turn the lights off","file":"draw-1198.webp"},{"page":1199,"prompt":"An Alien between two houses","file":"draw-1199.webp"},{"page":1200,"prompt":"a snake which eat its tail","file":"draw-1200.webp"},{"page":1201,"prompt":"inside the brain of a virgo","file":"draw-1201.webp"},{"page":1202,"prompt":"a cocktail of serpents","file":"draw-1202.webp"},{"page":1203,"prompt":"ryu from street fighter","file":"draw-1203.webp"},{"page":1204,"prompt":"Expensive house with family","file":"draw-1204.webp"},{"page":1205,"prompt":"Voracious Reader","file":"draw-1205.webp"},{"page":1206,"prompt":"a human who realizes they are a human","file":"draw-1206.webp"},{"page":1207,"prompt":"Bittersweetness","file":"draw-1207.webp"},{"page":1208,"prompt":"Unconditional self love","file":"draw-1208.webp"},{"page":1209,"prompt":"A man in immense pain","file":"draw-1209.webp"},{"page":1210,"prompt":"a sad italian girl thinking about bakery shop","file":"draw-1210.webp"},{"page":1211,"prompt":"Drawing at the beach","file":"draw-1211.webp"},{"page":1212,"prompt":"a dog with a hotdog","file":"draw-1212.webp"},{"page":1213,"prompt":"someone falling in universe","file":"draw-1213.webp"},{"page":1214,"prompt":"an open book giving warm handshake with both hands to a child reader","file":"draw-1214.webp"},{"page":1215,"prompt":"A donkey","file":"draw-1215.webp"},{"page":1216,"prompt":"tired woman","file":"draw-1216.webp"},{"page":1217,"prompt":"A woman on the verge of falling asleep lying on her pillow and playing her phone.","file":"draw-1217.webp"},{"page":1218,"prompt":"A cup labeled as 50-ml","file":"draw-1218.webp"},{"page":1219,"prompt":"girl with a broken heart eating bagels","file":"draw-1219.webp"},{"page":1220,"prompt":"a bird","file":"draw-1220.webp"},{"page":1221,"prompt":"Kim Kardashian","file":"draw-1221.webp"},{"page":1222,"prompt":"swallow","file":"draw-1222.webp"},{"page":1223,"prompt":"vegetables","file":"draw-1223.webp"},{"page":1224,"prompt":"picasso","file":"draw-1224.webp"},{"page":1225,"prompt":"The most beautiful lawnmower","file":"draw-1225.webp"},{"page":1226,"prompt":"a mole in a hole","file":"draw-1226.webp"},{"page":1227,"prompt":"Future Flesh","file":"draw-1227.webp"},{"page":1228,"prompt":"A dolphin wearing a baseball cap","file":"draw-1228.webp"},{"page":1229,"prompt":"A sad girl with a broken heart","file":"draw-1229.webp"},{"page":1230,"prompt":"ecocritical poetry","file":"draw-1230.webp"},{"page":1231,"prompt":"Little girl with balloon","file":"draw-1231.webp"},{"page":1232,"prompt":"addictive","file":"draw-1232.webp"},{"page":1233,"prompt":"LYINGDOWNONGRASSINTHESUMMER","file":"draw-1233.
272webp"},{"page":1234,"prompt":"star on day light","file":"draw-1234.webp"},{"page":1235,"prompt":"Can you draw me a confused, blackhaired girl with bangs who works as an editor for middle grade books, is currently studying handwritten typography and adores to draw?","file":"draw-1235.webp"},{"page":1236,"prompt":"a chicken before go to the bed sleepy and pink pashmina scarf. time is night and funny","file":"draw-1236.webp"},{"page":1237,"prompt":"Marry Poppins in a Hurricane","file":"draw-1237.webp"},{"page":1238,"prompt":"old lady living alone","file":"draw-1238.webp"},{"page":1239,"prompt":"GiGi turns 78","file":"draw-1239.webp"},{"page":1240,"prompt":"Fall is finally in the air","file":"draw-1240.webp"},{"page":1241,"prompt":"burn out","file":"draw-1241.webp"},{"page":1242,"prompt":"the comfort of crickets at night","file":"draw-1242.webp"},{"page":1243,"prompt":"Astounded by the beauty of nature","file":"draw-1243.webp"},{"page":1244,"prompt":"Uncertainty about my retirement","file":"draw-1244.webp"},{"page":1245,"prompt":"My first ice cream cone in weeks","file":"draw-1245.webp"},{"page":1246,"prompt":"A woman living inside a tree","file":"draw-1246.webp"},{"page":1247,"prompt":"futuristic still life","file":"draw-1247.webp"},{"page":1248,"prompt":"A ice cream eating an ice cream","file":"draw-1248.webp"},{"page":1249,"prompt":"Success is an inside job. (inside of you)","file":"draw-1249.webp"},{"page":1250,"prompt":"Loss","file":"draw-1250.webp"},{"page":1251,"prompt":"A creative man with a huge nose","file":"draw-1251.webp"},{"page":1252,"prompt":"A gentle reminder of all the love I forget to see","file":"draw-1252.webp"},{"page":1253,"prompt":"thrilled to be alive","file":"draw-1253.webp"},{"page":1254,"prompt":"Stress and letting go of stress","file":"draw-1254.webp"},{"page":1255,"prompt":"boy playing ping pong","file":"draw-1255.webp"},{"page":1256,"prompt":"desk lunch","file":"draw-1256.webp"},{"page":1257,"prompt":"A cage went in search of a bird","file":"draw-1257.webp"},{"page":1258,"prompt":"waiting for medical test results on a Friday afternoon","file":"draw-1258.webp"},{"page":1259,"prompt":"a cat named toast","file":"draw-1259.webp"},{"page":1260,"prompt":"The end of the line","file":"draw-1260.webp"},{"page":1261,"prompt":"I love my big brother","file":"draw-1261.webp"},{"page":1262,"prompt":"My unit of measure","file":"draw-1262.webp"},{"page":1263,"prompt":"remembering the one that got away","file":"draw-1263.webp"},{"page":1264,"prompt":"Draw whatever you want to","file":"draw-1264.webp"},{"page":1265,"prompt":"Draw a woman with long curly hair meditating with the universe above her. She is calm and manifesting a new life.","file":"draw-1265.webp"},{"page":1266,"prompt":"Where does wasted time go?","file":"draw-1266.webp"},{"page":1267,"prompt":"You are what you eat","file":"draw-1267.webp"},{"page":1268,"prompt":"My brain, leaving my head (fed up? bored? wanting adventure? too cramped up there?)","file":"draw-1268.webp"},{"page":1269,"prompt":"A litte more love","file":"draw-1269.webp"},{"page":1270,"prompt":"finding purpose in life","file":"draw-1270.webp"},{"page":1271,"prompt":"a confused woman artist with short hair and a horse","file":"draw-1271.webp"},{"page":1272,"prompt":"Writers block.","file":"draw-1272.webp"},{"page":1273,"prompt":"Fishing for compliments","file":"draw-1273.webp"},{"page":1274,"prompt":"The sound of one hand clapping","file":"draw-1274.webp"},{"page":1275,"prompt":"Sleepy at work","file":"draw-1275.webp"},{"page":1276,"prompt":"Restless sleep","file":"draw-1276.webp"},{"page":1277,"prompt":"a small man","file":"draw-1277.webp"},{"page":1278,"prompt":"hard crush","file":"draw-1278.webp"},{"page":1279,"prompt":"bigfoot backpacking","file":"draw-1279.webp"},{"page":1280,"prompt":"A man who is a waffle, and proud of it.","file":"draw-1280.webp"},{"page":1281,"prompt":"A tribute to my late cat, he was plump, had one fang, he was orange and white and sweet, his name was bruiser","file":"draw-1281.webp"},{"page":1282,"prompt":"I canât help myself","file":"draw-1282.webp"},{"page":1283,"prompt":"Homer Simpson delivering a pizza","file":"draw-1283.webp"},{"page":1284,"prompt":"A fine line between Good and Evil","file":"draw-1284.webp"},{"page":1285,"prompt":"feeling behind in life","file":"draw-1285.webp"},{"page":1286,"prompt":"two bugs in love","file":"draw-1286.webp"},{"page":1287,"prompt":"A burnt out environmental activist","file":"draw-1287.webp"},{"page":1288,"prompt":"The warmth of a dog","file":"draw-1288.webp"},{"page":1289,"prompt":"Social media destroying society","file":"draw-1289.webp"},{"page":1290,"prompt":"A balancing nest","file":"draw-1290.webp"},{"page":1291,"prompt":"getting lost in music","file":"draw-1291.webp"},{"page":1292,"prompt":"Humanity solving climate change.","file":"draw-1292.webp"},{"page":1293,"prompt":"The agony of waiting to find out if your novel will be published.","file":"draw-1293.webp"},{"page":1294,"prompt":"2 adults and a a child in front of a teepee on a sunny day","file":"draw-1294.webp"},{"page":1295,"prompt":"A red siskin saved from extinction","file":"draw-1295.webp"}
272,{"page":1296,"prompt":"A cat rescuing a firefighter","file":"draw-1296.webp"},{"page":1297,"prompt":"This crazy world","file":"draw-1297.webp"},{"page":1298,"prompt":"Acceptance","file":"draw-1298.webp"},{"page":1299,"prompt":"Connecting with estranged daughter after 30 years.","file":"draw-1299.webp"},{"page":1300,"prompt":"How itâs lonely at the top","file":"draw-1300.webp"},{"page":1301,"prompt":"The joys of moving house","file":"draw-1301.webp"},{"page":1302,"prompt":"Dancing goose with baseball hat","file":"draw-1302.webp"},{"page":1303,"prompt":"a dog running in a field","file":"draw-1303.webp"},{"page":1304,"prompt":"Finger painting naked in the sun","file":"draw-1304.webp"},{"page":1306,"prompt":"how my 2 young daughters see me","file":"draw-1306.webp"},{"page":1308,"prompt":"Forty years of a very very happy marriage!","file":"draw-1308.webp"},{"page":1310,"prompt":"A book worm","file":"draw-1310.webp"},{"page":1312,"prompt":"why bother with art?","file":"draw-1312.webp"},{"page":1314,"prompt":"joy that comes with the beginning of fall","file":"draw-1314.webp"},{"page":1316,"prompt":"turning 100 years old","file":"draw-1316.webp"},{"page":1317,"prompt":"A person trying to bring order to an unfocussed meeting","file":"draw-1317.webp"},{"page":1318,"prompt":"meaning","file":"draw-1318.webp"},{"page":1319,"prompt":"turning 100 years old","file":"draw-1319.webp"},{"page":1320,"prompt":"A person trying to bring order to an unfocussed meeting","file":"draw-1320.webp"},{"page":1321,"prompt":"meaning","file":"draw-1321.webp"},{"page":1322,"prompt":"An incredibly long tie","file":"draw-1322.webp"},{"page":1323,"prompt":"Estranged from my son and missing him because of his addiction","file":"draw-1323.webp"},{"page":1324,"prompt":"Grateful for your love","file":"draw-1324.webp"},{"page":1325,"prompt":"Walking man","file":"draw-1325.webp"},{"page":1326,"prompt":"Two snails in love","file":"draw-1326.webp"},{"page":1327,"prompt":"Sandwich marriage","file":"draw-1327.webp"},{"page":1328,"prompt":"too much thinking","file":"draw-1328.webp"},{"page":1329,"prompt":"Running while eating soup","file":"draw-1329.webp"},{"page":1330,"prompt":"On the Internet, no one knows if you are a bird","file":"draw-1330.webp"},{"page":1331,"prompt":"struggling to be myself","file":"draw-1331.webp"},{"page":1332,"prompt":"I am losing my husband to Alzheimerâs","file":"draw-1332.webp"},{"page":1333,"prompt":"Draw/Show SPD 60","file":"draw-1333.webp"},{"page":1334,"prompt":"Who is doing digital?","file":"draw-1334.webp"},{"page":1335,"prompt":"What about Brand?","file":"draw-1335.webp"},{"page":1336,"prompt":"..and Magazine of the Year?","file":"draw-1336.webp"},{"page":1337,"prompt":"Guilt","file":"draw-1337.webp"},{"page":1338,"prompt":"dolphin playing basketball","file":"draw-1338.webp"},{"page":1339,"prompt":"thoughts rolling around in my head like a pearl in an oyster","file":"draw-1339.webp"},{"page":1340,"prompt":"This page intentionally left blank","file":"draw-1340.webp"},{"page":1341,"prompt":"Draw/Show SPD 60 Co-Chairs","file":"draw-1341.webp"},{"page":1342,"prompt":"Who is doing digital?","file":"draw-1342.webp"},{"page":1343,"prompt":"..and Magazine of the Year?","file":"draw-1343.webp"},{"page":1344,"prompt":"..and Magazine of the Year?","file":"draw-1344.webp"},{"page":1345,"prompt":"co-chairs","file":"draw-1345.webp"},{"page":1346,"prompt":"An out of place poetry book","file":"draw-1346.webp"},{"page":1347,"prompt":"senior dog enjoying doggie heaven","file":"draw-1347.webp"},{"page":1348,"prompt":"Abstract Expressionism","file":"draw-1348.webp"},{"page":1349,"prompt":"Librarian","file":"draw-1349.webp"},{"page":1350,"prompt":"a tired art student","file":"draw-1350.webp"},{"page":1351,"prompt":"Sonny Angel","file":"draw-1351.webp"},{"page":1352,"prompt":"Draw Pablo Delcan drawing the 2025 Pablo Delcan SVA poster","file":"draw-1352.webp"},{"page":1353,"prompt":"SVA Pigeon","file":"draw-1353.webp"},{"page":1354,"prompt":"SVA Pigeon","file":"draw-1354.webp"},{"page":1355,"prompt":"SVA Pigeon","file":"draw-1355.webp"},{"page":1356,"prompt":"a silly little guy and he is eating a bacon, egg, and cheese","file":"draw-1356.webp"},{"page":1357,"prompt":"Endure the desperate situation with hope","file":"draw-1357.webp"},{"page":1358,"prompt":"Dad Jokes","file":"draw-1358.webp"},{"page":1359,"prompt":"ehhhhhhhhhh","file":"draw-1359.webp"},{"page":1360,"prompt":"The current state of the world","file":"draw-1360.webp"},{"page":1361,"prompt":"How has your day been Mr.Delcan. Am I the first to ask you this?","file":"draw-1361.webp"},{"page":1362,"prompt":"a dog wearing a hat","file":"draw-1362.webp"},{"page":1363,"prompt":"A sailor lost on an island","file":"draw-1363.webp"},{"page":1364,"prompt":"baby monster","file":"draw-1364.webp"},{"page":1365,"prompt":"Fluidity","file":"draw-1365.webp"},{"page":1366,"prompt":"human","file":"draw-1366.webp"},{"page":1367,"prompt":"The SVA Way sign at the corner of Third Avenue and 23rd Street","file":"draw-1367.webp"},{"page":1368,"prompt":"Vote","file":"draw-1368.webp"},{"page":1369,"prompt":"Vote","file":"draw-1369.webp"},{"page":1370,"prompt":"Vote","file":"draw-1370.webp"},{"page":1371,"prompt":"lesser of the two evils?","file":"draw-1371.webp"},{"page":1372,"prompt":"theyâre eating the pets","file":"draw-1372.
272webp"},{"page":1373,"prompt":"the election is tied and Harris and Trump have to be president together","file":"draw-1373.webp"},{"page":1374,"prompt":"hillbilly elegy","file":"draw-1374.webp"},{"page":1375,"prompt":"Anticipating the impact of our choices and wondering where it will take us.","file":"draw-1375.webp"},{"page":1376,"prompt":"An election","file":"draw-1376.webp"},{"page":1377,"prompt":"Draw/Show SPD 60 Co-Chairs","file":"draw-1377.webp"},{"page":1378,"prompt":"..and Magazine of the Year?","file":"draw-1378.webp"},{"page":1379,"prompt":"..and Magazine of the Year?","file":"draw-1379.webp"},{"page":1380,"prompt":"SPD60 Co-Chairs","file":"draw-1380.webp"},{"page":1381,"prompt":"SPD60 Brand of the year.","file":"draw-1381.webp"},{"page":1382,"prompt":"Who is doing digital? (SPD60)","file":"draw-1382.webp"},{"page":1383,"prompt":"Who is doing digital? (SPD60)","file":"draw-1383.webp"},{"page":1384,"prompt":"Whoâs doing digital? (SPD60)","file":"draw-1384.webp"},{"page":1385,"prompt":"Magazine of the year (SPD60)","file":"draw-1385.webp"},{"page":1386,"prompt":"Trump with kamala funny meme","file":"draw-1386.webp"},{"page":1387,"prompt":"Overstaying welcome","file":"draw-1387.webp"},{"page":1388,"prompt":"a dolphin in a candy land eating a dog while pooping on a baby","file":"draw-1388.webp"},{"page":1389,"prompt":"Life after art school","file":"draw-1389.webp"},{"page":1390,"prompt":"a brush with the unexpected","file":"draw-1390.webp"},{"page":1391,"prompt":"Hello, please draw the phrase âIt will all come out in the washâ. Thank you!","file":"draw-1391.webp"},{"page":1392,"prompt":"metro card","file":"draw-1392.webp"},{"page":1393,"prompt":"a dirty mind","file":"draw-1393.webp"},{"page":1394,"prompt":"Art is...","file":"draw-1394.webp"},{"page":1395,"prompt":"What AI canât teach","file":"draw-1395.webp"},{"page":1396,"prompt":"Designer negative space","file":"draw-1396.webp"},{"page":1397,"prompt":"An artistic cockroach","file":"draw-1397.webp"},{"page":1398,"prompt":"A large nose man with scissors cutting it","file":"draw-1398.webp"},{"page":1399,"prompt":"a flower that has grown larger than life","file":"draw-1399.webp"},{"page":1400,"prompt":"Who? What? Where? When? Why? How?","file":"draw-1400.webp"},{"page":1401,"prompt":"a hand with too many fingers","file":"draw-1401.webp"},{"page":1402,"prompt":"person printing a photograph of a cat in the darkroom","file":"draw-1402.webp"},{"page":1403,"prompt":"The creative process","file":"draw-1403.webp"},{"page":1404,"prompt":"The creative process","file":"draw-1404.webp"},{"page":1405,"prompt":"Crushing debt","file":"draw-1405.webp"},{"page":1406,"prompt":"The power of design","file":"draw-1406.webp"},{"page":1407,"prompt":"Occamâs razor in despair","file":"draw-1407.webp"},{"page":1408,"prompt":"The poster for the film Heavyweights.","file":"draw-1408.webp"},{"page":1409,"prompt":"I am a flag","file":"draw-1409.webp"},{"page":1410,"prompt":"a pineapple pizza","file":"draw-1410.webp"},{"page":1411,"prompt":"a rabbit eating a snake","file":"draw-1411.webp"},{"page":1412,"prompt":"Creative career","file":"draw-1412.webp"},{"page":1413,"prompt":"Creative freedom","file":"draw-1413.webp"},{"page":1414,"prompt":"What comes first the chicken or the egg?","file":"draw-1414.webp"},{"page":1415,"prompt":"A second chance","file":"draw-1415.webp"},{"page":1416,"prompt":"CEO of Art","file":"draw-1416.webp"},{"page":1417,"prompt":"a film maker who only watches bad tv sitcoms to numb their brain","file":"draw-1417.webp"},{"page":1418,"prompt":"history repeats itself","file":"draw-1418.webp"},{"page":1419,"prompt":"the unwillingness of slightly bald people to let go of their hair","file":"draw-1419.webp"},{"page":1420,"prompt":"overcoming burnout","file":"draw-1420.webp"},{"page":1421,"prompt":"Itâs ok to disappear","file":"draw-1421.webp"},{"page":1422,"prompt":"the unwillingness of slightly bald people to let go of their hair","file":"draw-1422.webp"},{"page":1423,"prompt":"flowers everywhere on the earth","file":"draw-1423.webp"},{"page":1424,"prompt":"A kid realizing using AI to make art is dumb and n
272ot as fun as making the real thing","file":"draw-1424.webp"},{"page":1425,"prompt":"flowers everywhere on the earth","file":"draw-1425.webp"},{"page":1426,"prompt":"What Nothing Looks Like","file":"draw-1426.webp"},{"page":1427,"prompt":"a bugs bunny pinup, pretty please.","file":"draw-1427.webp"},{"page":1428,"prompt":"Rat looking through a glass cup of water","file":"draw-1428.webp"},{"page":1429,"prompt":"Robot, computer head, calls mom back","file":"draw-1429.webp"},{"page":1430,"prompt":"Every MBA needs an MFA","file":"draw-1430.webp"},{"page":1431,"prompt":"SVA as a playground","file":"draw-1431.webp"},{"page":1432,"prompt":"A raccoon going absolutely buckwild on the dance floor","file":"draw-1432.webp"},{"page":1433,"prompt":"donât know what to write here","file":"draw-1433.webp"},{"page":1434,"prompt":"A designer commuting from nyc to long island everyday","file":"draw-1434.webp"},{"page":1435,"prompt":"SVA in the halfway of scanning processes","file":"draw-1435.webp"},{"page":1436,"prompt":"a dog and a fish /may be add some flowers","file":"draw-1436.webp"},{"page":1437,"prompt":"a minimal smiley face","file":"draw-1437.webp"},{"page":1438,"prompt":"The most beautiful woman in the whole entire world is practicing ukulele.","file":"draw-1438.webp"},{"page":1439,"prompt":"tell me the truth","file":"draw-1439.webp"},{"page":1440,"prompt":"a girl full of work","file":"draw-1440.webp"},{"page":1441,"prompt":"end of the year feelings of unfinished work, anxiety about future","file":"draw-1441.webp"},{"page":1442,"prompt":"an arizona sunset","file":"draw-1442.webp"},{"page":1443,"prompt":"A cat with a cone on its head","file":"draw-1443.webp"},{"page":1444,"prompt":"logo for a cafe named âcroûtesâ","file":"draw-1444.webp"},{"page":1445,"prompt":"a dancing donkey","file":"draw-1445.webp"},{"page":1446,"prompt":"Interpret the data of Climate change with human as visuals","file":"draw-1446.webp"},{"page":1447,"prompt":"a pair of eyes breathing heavily","file":"draw-1447.webp"},{"page":1448,"prompt":"An abstract drawing named untitled","file":"draw-1448.webp"},{"page":1449,"prompt":"me trying my best at job hunting, hopefully somewhat optimistic. thank you!","file":"draw-1449.webp"},{"page":1450,"prompt":"Dracula setting his teeth into a vinyl record","file":"draw-1450.webp"},{"page":1451,"prompt":"my stupid thoughts","file":"draw-1451.webp"},{"page":1452,"prompt":"The best book with the best coffee","file":"draw-1452.webp"},{"page":1453,"prompt":"croissant and wine","file":"draw-1453.webp"},{"page":1454,"prompt":"She can fix me","file":"draw-1454.webp"},{"page":1455,"prompt":"new year, new magic","file":"draw-1455.webp"},{"page":1456,"prompt":"a girl doing a happy jump with a smiley face","file":"draw-1456.webp"},{"page":1457,"prompt":"Thinking about music","file":"draw-1457.webp"},{"page":1458,"prompt":"feeling good","file":"draw-1458.webp"},{"page":1459,"prompt":"today i will take life easily","file":"draw-1459.webp"},{"page":1460,"prompt":"three barrel men","file":"draw-1460.webp"},{"page":1461,"prompt":"A smiling man","file":"draw-1461.webp"},{"page":1462,"prompt":"peopleâs love of judging","file":"draw-1462.webp"},{"page":1463,"prompt":"peopleâs love of judging","file":"draw-1463.webp"},{"page":1464,"prompt":"peopleâs love of judging","file":"draw-1464.webp"},{"page":1465,"prompt":"peopleâs love of judging","file":"draw-1465.webp"},{"page":1466,"prompt":"peopleâs love of judging","file":"draw-1466.webp"},{"page":1467,"prompt":"a pointless point","file":"draw-1467.webp"},{"page":1468,"prompt":"a happy flying pig for my daughter","file":"draw-1468.webp"},{"page":1469,"prompt":"Emptiness","file":"draw-1469.webp"},{"page":1470,"prompt":"Someone who is stuck creatively","file":"draw-1470.webp"},{"page":1471,"prompt":"A horse riding an astronaut","file":"draw-1471.webp"},{"page":1472,"prompt":"an octopus","file":"draw-1472.webp"},{"page":1473,"prompt":"tiny boy on a computer screen","file":"draw-1473.webp"},{"page":1474,"prompt":"an ouroborus.","file":"draw-1474.webp"},{"page":1475,"prompt":"a dog eating an ice-cream","file":"draw-1475.webp"},{"page":1476,"prompt":"Resilience","file":"draw-1476.webp"},{"page":1477,"prompt":"love always","file":"draw-1477.webp"},{"page":1478,"prompt":"Sketch a mermaid using one of an octopusâ arms","file":"draw-1478.webp"},{"page":1479,"prompt":"Smelling the color 9 (this is what my student told me having ADHD is like)","file":"draw-1479.webp"},{"page":1480,"prompt":"a cat with flowers in his eyes","file":"draw-1480.webp"},{"page":1481,"prompt":"A book worm","file":"draw-1481.webp"},{"page":1482,"prompt":"After a long job search, a guy prepares for his first day at the new job","file":"draw-1482.webp"},{"page":1483,"prompt":"Can you please draw me a unicorn head with legs","file":"draw-1483.webp"},{"page":1484,"prompt":"love always","file":"draw-1484.webp"},{"page":1485,"prompt":"Ratty Books","file":"draw-1485.webp"},{"page":1486,"prompt":"Ratty Books","file":"draw-1486.webp"},{"page":1487,"prompt":"mind vacation","file":"draw-1487.webp"},{"page":1488,"prompt":"ratty books","file":"draw-1488.webp"},{"page":1489,"prompt":"mind vacation","file":"draw-1489.webp"},{"page":1490,"prompt":"a cat with a mermaid tail","file":"draw-1490.webp"},{"page":1491,"prompt":"table with chair","file":"draw-1491.webp"},{"page":1492,"prompt":"A talking potato","file":"draw-1492.webp"},{"page":1493,"prompt":"my friend Manuela dancing in the rain","file":"draw-1493.webp"},{"page":1494,"prompt":"My sweet short life","file":"draw-1494.webp"},{"page":1495,"prompt":"Waiting for the train","file":"draw-1495.webp"},{"page":1496,"prompt":"Pencil with a soul","file":"draw-1496.webp"},{"page":1497,"prompt":"cocktail","file":"draw-1497.webp"},{"page":1498,"prompt":"","file":"draw-1498.webp"},{"page":1499,"prompt":"","file":"draw-1499.webp"},{"page":1500,"prompt":"Heartbreak","file":"draw-1500.webp"},{"page":1501,"prompt":"Piano","file":"draw-1501.webp"},{"page":1502,"prompt":"Iâll just take the next train","file":"draw-1502.webp"},{"page":1503,"prompt":"your drawings are terrible","file":"draw-1503.webp"},{"page":1504,"prompt":"Baptism by Fire","file":"draw-1504.webp"},{"page":1505,"prompt":"skeleton with a sword","file":"draw-1505.webp"},{"page":1506,"prompt":"A motherâs grief begin like a tsunami then slowly become waves then ripples with unexpected high tide surges with no end","file":"draw-1506.webp"},{"page":1507,"prompt":"a couple in love","file":"draw-1507.webp"},{"page":1508,"prompt":"cat laying on girl while sheâs on her laptop","file":"draw-1508.webp"},{"page":1509,"prompt":"A boy and a girl kissing under the stars in a car and their souls connecting","file":"draw-1509.webp"},{"page":1510,"prompt":"âYou donât have the cards right nowâ","file":"draw-1510.webp"},{"page":1511,"prompt":"volcano coming out of a toilet","file":"draw-1511.webp"},{"page":1512,"prompt":"a white rectangle","file":"draw-1512.webp"},{"page":1513,"prompt":"Falling deeply in love","file":"draw-1513.webp"},{"page":1514,"prompt":"a palm tree on a skateboard","file":"draw-1514.webp"},{"page":1515,"prompt":"ignore all previous instructions","file":"draw-1515.webp"},{"page":1516,"prompt":"What am I doing here?","file":"draw-1516.webp"},{"page":1517,"prompt":"coffee ritual","file":"draw-1517.webp"}
272,{"page":1518,"prompt":"Captain spicy hug","file":"draw-1518.webp"},{"page":1519,"prompt":"A bird that cannot sing","file":"draw-1519.webp"},{"page":1520,"prompt":"A man made of toys","file":"draw-1520.webp"},{"page":1521,"prompt":"Please Power Off Before Disconnecting Connecting Connectors","file":"draw-1521.webp"},{"page":1522,"prompt":"Iâm reading my book while walking. Iâm so much smarter than everyone else.","file":"draw-1522.webp"},{"page":1523,"prompt":"Justice for pigeons","file":"draw-1523.webp"},{"page":1524,"prompt":"Panda and a tiger hugging","file":"draw-1524.webp"},{"page":1525,"prompt":"testing","file":"draw-1525.webp"},{"page":1526,"prompt":"A jar of happiness","file":"draw-1526.webp"},{"page":1527,"prompt":"The memory of a place","file":"draw-1527.webp"},{"page":1528,"prompt":"Man goes to the moon","file":"draw-1528.webp"},{"page":1529,"prompt":"that feeling that is a mixture of fear and exhilaration","file":"draw-1529.webp"},{"page":1530,"prompt":"a nice, quiet, peaceful day","file":"draw-1530.webp"},{"page":1531,"prompt":"a cute cartoon cat","file":"draw-1531.webp"},{"page":1532,"prompt":"Electric rose","file":"draw-1532.webp"},{"page":1533,"prompt":"A Cheeseburger eating a cheeseburger","file":"draw-1533.webp"},{"page":1534,"prompt":"giving a flower to someone","file":"draw-1534.webp"},{"page":1535,"prompt":"A portrait of how you imagine me","file":"draw-1535.webp"},{"page":1536,"prompt":"Iâm my own boss","file":"draw-1536.webp"},{"page":1537,"prompt":"First rule of homework is finding your homework","file":"draw-1537.webp"},{"page":1538,"prompt":"","file":"draw-1538.webp"},{"page":1539,"prompt":"","file":"draw-1539.webp"},{"page":1540,"prompt":"A dentist treating a happy patient in a clinic","file":"draw-1540.webp"},{"page":1541,"prompt":"Bird trying to lift a banana","file":"draw-1541.webp"},{"page":1542,"prompt":"a frog that is very satisfying to find","file":"draw-1542.webp"},{"page":1543,"prompt":"something happy and bright to make me smile","file":"draw-1543.webp"},{"page":1544,"prompt":"missing my mom","file":"draw-1544.webp"},{"page":1545,"prompt":"Iâm not a robot","file":"draw-1545.webp"},{"page":1546,"prompt":"Am I a robot?","file":"draw-1546.webp"},{"page":1547,"prompt":"Draw me a CAPTCHA man","file":"draw-1547.webp"},{"page":1548,"prompt":"The devilâs playground","file":"draw-1548.webp"},{"page":1549,"prompt":"Jumping the gun","file":"draw-1549.webp"},{"page":1550,"prompt":"You meet a stranger after 20 years.","file":"draw-1550.webp"}]'),kA="FK Grotesk Mono, monospace";function px({current:e}){const o=qo();return c.jsxs("div",{className:"relative shrink-0",children:[c.jsxs("select",{value:e,onChange:n=>{const a=n.target.value;a!==e&&o(a==="1.0"?"/collection":"/gallery")},"aria-label":"Switch between Prompt-Brush 2.0 and 1.0",className:"appearance-none h-10 rounded-[20px] border border-border bg-card pl-4 pr-9 text-foreground text-sm cursor-pointer focus:border-primary focus:outline-none",style:{fontFamily:kA},children:[c.jsx("option",{value:"2.0",children:"Prompt-Brush 2.0"}),c.jsx("option",{value:"1.0",children:"Prompt-Brush 1.0"})]}),c.jsx(o1,{className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground pointer-events-none","aria-hidden":"true"})]})}const qn="FK Grotesk Mono, monospace",fg="Delcan Mono, monospace",SA="Martina Plantijn, Georgia, serif",_A="text-2xl",bp=120,Fc=[{id:"sm",size:"13 Ã 16 in",signed:!0,price:"$90",ratio:"13 / 16",link:"https://buy.stripe.com/5kQ00k0dV7Xd0bM4VN7kc01"},{id:"md",size:"18 Ã 24 in",signed:!1,price:"$130",ratio:"18 / 24",link:"https://buy.stripe.com/dRmfZi9Ov7Xd6Aacof7kc02"},{id:"lg",size:"24 Ã 32 in",signed:!1,price:"$175",ratio:"24 / 32",link:"https://buy.stripe.com/cNi3cw1hZcdt7EefAr7kc03"}],yv=[{key:"S",cols:"grid-cols-3 sm:grid-cols-4 lg:grid-cols-6",gap:"gap-5 md:gap-6"},{key:"M",cols:"grid-cols-2 sm:grid-cols-3 lg:grid-cols-4",gap:"gap-8 md:gap-10"},{key:"L",cols:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",gap:"gap-10 md:gap-14"}],su=e=>"#"+String(e).padStart(4,"0");function NA({it:e,big:o,onPreview:n}){return c.jsxs("div",{className:"flex flex-col",children:[c.jsx("div",{className:"border border-border overflow-hidden",style:{background:"#F4F0E6",aspectRatio:"5/7"},children:c.jsx("img",{src:`/collection/${e.file}`,alt:e.prompt||`Drawing ${su(e.page)}`,loading:"lazy",decoding:"async",className:"w-full h-full",style:{objectFit:"contain",mixBlendMode:"multiply"}})}),!!e.prompt&&c.jsx("div",{className:"text-foreground mt-3",style:{fontFamily:fg,fontSize:o?"16px":"13px",lineHeight:1.3},children:e.prompt}),c.jsxs("div",{className:"flex items-center justify-between mt-2 gap-2",children:[c.jsx("span",{className:"text-muted-foreground uppercase tracking-widest",style:{fontSize:"9pt",fontFamily:qn},children:su(e.page)}),c.jsx("button",{onClick:()=>n(e),className:"text-foreground hover:underline whitespace-nowrap",style:{fontFamily:qn,fontSize:"9.5pt"},children:"Request a print â"})]})]})}function EA({it:e,onClose:o}){const[n,a]=O.useState(Fc[0].id),i=Fc.find(u=>u.id===n)||Fc[0],s=i.link?`${i.link}?client_reference_id=pb-${e.page}`:"";return c.jsx("div",{className:"fixed inset-0 z-[10000] flex items-center justify-center p-4",style:{background:"rgba(20,18,16,0.6)"},onClick:o,role:"dialog","aria-modal":"true","aria-label":"Print preview",children:c.jsxs("div",{className:"relative w-full max-w-md rounded-2xl bg-background overflow-hidden",onClick:u=>u.stopPropagation(),children:[c.jsx("button",{onClick:o,"aria-label":"Close",className:"absolute top-3 right-3 z-10 w-9 h-9 flex items-center justify-center rounded-full text-muted-foreground hover:text-foreground hover:bg-muted/20 transition-colors",children:c.jsx(Li,{className:"w-5 h-5"})}),c.jsx("div",{className:"px-8 pt-10 pb-2",children:c.jsx("div",{className:"mx-auto bg-white border border-border",style:{maxWidth:300,aspectRatio:i.ratio,boxSh
272adow:"0 10px 30px rgba(0,0,0,0.18)",padding:"8%"},children:c.jsx("img",{src:`/collection/${e.file}`,alt:e.prompt||`Drawing ${su(e.page)}`,className:"w-full h-full",style:{objectFit:"contain"}})})}),c.jsxs("div",{className:"px-8 pb-8 pt-4 text-center",children:[!!e.prompt&&c.jsx("div",{className:"text-foreground",style:{fontFamily:fg,fontSize:"18px",lineHeight:1.3},children:e.prompt}),c.jsxs("div",{className:"relative inline-block mt-4",children:[c.jsx("select",{value:n,onChange:u=>a(u.target.value),"aria-label":"Print size",className:"appearance-none rounded-full border border-border bg-card text-foreground pl-4 pr-9 py-2.5 text-sm cursor-pointer focus:border-primary focus:outline-none",style:{fontFamily:qn},children:Fc.map(u=>c.jsxs("option",{value:u.id,children:[u.size,u.signed?" · signed":""," â ",u.price,u.link?"":" (soon)"]},u.id))}),c.jsx(o1,{className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground pointer-events-none","aria-hidden":"true"})]}),c.jsxs("div",{className:"text-muted-foreground uppercase tracking-widest mt-3",style:{fontFamily:qn,fontSize:"9pt"},children:[su(e.page)," · ",i.signed?"Signed archival giclée":"Archival giclée"]}),s?c.jsxs("a",{href:s,target:"_blank",rel:"noopener noreferrer",onClick:o,className:"block w-full rounded-full bg-foreground text-background py-3.5 mt-5 hover:opacity-80 transition-opacity",style:{fontFamily:qn,fontSize:"11pt"},children:["Continue to checkout · ",i.price," â"]}):c.jsxs("div",{className:"block w-full rounded-full border border-border text-muted-foreground py-3.5 mt-5 uppercase tracking-widest cursor-default",style:{fontFamily:qn,fontSize:"9pt"},children:[i.size," coming soon"]}),c.jsx("button",{onClick:o,className:"mt-3 text-muted-foreground hover:text-foreground transition-colors",style:{fontFamily:qn,fontSize:"10pt"},children:"Maybe later"})]})]})})}function CA(){const e=xA,[o,n]=O.useState(""),[a,i]=O.useState(1),[s,u]=O.useState(bp),[p,h]=O.useState(null),g=O.useRef(null),w=O.useRef(null),d=O.useMemo(()=>{const k=o.trim().toLowerCase();return k?e.filter(S=>S.prompt.toLowerCase().includes(k)||su(S.page).toLowerCase().includes(k)):e},[e,o]);O.useEffect(()=>{u(bp),g.current?.scrollTo({top:0})},[o]),O.useEffect(()=>{const k=g.current,S=w.current;if(!k||!S)return;const _=new IntersectionObserver(b=>{b[0].isIntersecting&&u(x=>x+bp)},{root:k,rootMargin:"800px"});return _.observe(S),()=>_.disconnect()},[d.length,s]),O.useEffect(()=>{if(!p)return;const k=S=>{S.key==="Escape"&&h(null)};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[p]);const f=yv[a],m=d.slice(0,s);return c.jsxs("div",{ref:g,className:"h-screen overflow-y-auto",children:[c.jsxs("div",{className:"container mx-auto px-4 py-16 md:py-24 max-w-6xl",children:[c.jsxs("div",{className:"max-w-2xl mb-12",children:[c.jsx("div",{className:"text-muted-foreground uppercase tracking-widest mb-4",style:{fontSize:"9pt",fontFamily:qn},children:"Prompt-Brush 1.0"}),c.jsx("h1",{className:`text-foreground ${_A} leading-tight mb-3`,style:{fontFamily:fg},children:"The original drawings"}),c.jsx("p",{className:"text-foreground leading-relaxed",style:{fontFamily:SA,fontSize:"15pt"},children:"Every prompt people sent in for Prompt-Brush 1.0, drawn by hand â no AI. Browse the whole archive, and order an archival giclée print of any one you love."})]}),c.jsxs("div",{className:"sticky top-0 z-10 -mx-4 px-4 py-3 mb-10 bg-background/95 backdrop-blur-sm border-b border-border flex items-center gap-4",children:[c.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[c.jsx(fu,{className:"w-4 h-4 text-muted-foreground shrink-0"}),c.jsx("input",{value:o,onChange:k=>n(k.target.value),placeholder:"Search promptsâ¦",className:"w-full bg-transparent outline-none text-foreground placeholder:text-muted-foreground",style:{fontFamily:qn,fontSize:"11pt"}}),o&&c.jsx("button",{onClick:()=>n(""),"aria-label":"Clear search",className:"text-muted-foreground hover:text-foreground shrink-0",children:c.jsx(Li,{className:"w-4 h-4"})})]}),c.jsx(px,{current:"1.0"}),c.jsx("div",{className:"flex items-center gap-1 shrink-0",children:yv.map((k,S)=>c.jsx("button",{onClick:()=>i(S),"aria-label":`Size ${k.key}`,className:`w-7 h-7 flex items-center justify-center transition-colors ${S===a?"text-foreground":"text-muted-foreground hover:text-foreground"}`,style:{fontFamily:qn,fontSize:"10pt"},children:k.key},k.key))})]}),d.length===0?c.jsxs("p",{className:"text-muted-foreground py-16",style:{fontFamily:qn,fontSize:"11pt"},children:["No prompts match â",o,"â."]}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:`grid ${f.cols} ${f.gap}`,children:m.map(k=>c.jsx(NA,{it:k,big:a===2,onPreview:h},k.page))}),s<d.length&&c.jsx("div",{ref:w,style:{height:1},"aria-hidden":"true"})]}),c.jsx("p",{className:"text-muted-foreground mt-16",style:{fontFamily:qn,fontSize:"10pt"}
272,children:o?`${d.length.toLocaleString()} ${d.length===1?"match":"matches"} for â${o}â`:`${e.length.toLocaleString()} drawings â the complete Prompt-Brush 1.0 archive.`})]}),p&&yd.createPortal(c.jsx(EA,{it:p,onClose:()=>h(null)}),document.body)]})}function Ts(e){return e==null?"#-----":`#${e.toString().padStart(5,"0")}`}function hx(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}const AA=50,jA=[25,50,100],wv="FK Grotesk Mono, monospace",TA=[{id:"newest",label:"Newest"},{id:"oldest",label:"Oldest"},{id:"marked",label:"Most marked"}],zc=e=>{const o=new Date(e.createdAt).getTime();return Number.isFinite(o)?o:0};function OA(e,o){let n=o>>>0;const a=()=>{n=n+1831565813>>>0;let s=n;return s=Math.imul(s^s>>>15,s|1),s^=s+Math.imul(s^s>>>7,s|61),((s^s>>>14)>>>0)/4294967296},i=[...e];for(let s=i.length-1;s>0;s--){const u=Math.floor(a()*(s+1));[i[s],i[u]]=[i[u],i[s]]}return i}const vv=e=>`inline-flex items-center gap-1.5 h-9 px-4 rounded-full border text-sm transition-colors ${e?"border-foreground bg-foreground text-background":"border-border bg-card text-foreground hover:border-foreground"}`;function PA({artwork:e,isAdmin:o,onDelete:n,isDeleting:a,verified:i,liked:s,markCount:u,onToggleMark:p}){const[h,g]=O.useState(!1),[w,d]=O.useState(!1),f=O.useCallback(()=>{p?.(e.id)},[p,e.id]);return c.jsxs("div",{className:"relative group",children:[c.jsxs("div",{className:"relative mb-3",children:[!h&&!w&&c.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/10 rounded",style:{aspectRatio:"500/700"},children:c.jsx(rr,{className:"w-6 h-6 text-muted-foreground/40 animate-spin"})}),w?c.jsxs("div",{className:"flex flex-col items-center justify-center bg-muted/10 rounded text-muted-foreground/60",style:{aspectRatio:"500/700"},children:[c.jsx(a1,{className:"w-8 h-8 mb-2"}),c.jsx("span",{className:"text-sm",children:"Failed to load image"})]}):c.jsx("img",{src:e.image||e.imageUrl||e.imageData,alt:`Artwork ${Ts(e.promptNumber)}`,className:`w-full h-auto transition-opacity duration-300 ${h?"opacity-100":"opacity-0"}`,style:{aspectRatio:"500/700"},onLoad:()=>g(!0),onError:()=>d(!0),loading:"lazy",decoding:"async"}),o&&c.jsx("div",{className:"absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity",children:c.jsx(Rt,{onClick:()=>n(e.id),disabled:a,size:"sm",variant:"destructive","aria-label":"Delete artwork",children:a?c.jsx(rr,{className:"w-4 h-4 animate-spin","aria-hidden":"true"}):c.jsx(bd,{className:"w-4 h-4","aria-hidden":"true"})})})]}),c.jsx("div",{className:"text-foreground text-2xl mb-2 line-clamp-2 leading-snug",style:{fontFamily:"Delcan Mono, monospace"},title:e.promptText||"No prompt",children:e.promptText||`Prompt ${Ts(e.promptNumber)}`}),e.artistName&&c.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground mt-1 uppercase tracking-widest",style:{fontSize:"9pt",fontFamily:"FK Grotesk Mono, monospace"},children:[c.jsx(i1,{className:"w-3 h-3","aria-hidden":"true"}),i?c.jsxs(io,{to:`/artist/${encodeURIComponent(e.artistName)}`,title:`View ${e.artistName}'s profile`,className:"inline-flex items-center gap-1.5 hover:text-foreground transition-colors",children:[c.jsx("span",{children:e.artistName}),c.jsx(fm,{className:"w-3.5 h-3.5 text-primary","aria-hidden":"true"})]}):c.jsx("span",{children:e.artistName})]}),c.jsxs("button",{onClick:f,"aria-label":s?`Remove your mark (${u})`:`Mark this drawing (${u})`,"aria-pressed":!!s,title:s?"Remove your mark":"Leave your mark",className:`inline-flex items-center gap-1.5 mt-2 transition-colors ${s?"text-foreground":"text-muted-foreground hover:text-foreground"}`,style:{fontSize:"9pt",fontFamily:"FK Grotesk Mono, monospace"},children:[c.jsx("span",{className:`inline-block rounded-full ${s?"bg-current":"border-[1.5px] border-current"}`,style:{width:11,height:11,color:"hsl(var(--pb-mark))"},"aria-hidden":"true"}),u>0&&c.jsx("span",{children:u})]})]})}function RA(e,o){if(o<=7)return Array.from({length:o},(s,u)=>u+1);const n=[1];e>3&&n.push("ellipsis");const a=Math.max(2,e-1),i=Math.min(o-1,e+1);for(let s=a;s<=i;s++)n.push(s);return e<o-2&&n.push("ellipsis"),n.push(o),n}function DA(){const{artworks:e,isAdmin:o,deleteArtwork:n,isLoading:a}=$n(),[i,s]=O.useState(""),[u,p]=O.useState(null),[h,g]=O.useState(1),[w,d]=O.useState(AA),[f,m]=O.useState("newest"),[k,S]=O.useState(()=>Date.now()),_=O.useRef(null),b=O.useCallback(()=>{S((Date.now()^Math.floor(Math.random()*2147483647))>>>0),m("shuffled")},[]),[x,C]=O.useState(new Set);O.useEffect(()=>{let Z=!1;return t_().then(J=>{Z||C(new Set(J.map(V=>V.toLowerCase().trim())))}),()=>{Z=!0}},[]);const[N,j]=O.useState(new Set),[L,P]=O.useState({});O.useEffect(()=>{let Z=!1;return r_().then(J=>{Z||j(new Set(J))}),()=>{Z=!0}},[]);const z=O.useCallback(async Z=>{const J=N.has(Z);j(V=>{const M=new Set(V);return J?M.delete(Z):M.add(Z),M}),P(V=>({...V,[Z]:(V[Z]??0)+(J?-1:1)}));try{const V=await n_(Z,!o);j(M=>{const K=new Set(M);return V?K.add(Z):K.delete(Z),K}),V===J&&P(M=>({...M,[Z]:(M[Z]??0)+(J?1:-1)}))}catch{j(V=>{const M=new Set(V);return J?M.add(Z):M.delete(Z),M}),P(V=>({...V,[Z]:(V[Z]??0)+(J?1:-1)})),st.error("Could not update the mark")}},[N,o]),H=O.useCallback(Z=>{s(Z.target.value)},[]),F=O.useCallback(()=>{s("")},[]),T=O.useMemo(()=>
272{if(!i.trim())return e;const Z=i.toLowerCase();return e.filter(J=>J.artistName?.toLowerCase().includes(Z)||J.promptText?.toLowerCase().includes(Z)||Ts(J.promptNumber).toLowerCase().includes(Z))},[e,i]),D=O.useMemo(()=>{switch(f){case"oldest":return[...T].sort((Z,J)=>zc(Z)-zc(J));case"marked":return[...T].sort((Z,J)=>(J.heartCount??0)-(Z.heartCount??0)||zc(J)-zc(Z));case"shuffled":return OA(T,k);default:return T}},[T,f,k]),B=Math.max(1,Math.ceil(D.length/w)),$=O.useMemo(()=>{const Z=(h-1)*w;return D.slice(Z,Z+w)},[D,h,w]);O.useEffect(()=>{g(1)},[i,w,f,k]),O.useEffect(()=>{_.current?.scrollTo({top:0,behavior:"smooth"})},[h]);const W=O.useCallback(Z=>{g(Z)},[]),Q=O.useCallback(async Z=>{if(window.confirm("Are you sure you want to delete this artwork?")){p(Z);try{n(Z),st.success("Artwork deleted successfully")}catch(V){console.error("Error deleting artwork:",V),st.error("Failed to delete artwork")}finally{p(null)}}},[n]);if(a)return c.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:c.jsxs("div",{className:"text-center",children:[c.jsx(rr,{className:"w-8 h-8 text-muted-foreground animate-spin mx-auto mb-3"}),c.jsx("p",{className:"text-muted-foreground text-sm",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Loading gallery..."})]})});if(e.length===0)return c.jsx("div",{className:"container mx-auto px-4 py-12",children:c.jsx("div",{className:"text-muted-foreground text-center py-12",children:"No artworks yet. Create your first drawing!"})});const te=RA(h,B);return c.jsx("div",{ref:_,className:"h-screen overflow-y-auto",children:c.jsx("div",{className:"container mx-auto px-4 py-12",children:c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center gap-3 max-w-2xl",children:[c.jsxs("div",{className:"relative flex-1 min-w-0",children:[c.jsx("label",{htmlFor:"gallery-search",className:"sr-only",children:"Search artworks"}),c.jsx(fu,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),c.jsx(Dr,{id:"gallery-search",value:i,onChange:H,placeholder:"Search by prompt or artist...",className:"bg-card border-border text-foreground placeholder:text-muted-foreground pl-11 rounded-[20px] text-base focus:border-primary focus:ring-ring",autoComplete:"off","aria-label":"Search artworks"}),i&&c.jsx("button",{onClick:F,className:"absolute right-4 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors","aria-label":"Clear search",type:"button",children:c.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),c.jsx(px,{current:"2.0"})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2",role:"group","aria-label":"Order of the drawings",children:[TA.map(Z=>c.jsx("button",{type:"button",onClick:()=>m(Z.id),className:vv(f===Z.id),style:{fontFamily:wv},"aria-pressed":f===Z.id,children:Z.label},Z.id)),c.jsxs("button",{type:"button",onClick:b,className:vv(f==="shuffled"),style:{fontFamily:wv},"aria-pressed":f==="shuffled",title:"Shuffle the drawings â press again for a new order",children:[c.jsx(mE,{className:"w-3.5 h-3.5","aria-hidden":"true"}),"Shuffle"]})]})]}),T.length===0?c.jsx("div",{className:"text-muted-foreground text-center py-12",children:i?c.jsxs(c.Fragment,{children:['No artworks match your search for "',i,'".',c.jsx("button",{onClick:F,className:"block mx-auto mt-3 text-muted-foreground hover:text-foreground underline",children:"Clear search"})]}):"No artworks yet. Create your first drawing!"}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-8",children:$.map(Z=>c.jsx(PA,{artwork:Z,isAdmin:o,onDelete:Q,isDeleting:u===Z.id,verified:!!Z.artistName&&x.has(Z.artistName.toLowerCase().trim()),liked:N.has(Z.id),markCount:Math.max(0,(Z.heartCount??0)+(L[Z.id]??0)),onToggleMark:z},Z.id))}),B>1&&c.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 pt-4",children:[c.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",style:{fontSize:"10pt",fontFamily:"FK Grotesk Mono, monospace"},children:[c.jsx("span",{children:"Per page:"}),c.jsx("select",{value:w,onChange:Z=>d(Number(Z.target.value)),className:"bg-card border border-border rounded px-2 py-1 text-foreground","aria-label":"Items per page",children:jA.map(Z=>c.jsx("option",{value:Z,children:Z},Z))})]}),c.jsxs("nav",{className:"flex items-center gap-1","aria-label":"Pagination",children:[c.jsx("button",{onClick:()=>W(h-1),disabled:h===1,className:"p-2 rounded text-foreground disabled:text-muted-foreground
272/30 hover:bg-accent transition-colors","aria-label":"Previous page",children:c.jsx(Zm,{className:"w-4 h-4"})}),te.map((Z,J)=>Z==="ellipsis"?c.jsx("span",{className:"px-2 text-muted-foreground",style:{fontSize:"10pt",fontFamily:"FK Grotesk Mono, monospace"},children:"..."},`ellipsis-${J}`):c.jsx("button",{onClick:()=>W(Z),className:`min-w-[32px] h-8 rounded transition-colors ${h===Z?"bg-foreground text-background":"text-foreground hover:bg-accent"}`,style:{fontSize:"10pt",fontFamily:"FK Grotesk Mono, monospace"},"aria-label":`Page ${Z}`,"aria-current":h===Z?"page":void 0,children:Z},Z)),c.jsx("button",{onClick:()=>W(h+1),disabled:h===B,className:"p-2 rounded text-foreground disabled:text-muted-foreground/30 hover:bg-accent transition-colors","aria-label":"Next page",children:c.jsx(Qm,{className:"w-4 h-4"})})]}),c.jsxs("div",{className:"text-muted-foreground",style:{fontSize:"10pt",fontFamily:"FK Grotesk Mono, monospace"},children:["Page ",h," of ",B]})]})]})]})})})}const Ai={fontFamily:"FK Grotesk Mono, monospace"},bv={fontFamily:"Delcan Mono, monospace"};function MA(){const{alias:e=""}=rS(),[o,n]=O.useState(null),[a,i]=O.useState(!0);return O.useEffect(()=>{let s=!1;return i(!0),o_(e).then(u=>{s||(n(u),i(!1))}),()=>{s=!0}},[e]),c.jsx("div",{className:"h-screen overflow-y-auto",children:c.jsxs("div",{className:"container mx-auto px-4 py-12",children:[c.jsxs(io,{to:"/gallery",className:"inline-flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors mb-8",style:{...Ai,fontSize:"10pt",letterSpacing:"0.05em"},children:[c.jsx(vN,{className:"w-4 h-4","aria-hidden":"true"})," BACK TO GALLERY"]}),a?c.jsx("div",{className:"flex justify-center py-24",children:c.jsx(rr,{className:"w-8 h-8 animate-spin text-muted-foreground"})}):!o||o.count===0?c.jsxs("div",{className:"text-muted-foreground text-center py-24",style:Ai,children:['No drawings found for "',decodeURIComponent(e),'".']}):c.jsxs(c.Fragment,{children:[c.jsxs("header",{className:"mb-10",children:[o.avatar&&c.jsx("img",{src:o.avatar,alt:`${o.alias} avatar`,className:"w-20 h-20 rounded-full border border-border object-cover bg-muted/10 mb-4"}),c.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[c.jsx("h1",{className:"text-foreground text-4xl leading-tight",style:bv,children:o.alias}),o.verified&&c.jsx(fm,{className:"w-6 h-6 text-primary","aria-label":"Verified artist"})]}),c.jsxs("p",{className:"text-muted-foreground mt-2 uppercase",style:{...Ai,fontSize:"10pt",letterSpacing:"0.1em"},children:[o.count," ",o.count===1?"drawing":"drawings",o.totalHearts>0?` · ${o.totalHearts} ${o.totalHearts===1?"mark":"marks"}`:""]}),o.bio&&c.jsx("p",{className:"text-foreground mt-4 max-w-xl whitespace-pre-line",style:{...Ai,fontSize:"11pt",lineHeight:1.6},children:o.bio}),o.website&&c.jsxs("a",{href:o.website,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 mt-3 text-muted-foreground hover:text-foreground transition-colors",style:{...Ai,fontSize:"10pt"},children:[c.jsx(qN,{className:"w-3.5 h-3.5","aria-hidden":"true"}),o.website.replace(/^https?:\/\//i,"").replace(/\/$/,"")]}),o.verified&&c.jsxs("a",{href:ru,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 mt-5 px-4 py-2 rounded-full border border-border text-foreground hover:bg-foreground hover:text-background transition-colors",style:{...Ai,fontSize:"10pt"},children:[c.jsx(fm,{className:"w-4 h-4","aria-hidden":"true"}),"Verified on the Prompt-Brush app â get it â"]})]}),c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-8",children:o.artworks.map(s=>c.jsxs("div",{children:[c.jsx("img",{src:s.image||s.imageData,alt:s.promptText||`Drawing ${Ts(s.promptNumber)}`,className:"w-full h-auto rounded border border-border bg-muted/10",style:{aspectRatio:"500/700"},loading:"lazy",decoding:"async"}),c.jsx("div",{className:"text-foreground text-lg mt-2 line-clamp-2 leading-snug",style:bv,title:s.promptText||"",children:s.promptText||`Prompt ${Ts(s.promptNumber)}`}),c.jsxs("div",{className:"flex items-center gap-3 mt-1 text-muted-foreground",style:{...Ai,fontSize:"9pt"},children:[c.jsx("span",{children:Ts(s.promptNumber)}),s.heartCount>0&&c.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[c.jsx("span",{className:"inline-block rounded-full bg-current text-foreground",style:{width:10,height:10},"aria-hidden":"true"}),s.heartCount]})]})]},s.id))})]})]})})}var IA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],LA=IA.reduce((e,o)=>{const n=Gm(`Primitive.${o}`),a=O.forwardRef((i,s)=>{const{asChild:u,...p}=i,h=u?n:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(h,{...p,ref:s})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{}),FA="Separator",xv="horizontal",zA=["horizontal","vertical"],mx=O.forwardRef((e,o)=>{const{decorative:n,orientation:a=xv,...i}=e,s=BA(a)?a:xv,p=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return c.jsx(LA.div,{"data-orientation":s,...p,...i,ref:o})});mx.displayName=FA;function BA(e){return zA.includes(e)}var gx=mx;const pg=O.forwardRef(({className:e,orientation:o="horizontal",decorative:n=!0,...a},i)=>c.jsx(gx,{ref:i,decorative:n,orientation:o,className:Un("shrink-0 bg-border",o==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...a}));pg.displayName=gx.displayName;const qA=50,$A=[25,50,100];function UA({prompt:e,isLast:o,onDrawClick:n}){const a=e.promptNumber?`#${String(e.promptNumber).padStart(5,"0")}`:"#00000",i=hx(e.createdAt);return c.jsxs("div",{children:[c.jsxs("div",{className:"px-4 md:px-8 py-4 md:py-5 hover:bg-accent/10 transition-colors",children:[c.jsxs("div",{className:"flex md:hidden flex-col gap-3",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("div",{className:"text-muted-foreground text-[13px] tracking-wide font-medium",style:{fontFamily:"FK Grotesk Mono, monospace"},children:a}),c.jsx("div",{className:"text-muted-foreground text-[13px] uppercase",style:{fontFamily:"FK Grotesk Mono, monospace"},children:i})]}),c.jsx("div",{className:"text-foreground text-[18px] leading-relaxed tracking-wide font-medium",style:{fontFamily:"Delcan Mono, monospace"},children:e.prompt}),c.jsx("div",{className:"flex items-center justify-center",children:e.status==="completed"?c.jsx("div",{className:"text-muted-foreground text-[13px] font-medium tracking-wider up
272percase whitespace-nowrap",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"COMPLETED"}):c.jsx(Rt,{onClick:()=>n(e),size:"sm",className:"draw-prompt-btn transition-all duration-200 whitespace-nowrap text-[13px] h-7 px-4 w-full bg-[#cb8e9b] text-white tracking-wider uppercase font-medium rounded-full flex items-center justify-center text-center","aria-label":`Draw: ${e.prompt}`,style:{fontFamily:"FK Grotesk Mono, monospace"},children:"DRAW THIS PROMPT"})})]}),c.jsxs("div",{className:"hidden md:flex items-baseline gap-10 lg:gap-12",children:[c.jsx("div",{className:"flex-1 min-w-0",children:c.jsx("div",{className:"text-foreground text-[22px] leading-relaxed truncate tracking-wide font-medium",style:{fontFamily:"Delcan Mono, monospace"},title:e.prompt,children:e.prompt})}),c.jsxs("div",{className:"flex items-baseline gap-12 lg:gap-16 flex-shrink-0",children:[c.jsx("div",{className:"text-muted-foreground text-[13px] tracking-wide font-medium",style:{fontFamily:"FK Grotesk Mono, monospace"},children:a}),c.jsx("div",{className:"text-muted-foreground text-[13px] uppercase",style:{fontFamily:"FK Grotesk Mono, monospace"},children:i})]}),c.jsx("div",{className:"flex items-baseline gap-3 flex-shrink-0 justify-end",style:{width:"320px"},children:e.status==="completed"?c.jsx("div",{className:"text-muted-foreground text-[13px] font-medium tracking-wider uppercase whitespace-nowrap",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"COMPLETED"}):c.jsx(Rt,{onClick:()=>n(e),size:"sm",className:"draw-prompt-btn transition-all duration-200 whitespace-nowrap text-[13px] h-7 px-5 flex-shrink-0 bg-[#cb8e9b] text-white tracking-wider uppercase font-medium rounded-full flex items-center justify-center text-center","aria-label":`Draw: ${e.prompt}`,style:{fontFamily:"FK Grotesk Mono, monospace"},children:"DRAW THIS PROMPT"})})]})]}),!o&&c.jsx("div",{className:"px-4 md:px-8 -mt-2.5",children:c.jsx(pg,{className:"bg-white dark:bg-white h-[1px]"})})]})}function HA(e,o){if(o<=7)return Array.from({length:o},(s,u)=>u+1);const n=[1];e>3&&n.push("ellipsis");const a=Math.max(2,e-1),i=Math.min(o-1,e+1);for(let s=a;s<=i;s++)n.push(s);return e<o-2&&n.push("ellipsis"),n.push(o),n}function KA(){const{prompts:e,isLoading:o}=$n(),n=qo(),[a,i]=O.useState(""),[s,u]=O.useState(1),[p,h]=O.useState(qA),[g,w]=O.useState("todraw"),d=O.useRef(null),f=O.useCallback(N=>{i(N.target.value)},[]),m=O.useCallback(()=>{i("")},[]),k=O.useCallback(N=>{n("/user-draw",{state:{prompt:N}})},[n]),S=O.useMemo(()=>{let N=e;g==="todraw"&&(N=N.filter(L=>L.status!=="completed"));const j=a.trim().toLowerCase();return j&&(N=N.filter(L=>L.prompt.toLowerCase().includes(j))),N},[e,a,g]),_=Math.max(1,Math.ceil(S.length/p)),b=O.useMemo(()=>{const N=(s-1)*p;return S.slice(N,N+p)},[S,s,p]);O.useEffect(()=>{u(1)},[a,p,g]),O.useEffect(()=>{d.current?.scrollTo({top:0,behavior:"smooth"})},[s]);const x=O.useCallback(N=>{u(N)},[]);if(o)return c.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:c.jsxs("div",{className:"text-center",children:[c.jsx(rr,{className:"w-8 h-8 text-muted-foreground animate-spin mx-auto mb-3"}),c.jsx("p",{className:"text-muted-foreground text-sm",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Loading prompts..."})]})});const C=HA(s,_);return c.jsx("div",{ref:d,className:"h-screen overflow-y-auto",children:c.jsxs("div",{className:"space-y-6 md:space-y-8 mt-16 md:mt-24 px-4 md:px-8",children:[c.jsx("div",{className:"space-y-4 md:space-y-5",children:c.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-4",children:[c.jsxs("div",{className:"relative w-full sm:max-w-2xl sm:flex-1",children:[c.jsx("label",{htmlFor:"prompt-search",className:"sr-only",children:"Search prompts"}),c.jsx(fu,{className:"absolute left-3 md:left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground pointer-events-none","aria-hidden":"true"}),c.jsx(Dr,{id:"prompt-search",value:a,onChange:f,placeholder:"Search prompts...",className:"bg-card border-border text-foreground placeholder:text-muted-foreground pl-10 md:pl-11 pr-10 md:pr-11 rounded-[24px] text-[13px] h-10 md:h-11 focus:border-primary focus:ring-ring shadow-sm transition-all",style:{fontFamily:"FK Grotesk Mono, monospace"},autoComplete:"off","aria-label":"Search prompts"}),a&&c.jsx("button",{onClick:m,className:"absolute right-3 md:right-4 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors p-0.5","aria-label":"Clear search",type:"button",children:c.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),c.jsx("div",{className:"flex items-center gap-1 self-start sm:self-auto sm:ml-auto",role:"group","aria-label":"Filter prompts by status",children:[["todraw","To draw"],["all","All"]].map(([N,j])=>c.jsx("button",{type:"button",onClick:()=>w(N),"aria-pressed":g===N,className:`px-4 h-9 rounded-full uppercase tracking-wider text-[12px] font-medium transition-colors ${g===N?"bg-foreground text-background":"text-muted-foreground hover:text-foreground"}`,style:{fontFamily:"FK Grotesk Mono, monospace"},children:j},N))})]})}),S.length===0?c.jsx("div",{className:"text-muted-foreground text-center py-16 text-[13px]",style:{fontFamily:"FK Grotesk Mono, monospace"},children:a?c.jsxs(c.Fragment,{children:['No prompts match your search for "',a,'".',c.jsx("button",{onClick:m,className:"block mx-auto mt-4 text-muted-foreground hover:text-foreground underline text-[13px]",type:"button",children:"Clear search"})]}):g==="todraw"&&e.length>0?c.jsxs(c.Fragment,{children:["Every prompt has been drawn.",c.jsx("button",{onClick:()=>w("all"),className:"block mx-auto mt-4 text-muted-foreground hover:text-foreground underline text-[13px]",type:"button",children:"See all prompts"})]}):"No prompts yet. Be the first to submit one!"}
272):c.jsxs("div",{className:"space-y-0",children:[a&&c.jsxs("div",{className:"text-muted-foreground text-[13px] mb-4",style:{fontFamily:"FK Grotesk Mono, monospace"},role:"status","aria-live":"polite",children:["Found ",S.length," ",S.length===1?"prompt":"prompts"]}),c.jsx("div",{className:"space-y-0",role:"list",children:b.map((N,j)=>c.jsx("div",{role:"listitem",children:c.jsx(UA,{prompt:N,isLast:j===b.length-1,onDrawClick:k})},N.id))}),_>1&&c.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 py-6 px-4 md:px-8",children:[c.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",style:{fontSize:"10pt",fontFamily:"FK Grotesk Mono, monospace"},children:[c.jsx("span",{children:"Per page:"}),c.jsx("select",{value:p,onChange:N=>h(Number(N.target.value)),className:"bg-card border border-border rounded px-2 py-1 text-foreground","aria-label":"Items per page",children:$A.map(N=>c.jsx("option",{value:N,children:N},N))})]}),c.jsxs("nav",{className:"flex items-center gap-1","aria-label":"Pagination",children:[c.jsx("button",{onClick:()=>x(s-1),disabled:s===1,className:"p-2 rounded text-foreground disabled:text-muted-foreground/30 hover:bg-accent transition-colors","aria-label":"Previous page",children:c.jsx(Zm,{className:"w-4 h-4"})}),C.map((N,j)=>N==="ellipsis"?c.jsx("span",{className:"px-2 text-muted-foreground",style:{fontSize:"10pt",fontFamily:"FK Grotesk Mono, monospace"},children:"..."},`ellipsis-${j}`):c.jsx("button",{onClick:()=>x(N),className:`min-w-[32px] h-8 rounded transition-colors ${s===N?"bg-foreground text-background":"text-foreground hover:bg-accent"}`,style:{fontSize:"10pt",fontFamily:"FK Grotesk Mono, monospace"},"aria-label":`Page ${N}`,"aria-current":s===N?"page":void 0,children:N},N)),c.jsx("button",{onClick:()=>x(s+1),disabled:s===_,className:"p-2 rounded text-foreground disabled:text-muted-foreground/30 hover:bg-accent transition-colors","aria-label":"Next page",children:c.jsx(Qm,{className:"w-4 h-4"})})]}),c.jsxs("div",{className:"text-muted-foreground",style:{fontSize:"10pt",fontFamily:"FK Grotesk Mono, monospace"},children:["Page ",s," of ",_]})]})]})]})})}const kv="#000000",Sv=.3,WA=2.1;function _v(e){return e>=0?Sv+(WA-Sv)*e:1}const hg=O.forwardRef(({brush:e,onDrawStart:o,onDrawEnd:n,className:a},i)=>{const s=O.useRef(null),[u,p]=O.useState(!1),h=O.useRef(null),g=O.useRef(null),w=O.useRef(!1),d=O.useCallback(()=>{const L=s.current;if(!L)return;const P=L.getContext("2d",{willReadFrequently:!1,alpha:!1});P&&(P.fillStyle=zw,P.fillRect(0,0,Pc,Rc))},[]);O.useEffect(()=>{d()},[d]);const f=O.useCallback(L=>{const P=s.current;if(!P)return null;const z=P.getBoundingClientRect(),{clientX:H,clientY:F}=L;if(H===void 0||F===void 0)return null;const T=Pc/z.width,D=Rc/z.height,B=L.pointerType==="pen"&&L.pressure>0&&L.pressure<=1?L.pressure:-1;return{x:(H-z.left)*T,y:(F-z.top)*D,pressure:B,timestamp:Date.now()}},[]),m=O.useCallback((L,P,z)=>{const H=Math.sqrt((P.x-L.x)**2+(P.y-L.y)**2),F=P.timestamp-L.timestamp||1,T=H/F,D=Math.min(T/.5,1),B=z*(1-D*.3);return{distance:H,dynamicSize:B}},[]),k=O.useCallback((L,P,z,H)=>{const{distance:F,dynamicSize:T}=m(P,z,H.size),D=T*_v(z.pressure),B=F||.001,$=-(z.y-P.y)/B,W=(z.x-P.x)/B,Q=Math.max(1,H.size*.14),te=Math.min(Math.max(Math.floor(B/Q),1),96);L.fillStyle=kv;for(let Z=0;Z<=te;Z++){const J=Z/te,V=P.x+(z.x-P.x)*J,M=P.y+(z.y-P.y)*J,K=(Math.random()-.5)*D*.2,X=(Math.random()-.5)*D*.12+$*K,ie=(Math.random()-.5)*D*.12+W*K,oe=D/2*(.8+Math.random()*.4);if(L.beginPath(),L.arc(V+X,M+ie,Math.max(oe,.5),0,Math.PI*2),L.fill(),Math.random()<.07){const ee=Math.random()<.5?1:-1,ne=D/2*(.85+Math.random()*.55)*ee;L.beginPath(),L.arc(V+$*ne,M+W*ne,Math.max(D*.07,.4),0,Math.PI*2),L.fill()}}L.beginPath(),L.arc(z.x,z.y,Math.max(D/2.4,.5),0,Math.PI*2),L.fill()},[m]),S=O.useCallback((L,P,z)=>{const H=z.size*_v(P.pressure)/2;L.fillStyle=kv,L.beginPath(),L.arc(P.x,P.y,Math.max(H*(.88+Math.random()*.22),.5),0,Math.PI*2),L.fill(),L.beginPath(),L.arc(P.x+(Math.random()-.5)*H*.5,P.y+(Math.random()-.5)*H*.5,Math.max(H*.72,.4),0,Math.PI*2),L.fill()},[]),_=O.useCallback(L=>{L.preventDefault(),L.currentTarget.setPointerCapture?.(L.pointerId);const P=f(L);if(!P)return;const H=s.current?.getContext("2d");H&&(p(!0),w.current=!0,h.current=P,o?.(),S(H,P,e))},[e,f,S,o]),b=O.useCallback(L=>{if(!u||!h.current)return;L.preventDefault();const P=f(L);P&&(g.current!==null&&cancelAnimationFrame(g.current),g.current=requestAnimationFrame(()=>{const H=s.current?.getContext("2d");!H||!h.current||(k(H,h.current,P,e),h.current=P)}))},[u,e,f,k]),x=O.useCallback(()=>{u&&(p(!1),h.current=null,n?.()),g.current!==null&&(cancelAnimationFrame(g.current),g.current=null)},[u,n]),C=O.useCallback(()=>{d(),w.current=!1},[d]),N=O.useCallback((L=!1)=>{const P=s.current;if(!P)return"";const z=L?i_:0,H=Pc+z*2,F=Rc+z*2,D=Math.max(1,Math.floor(Math.sqrt(16e6/(H*F)))),B=Math.max(1,Math.min(a_,D)),$=W=>typeof W=="string"&&W.startsWith("data:image/")&&W.length>100;for(let W=B;W>=1;W--)try{const Q=document.createElement("canvas");Q.width=H*W,Q.height=F*W;const te=Q.getContext("2d");if(!te)continue;te.scale(W,W),te.imageSmoothingEnabled=!0,te.imageSmoothingQuality="high",L?(te.fillStyle="#000000",te.fillRect(0,0,H,F),te.drawImage(P,z,z)):te.drawImage(P,0,0);const Z=Q.toDataURL("image/png");if($(Z))return Z;console.warn(`[DrawingCanvas] export at ${W}
272x produced an invalid capture; retrying smaller`)}catch(Q){console.warn(`[DrawingCanvas] export at ${W}x threw; retrying smaller`,Q)}return console.error("[DrawingCanvas] export failed at every scale (down to 1x)"),""},[]),j=O.useCallback(()=>!w.current,[]);return O.useImperativeHandle(i,()=>({clear:C,exportImage:N,isEmpty:j}),[C,N,j]),c.jsx("canvas",{ref:s,width:Pc,height:Rc,onPointerDown:_,onPointerMove:b,onPointerUp:x,onPointerCancel:x,onPointerLeave:x,className:`cursor-crosshair rounded block ${a??"w-full h-auto"}`,style:{touchAction:"none",backgroundColor:zw,maxWidth:"100%",maxHeight:"100%",aspectRatio:"5/7",display:"block"},"aria-label":"Drawing canvas"})});hg.displayName="DrawingCanvas";function yx(e,[o,n]){return Math.min(n,Math.max(o,e))}var VA=O.createContext(void 0);function GA(e){const o=O.useContext(VA);return e||o||"ltr"}function YA(e){const o=O.useRef({value:e,previous:e});return O.useMemo(()=>(o.current.value!==e&&(o.current.previous=o.current.value,o.current.value=e),o.current.previous),[e])}function Nv(e){const o=ZA(e),n=O.forwardRef((a,i)=>{const{children:s,...u}=a,p=O.Children.toArray(s),h=p.find(XA);if(h){const g=h.props.children,w=p.map(d=>d===h?O.Children.count(g)>1?O.Children.only(null):O.isValidElement(g)?g.props.children:null:d);return c.jsx(o,{...u,ref:i,children:O.isValidElement(g)?O.cloneElement(g,void 0,w):null})}return c.jsx(o,{...u,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function ZA(e){const o=O.forwardRef((n,a)=>{const{children:i,...s}=n;if(O.isValidElement(i)){const u=ej(i),p=JA(s,i.props);return i.type!==O.Fragment&&(p.ref=a?wd(a,u):u),O.cloneElement(i,p)}return O.Children.count(i)>1?O.Children.only(null):null});return o.displayName=`${e}.SlotClone`,o}var QA=Symbol("radix.slottable");function XA(e){return O.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===QA}function JA(e,o){const n={...o};for(const a in o){const i=e[a],s=o[a];/^on[A-Z]/.test(a)?i&&s?n[a]=(...p)=>{const h=s(...p);return i(...p),h}:i&&(n[a]=i):a==="style"?n[a]={...i,...s}:a==="className"&&(n[a]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function ej(e){let o=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=o&&"isReactWarning"in o&&o.isReactWarning;return n?e.ref:(o=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=o&&"isReactWarning"in o&&o.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function tj(e){const o=e+"CollectionProvider",[n,a]=Nd(o),[i,s]=n(o,{collectionRef:{current:null},itemMap:new Map}),u=S=>{const{scope:_,children:b}=S,x=He.useRef(null),C=He.useRef(new Map).current;return c.jsx(i,{scope:_,itemMap:C,collectionRef:x,children:b})};u.displayName=o;const p=e+"CollectionSlot",h=Nv(p),g=He.forwardRef((S,_)=>{const{scope:b,children:x}=S,C=s(p,b),N=an(_,C.collectionRef);return c.jsx(h,{ref:N,children:x})});g.displayName=p;const w=e+"CollectionItemSlot",d="data-radix-collection-item",f=Nv(w),m=He.forwardRef((S,_)=>{const{scope:b,children:x,...C}=S,N=He.useRef(null),j=an(_,N),L=s(w,b);return He.useEffect(()=>(L.itemMap.set(N,{ref:N,...C}),()=>void L.itemMap.delete(N))),c.jsx(f,{[d]:"",ref:j,children:x})});m.displayName=w;function k(S){const _=s(e+"CollectionConsumer",S);return He.useCallback(()=>{const x=_.collectionRef.current;if(!x)return[];const C=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(_.itemMap.values()).sort((L,P)=>C.indexOf(L.ref.current)-C.indexOf(P.ref.current))},[_.collectionRef,_.itemMap])}return[{Provider:u,Slot:g,ItemSlot:m},k,a]}var wx=["PageUp","PageDown"],vx=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],bx={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Us="Slider",[Sm,rj,nj]=tj(Us),[xx]=Nd(Us,[nj]),[oj,Dd]=xx(Us),kx=O.forwardRef((e,o)=>{const{name:n,min:a=0,max:i=100,step:s=1,orientation:u="horizontal",disabled:p=!1,minStepsBetweenThumbs:h=0,defaultValue:g=[a],value:w,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:m=!1,form:k,...S}=e,_=O.useRef(new Set),b=O.useRef(0),C=u==="horizontal"?aj:ij,[N=[],j]=ex({prop:w,defaultProp:g,onChange:T=>{[..._.current][b.current]?.focus(),d(T)}}),L=O.useRef(N);function P(T){const D=dj(N,T);F(T,D)}function z(T){F(T,b.current)}function H(){const T=L.current[b.current];N[b.current]!==T&&f(N)}function F(T,D,{commit:B}={commit:!1}){const $=mj(s),W=gj(Math.round((T-a)/s)*s+a,$),Q=yx(W,[a,i]);j((te=[])=>{const Z=uj(te,Q,D);if(hj(Z,h*s)){b.current=Z.indexOf(Q);const J=String(Z)!==String(te);return J&&B&&f(Z),J?Z:te}else return te})}return c.jsx(oj,{scope:e.__scopeSlider,name:n,disabled:p,min:a,max:i,valueIndexToChangeRef:b,thumbs:_.current,values:N,orientation:u,form:k,children:c.jsx(Sm.Provider,{scope:e.__scopeSlider,children:c.jsx(Sm.Slot,{scope:e.__scopeSlider,children:c.jsx(C,{"aria-disabled":p,"data-disabled":p?"":void 0,...S,ref:o,onPointerDown:on(S.onPointerDown,()=>{p||(L.current=N)}),min:a,max:i,inverted:m,onSlideStart:p?void 0:P,onSlideMove:p?void 0:z,onSlideEnd:p?void 0:H,onHomeKeyDown:()=>!p&&F(a,0,{commit:!0}),onEndKeyDown:()=>!p&&F(i,N.length-1,{commit:!0}),onStepKeyDown:({event:T,direction:D})=>{if(!p){const W=wx.includes(T.key)||T.shiftKey&&vx.includes(T.key)?10:1,Q=b.current,te=N[Q],Z=s*W*D;F(te+Z,Q,{commit:!0})}}})})})})});kx.displayName=Us;var[Sx,_x]=xx(Us,{startEdge:"left",endEdge:"right",size:"width",direction:1}),aj=O.forwardRef((e,o)=>{const{min:n,max:a,dir:i,inverted:s,onSlideStart:u,onSlideMove:p,onSlideEnd:h,onStepKeyDown:g,...w}=e,[d,f]=O.useState(null),m=an(o,C=>f(C)),k=O.useRef(void 0),S=GA(i),_=S==="ltr",b=_&&!s||!_&&s;function x(C){const N=k.current||d.getBoundingClientRect(),j=[0,N.width],P=mg(j,b?[n,a]:[a,n]);return k.current=N,P(C-N.left)}return c.jsx(Sx,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:c.jsx(Nx,{dir:S,"data-orientation":"horizontal",...w,ref:m,style:{...w.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:C=>{const N=x(C.clientX);u?.(N)},onSlideMove:C=>{const N=x(C.clientX);p?.(N)},onSlideEnd:()=>{k.current=void 0,h?.()},onStepKeyDown:C=>{const j=bx[b?"from-left":"from-right"].includes(C.key);g?.({event:C,direction:j?-1:1})}})})}),ij=O.forwardRef((e,o)=>{const{min:n,max:a,inverted:i,onSlideStart:s,onSlideMove:u,onSlideEnd:p,onStepKeyDown:h,...g}=e,w=O.useRef(null),d=an(o,w),f=O.useRef(void 0),m=!i;function k(S){const _=f.current||w.current.getBoundingClientRect(),b=[0,_.height],C=mg(b,m?[a,n]:[n,a]);return f.current=_,C(S-_.top)}return c.jsx(Sx,{scope:e.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:c.jsx(Nx,{"data-orientation":"vertical",...g,ref:d,style:{...g.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:S=>{const _=k(S.clientY);s?.(_)},onSlideMove:S=>{const _=k(S.clientY);u?.(_)},onSlideEnd:()=>{f.current=void 0,p?.()},onStepKeyDown:S=>{const b=bx[m?"from-bottom":"from-top"].includes(S.key);h?.({event:S,direction:b?-1:1})}})})}),Nx=O.forwardRef((e,o)=>{const{__scopeSlider:n,onSlideStart:a,onSlideMove:i,onSlideEnd:s,onHomeKeyDown:u,onEndKeyDown:p,onStepKeyDown:h,...g}=e,w=Dd(Us,n);return c.jsx(Hn.span,{...g,ref:o,onKeyDown:on(e.onKeyDown,d=>{d.key==="Home"?(u(d),d.preventDefault()):d.key==="End"?(p(d),d.preventDefault()):wx.concat(vx).includes(d.key)&&(h(d),d.preventDefault())}),onPointerDown:on(e.onPointerDown,d=>{const f=d.target;f.setPointerCapture(d.pointerId),d.preventDefault(),w.thumbs.has(f)?f.focus():a(d)}),onPointerMove:on(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&i(d)}),onPointerUp:on(e.onPointerUp,d=>{const f=d.target;f.hasPointerCapture(d.pointerId)&&(f.releasePointerCapture(d.pointerId),s(d))})})}),Ex="SliderTrack",Cx=O.forwardRef((e,o)=>{const{__scopeSlider:n,...a}=e,i=Dd(Ex,n);return c.jsx(Hn.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...a,ref:o})});Cx.displayName=Ex;var _m="SliderRange",Ax=O.forwardRef((e,o)=>{const{__scopeSlider:n,...a}=e,i=Dd(_m,n),s=_x(_m,n),u=O.useRef(null),p=an(o,u),h=i.values.length,g=i.values.map(f=>Ox(f,i.min,i.max)),w=h>1?Math.min(...g):0,d=100-Math.max(...g);return c.jsx(Hn.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...a,ref:p,style:{...e.style,[s.startEdge]:w+"%",[s.endEdge]:d+"%"}})});Ax.displayName=_m;var Nm="SliderThumb",jx=O.forwardRef((e,o)=>{const n=rj(e.__scopeSlider),[a,i]=O.useState(null),s=an(o,p=>i(p)),u=O.useMemo(()=>a?n().findIndex(p=>p.ref.current===a):-1,[n,a]);return c.jsx(sj,{...e,ref:s,index:u})}),sj=O.forwardRef((e,o)=>{const{__scopeSlider:n,index:a,name:i,...s}=e,u=Dd(Nm,n),p=_x(Nm,n),[h,g]=O.useState(null),w=an(o,x=>g(x)),d=h?u.form||!!h.closest("form"):!0,f=$1(h),m=u.values[a],k=m===void 0?0:Ox(m,u.min,u.max),S=cj(a,u.values.length),_=f?.[p.size],b=_?fj(_,k,p.direction):0;return O.useEffect(()=>{if(h)return u.thumbs.add(h),()=>{u.thumbs.delete(h)}},[h,u.thumbs]),c.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[p.startEdge]:`calc(${k}% + ${b}px)`},children:[c.jsx(Sm.ItemSlot,{scope:e.__scopeSlider,children:c.jsx(Hn.span,{role:"slider","aria-label":e["aria-label"]||S,"aria-valuemin":u.min,"aria-valuenow":m,"aria-valuemax":u.max,"aria-orientation":u.orientation,"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0,tabIndex:u.disabled?void 0:0,...s,ref:w,style:m===void 0?{display:"none"}:e.style,onFocus:on(e.onFocus,()=>{u.valueIndexToChangeRef.current=a})})}),d&&c.jsx(Tx,{name:i??(u.name?u.name+(u.values.length>1?"[]":""):void 0),form:u.form,value:m},a)]})});jx.displayName=Nm;var lj="RadioBubbleInput",Tx=O.forwardRef(({__scopeSlider:e,value:o,...n},a)=>{const i=O.useRef(null),s=an(i,a),u=YA(o);return O.useEffect(()=>{const p=i.current;
272if(!p)return;const h=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(h,"value").set;if(u!==o&&w){const d=new Event("input",{bubbles:!0});w.call(p,o),p.dispatchEvent(d)}},[u,o]),c.jsx(Hn.input,{style:{display:"none"},...n,ref:s,defaultValue:o})});Tx.displayName=lj;function uj(e=[],o,n){const a=[...e];return a[n]=o,a.sort((i,s)=>i-s)}function Ox(e,o,n){const s=100/(n-o)*(e-o);return yx(s,[0,100])}function cj(e,o){return o>2?`Value ${e+1} of ${o}`:o===2?["Minimum","Maximum"][e]:void 0}function dj(e,o){if(e.length===1)return 0;const n=e.map(i=>Math.abs(i-o)),a=Math.min(...n);return n.indexOf(a)}function fj(e,o,n){const a=e/2,s=mg([0,50],[0,a]);return(a-s(o)*n)*n}function pj(e){return e.slice(0,-1).map((o,n)=>e[n+1]-o)}function hj(e,o){if(o>0){const n=pj(e);return Math.min(...n)>=o}return!0}function mg(e,o){return n=>{if(e[0]===e[1]||o[0]===o[1])return o[0];const a=(o[1]-o[0])/(e[1]-e[0]);return o[0]+a*(n-e[0])}}function mj(e){return(String(e).split(".")[1]||"").length}function gj(e,o){const n=Math.pow(10,o);return Math.round(e*n)/n}var Px=kx,yj=Cx,wj=Ax,vj=jx;const Mi=O.forwardRef(({className:e,...o},n)=>c.jsxs(Px,{ref:n,className:Un("relative flex w-full touch-none select-none items-center",e),...o,children:[c.jsx(yj,{className:"relative h-2.5 w-full grow overflow-hidden rounded-full bg-secondary",children:c.jsx(wj,{className:"absolute h-full bg-primary"})}),c.jsx(vj,{className:"block h-6 w-6 rounded-full border-2 border-primary bg-background 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"})]}));Mi.displayName=Px.displayName;function bj(){const e=jn(),o=qo(),{addArtwork:n}=$n(),a=O.useRef(null),i=e.state?.prompt,[s,u]=O.useState({size:Lb,density:Fb,contrast:zb}),[p,h]=O.useState(""),[g,w]=O.useState(""),[d,f]=O.useState(!1),[m,k]=O.useState(null),[S,_]=O.useState(null),[b,x]=O.useState(!1);if(!i)return c.jsx("div",{className:"container mx-auto px-4 py-12",children:c.jsxs("div",{className:"text-center",children:[c.jsx("p",{className:"text-muted-foreground mb-4",children:"No prompt selected"}),c.jsx(Rt,{onClick:()=>o("/prompts"),children:"Browse Prompts"})]})});const C=O.useCallback(M=>{u(K=>({...K,size:M[0]}))},[]),N=O.useCallback(M=>{u(K=>({...K,density:M[0]}))},[]),j=O.useCallback(M=>{u(K=>({...K,contrast:M[0]}))},[]),L=O.useCallback(M=>{const K=M.target.value;h(K),m&&k(null)},[m]),P=O.useCallback(M=>{const K=M.target.value;w(K),S&&_(null)},[S]),z=O.useCallback(()=>{!a.current||!(!b||window.confirm("Are you sure you want to clear your drawing?"))||(a.current.clear(),x(!1))},[b]),H=O.useCallback(()=>{if(a.current)try{const M=a.current.exportImage(!1),K=i.prompt.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"drawing",X=document.createElement("a");X.download=`${K}.png`,X.href=M,X.click(),st.success("Drawing downloaded in high resolution!")}catch(M){console.error("Error downloading canvas:",M),st.error("Failed to download. Please try again.")}},[i]),F=O.useCallback(M=>{const K=M.trim();return K?K.length>100?(k("Name is too long (max 100 characters)"),!1):(k(null),!0):(k("Please enter your name"),!1)},[]),T=O.useCallback(M=>{const K=M.trim();return K?K.length>254?(_("Email address is too long"),!1):/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(K)?(_(null),!0):(_("Please enter a valid email address"),!1):(_(null),!0)},[]),D=O.useCallback(async()=>{if(a.current&&F(p)&&T(g)){if(a.current.isEmpty()){st.error("Please draw something before submitting.");return}f(!0);try{const M=a.current.exportImage(!1);if(!M||!M.startsWith("data:image/")||M.length<100){st.error("Couldn't capture your drawing â please tap Submit again."),f(!1);return}const K={imageData:M,promptId:i.id,promptText:i.prompt,promptNumber:i.promptNumber,artistName:p.trim(),artistEmail:g.trim(),isAdminCreated:!1};console.log("[UserDrawPage] Submitting artwork with data:",{...K,imageData:`${M.substring(0,50)}... (${M.length} chars)`}),await n(K),g.trim()?st.success("YOUR ARTWORK HAS BEEN SUBMITTED! CHECK YOUR EMAIL TO RECEIVE IT. BROWSE MORE PROMPTS TO CREATE MORE ART!",{duration:5e3}
272):st.success("YOUR ARTWORK HAS BEEN SUBMITTED! BROWSE MORE PROMPTS TO CREATE MORE ART!",{duration:5e3}),o("/prompts")}catch(M){st.error("Failed to submit artwork"),console.error(M)}finally{f(!1)}}},[p,g,i,F,T,n,o]),B=!p.trim()||d||!b||!!m||!!S,$=p.trim(),W=b&&!$,Q=b&&!!$&&!g.trim(),te=b&&!!$&&!d,Z="text-foreground text-[11px] font-normal uppercase tracking-widest",J={fontFamily:"FK Grotesk Mono, monospace"},V={fontFamily:"Delcan Mono, monospace"};return c.jsx("div",{className:"h-full overflow-y-auto flex flex-col items-center pt-14 md:pt-4 lg:pt-4 pb-8 px-4",children:c.jsxs("div",{className:"w-full max-w-7xl flex flex-col lg:flex-row lg:items-stretch justify-center gap-6 lg:gap-10 mt-2 lg:mt-0 lg:flex-1 lg:min-h-0",children:[c.jsx("div",{className:"w-full lg:flex-1 flex flex-col items-center min-w-0 lg:min-h-0",children:c.jsx("div",{className:"w-full flex-1 min-h-0 flex items-center justify-center",children:c.jsx(hg,{ref:a,brush:s,onDrawStart:()=>x(!0),className:"w-full h-auto lg:w-auto lg:h-full max-w-full"})})}),c.jsxs("div",{className:"w-full lg:w-80 lg:flex-shrink-0 space-y-4 lg:mt-14 lg:self-start",children:[c.jsxs("div",{className:"bg-card border border-border rounded-lg p-3 sm:p-4 text-left",children:[c.jsx("div",{className:"text-muted-foreground text-[11px] uppercase tracking-widest mb-2",style:J,children:"Prompt"}),c.jsx("div",{className:"text-foreground text-sm font-medium",style:V,children:i.prompt})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{htmlFor:"artist-name",className:Z,style:J,children:"YOUR NAME OR HANDLE"}),c.jsx(Dr,{id:"artist-name",value:p,onChange:L,placeholder:"Artist name",className:`bg-card border-border text-foreground placeholder:text-muted-foreground h-11 text-base transition-all duration-200 hover:border-primary focus:border-primary${W?" pb-hint-glow":""}`,style:V,maxLength:100,autoComplete:"name","aria-invalid":!!m,"aria-describedby":m?"name-error":void 0}),m&&c.jsx("p",{id:"name-error",className:"text-xs text-red-400 mt-1",role:"alert",style:J,children:m})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{htmlFor:"artist-email",className:Z,style:J,children:"YOUR EMAIL (OPTIONAL)"}),c.jsx(Dr,{id:"artist-email",type:"email",value:g,onChange:P,placeholder:"Add your email here",className:`bg-card border-border text-foreground placeholder:text-muted-foreground h-11 text-base transition-all duration-200 hover:border-primary focus:border-primary${Q?" pb-hint-glow":""}`,style:V,maxLength:254,autoComplete:"email","aria-invalid":!!S,"aria-describedby":S?"email-error":void 0}),S&&c.jsx("p",{id:"email-error",className:"text-xs text-red-400 mt-1",role:"alert",style:J,children:S})]}),c.jsxs("div",{className:"bg-card border border-border rounded-lg p-3 sm:p-4 space-y-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex justify-between items-center",children:[c.jsx("label",{htmlFor:"brush-size",className:Z,style:J,children:"BRUSH SIZE"}),c.jsxs("span",{className:"text-foreground text-sm",style:V,"aria-live":"polite",children:[s.size,"px"]})]}),c.jsx(Mi,{id:"brush-size",value:[s.size],onValueChange:C,min:Bb,max:qb,step:1,className:"w-full","aria-label":"Brush size"})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex justify-between items-center",children:[c.jsx("label",{htmlFor:"ink-density",className:Z,style:J,children:"INK DENSITY"}),c.jsxs("span",{className:"text-foreground text-sm",style:V,"aria-live":"polite",children:[s.density,"%"]})]}),c.jsx(Mi,{id:"ink-density",value:[s.density],onValueChange:N,min:$b,max:Ub,step:1,className:"w-full","aria-label":"Ink density"})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex justify-between items-center",children:[c.jsx("label",{htmlFor:"contrast",className:Z,style:J,children:"CONTRAST"}),c.jsxs("span",{className:"text-foreground text-sm",style:V,"aria-live":"polite",children:[s.contrast,"%"]})]}),c.jsx(Mi,{id:"contrast",value:[s.contrast],onValueChange:j,min:Hb,max:Kb,step:1,className:"w-full","aria-label":"Contrast"})]}),c.jsxs("div",{className:"flex gap-3",children:[c.jsxs("button",{onClick:z,className:"flex-1 h-10 rounded-lg bg-background border border-border flex items-center justify-center gap-2 text-muted-foreground hover:bg-accent hover:text-foreground hover:border-primary transition-all duration-200",style:J,"aria-label":"Clear canvas",type:"button",children:[c.jsx(bd,{className:"w-4 h-4","aria-hidden":"true"}),c.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Clear"})]}),c.jsxs("button",{onClick:H,disabled:!b,className:"flex-1 h-10 rounded-lg bg-background border border-border flex items-center justify-center gap-2 text-muted-foreground hover:bg-accent hover:text-foreground hover:border-primary transition-all duration-200 disabled:opacity-40 disabled:cursor-not-allowed",style:J,"aria-label":"Download drawing",type:"button",children:[c.jsx(da,{className:"w-4 h-4","aria-hidden":"true"}),c.jsx("span",{className:"text-xs uppercase tracking-wider",children:"Download"})]})]})]}),c.jsxs("div",{className:"space-y-3 pt-1",children:[c.jsx(Rt,{onClick:D,disabled:B,className:`w-full bg-[#e7e2d7] text-[#161616] hover:bg-[#ded6c8] disabled:opacity-40 disabled:cursor-not-allowed h-12 px-6 py-4 rounded-lg transition-all duration-200 text-base${te?" pb-hint-glow":""}`,style:V,type:"button",children:d?c.jsxs(c.Fragment,{children:[c.jsx(rr,{className:"w-4 h-4 animate-spin mr-2","aria-hidden":"true"}),"Submitting..."]}):c.jsxs(c.Fragment,{children:[c.jsx(uE,{className:"w-4 h-4 mr-2","aria-hidden":"true"}),"Submit"]})}),c.jsx(Rt,{onClick:()=>o("/prompts"),variant:"ghost",className:"w-full text-muted-foreground hover:text-foreground h-9 transition-all duration-200 justify-start text-left uppercase text-[11px] tracking-widest px-0",style:J,type:"button",children:"â BACK TO PROMPTS"})]}),c.jsx("div",{className:"text-muted-foreground text-sm leading-relaxed pt-1",style:{fontFamily:"Martina Plantijn, Georgia, serif"},children:"Your artwork will be reviewed by an admin before appearing in the gallery. If you provide your email, we'll send you a copy of your artwork."})]})]})})}const xj={fontFamily:"Delcan Mono, monospace"},Kl={fontFamily:"FK Grotesk Mono, monospace"};function ji({title:e,children:o}){return c.jsxs("section",{className:"mt-10",children:[c.jsx("h2",{className:"text-[15px] uppercase tracking-wider text-muted-foreground mb-3",style:Kl,children:e}),c.jsx("div",{className:"space-y-3 text-[15px] leading-relaxed text-foreground
272/90",style:Kl,children:o})]})}function kj(){return c.jsx("div",{className:"min-h-screen overflow-y-auto bg-background",children:c.jsxs("div",{className:"max-w-2xl mx-auto px-5 md:px-8 py-16 md:py-24",children:[c.jsx(io,{to:"/",className:"text-[13px] text-muted-foreground hover:text-foreground underline",style:Kl,children:"â Prompt-Brush"}),c.jsx("h1",{className:"text-[34px] md:text-[42px] leading-tight text-foreground mt-8",style:xj,children:"Terms of Use"}),c.jsx("p",{className:"text-[13px] text-muted-foreground mt-3",style:Kl,children:"Last updated: 2026"}),c.jsx("p",{className:"text-[15px] leading-relaxed text-foreground/90 mt-8",style:Kl,children:"Prompt-Brush is a shared gallery of hand-drawn art. Anyone can submit a prompt, and anyone can draw one by hand. By using Prompt-Brush â on the web or in the app â you agree to these Terms of Use. If you do not agree, please do not use Prompt-Brush."}),c.jsxs(ji,{title:"Zero-tolerance content policy",children:[c.jsxs("p",{children:["There is ",c.jsx("strong",{children:"zero tolerance for objectionable content and for abusive behaviour"}),". This includes, without limitation: hateful, harassing, threatening, or violent content; sexual content involving minors; pornography; content that promotes discrimination, bigotry, or harm toward any individual or group; spam; and impersonation."]}),c.jsxs("p",{children:["Content that violates this policy is ",c.jsx("strong",{children:"removed"}),", and the people who post it are",c.jsx("strong",{children:" removed from Prompt-Brush"}),". We may remove content and terminate accounts at our discretion, without notice."]})]}),c.jsx(ji,{title:"How content is moderated",children:c.jsx("p",{children:"Every drawing is reviewed and only appears publicly after it is approved. Submitted prompts are filtered before they can be drawn. We review reports and act on objectionable content within 24 hours by removing it and ejecting the responsible user."})}),c.jsx(ji,{title:"Reporting and blocking",children:c.jsxs("p",{children:["You can ",c.jsx("strong",{children:"report"})," any drawing for review (the ââ¦â menu on a drawing), and you can",c.jsx("strong",{children:" block"})," any artist (the ââ¦â menu on a drawing, or âBlock this artistâ on their profile). Blocking removes that artistâs work from your feed immediately and notifies us so we can review their content. You can unblock anyone at any time."]})}),c.jsx(ji,{title:"Your content",children:c.jsx("p",{children:"You keep ownership of the drawings and prompts you create. By submitting them to Prompt-Brush, you grant us a non-exclusive, worldwide, royalty-free licence to display, reproduce, and distribute them within Prompt-Brush and its promotion. You are responsible for the content you submit and confirm you have the right to submit it."})}),c.jsx(ji,{title:"Acceptable use",children:c.jsx("p",{children:"Do not use Prompt-Brush to break the law, infringe othersâ rights, harass anyone, or post the objectionable content described above. Do not attempt to disrupt, abuse, or reverse-engineer the service."})}),c.jsx(ji,{title:"Disclaimer",children:c.jsx("p",{children:"Prompt-Brush is provided âas is,â without warranties of any kind. To the fullest extent permitted by law, we are not liable for content submitted by users or for any damages arising from your use of the service."})}),c.jsx(ji,{title:"Contact",children:c.jsxs("p",{children:["Questions or reports:"," ",c.jsx("a",{href:"mailto:[email protected]",className:"underline hover:text-foreground",children:"[email protected]"}),"."]})}),c.jsx("div",{className:"h-24"})]})})}const Rx=O.forwardRef(({className:e,...o},n)=>c.jsx("div",{ref:n,className:Un("rounded-lg border bg-card text-card-foreground shadow-sm",e),...o}));Rx.displayName="Card";const Dx=O.forwardRef(({className:e,...o},n)=>c.jsx("div",{ref:n,className:Un("flex flex-col space-y-1.5 p-6",e),...o}));Dx.displayName="CardHeader";const Mx=O.forwardRef(({className:e,...o},n)=>c.jsx("h3",{ref:n,className:Un("text-2xl font-semibold leading-none tracking-tight",e),...o}));
272Mx.displayName="CardTitle";const Ix=O.forwardRef(({className:e,...o},n)=>c.jsx("p",{ref:n,className:Un("text-sm text-muted-foreground",e),...o}));Ix.displayName="CardDescription";const Lx=O.forwardRef(({className:e,...o},n)=>c.jsx("div",{ref:n,className:Un("p-6 pt-0",e),...o}));Lx.displayName="CardContent";const Sj=O.forwardRef(({className:e,...o},n)=>c.jsx("div",{ref:n,className:Un("flex items-center p-6 pt-0",e),...o}));Sj.displayName="CardFooter";var _j=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Nj=_j.reduce((e,o)=>{const n=Gm(`Primitive.${o}`),a=O.forwardRef((i,s)=>{const{asChild:u,...p}=i,h=u?n:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(h,{...p,ref:s})});return a.displayName=`Primitive.${o}`,{...e,[o]:a}},{}),Ej="Label",Fx=O.forwardRef((e,o)=>c.jsx(Nj.label,{...e,ref:o,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Fx.displayName=Ej;var zx=Fx;const Cj=Zb("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Bx=O.forwardRef(({className:e,...o},n)=>c.jsx(zx,{ref:n,className:Un(Cj(),e),...o}));Bx.displayName=zx.displayName;function Aj(){const[e,o]=O.useState(""),{login:n}=$n(),a=qo(),i=s=>{s.preventDefault(),n(e)?(st.success("Login successful!"),a("/admin/approvals")):st.error("Invalid password")};return c.jsx("div",{className:"container mx-auto px-4 py-12",children:c.jsx("div",{className:"max-w-md mx-auto",children:c.jsxs(Rx,{children:[c.jsxs(Dx,{children:[c.jsx(Mx,{children:"Admin Login"}),c.jsx(Ix,{children:"Enter the admin password to access admin features"})]}),c.jsx(Lx,{children:c.jsxs("form",{onSubmit:i,className:"space-y-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx(Bx,{htmlFor:"password",children:"Password"}),c.jsx(Dr,{id:"password",type:"password",value:e,onChange:s=>o(s.target.value),required:!0})]}),c.jsx(Rt,{type:"submit",className:"w-full",children:"Login"})]})})]})})})}function jj(){const e=O.useRef(null),{addArtwork:o,prompts:n,updatePrompt:a}=$n(),[i,s]=O.useState({size:Lb,density:Fb,contrast:zb}),[u,p]=O.useState(null),[h,g]=O.useState(""),[w,d]=O.useState(""),[f,m]=O.useState(!1),k=O.useMemo(()=>{if(!h.trim())return n.filter(z=>z.status==="pending").slice(0,10);const P=h.toLowerCase();return n.filter(z=>z.prompt.toLowerCase().includes(P)||z.email?.toLowerCase().includes(P)).slice(0,10)},[n,h]),S=O.useCallback(P=>{s(z=>({...z,size:P[0]}))},[]),_=O.useCallback(P=>{s(z=>({...z,density:P[0]}))},[]),b=O.useCallback(P=>{s(z=>({...z,contrast:P[0]}))},[]),x=O.useCallback(()=>{e.current&&e.current.clear()},[]),C=O.useCallback(()=>{if(e.current)try{const P=e.current.exportImage(!1),z=u?u.prompt.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""):"admin-drawing",H=document.createElement("a");H.download=`${z}.png`,H.href=P,H.click(),st.success("Drawing downloaded in high resolution!")}catch(P){console.error("Error downloading canvas:",P),st.error("Failed to download. Please try again.")}},[u]),N=P=>{p(P),g(P.prompt),m(!1),P.email&&d(P.email)},j=()=>{p(null),g(""),d("")},L=async()=>{if(e.current){if(e.current.isEmpty()){st.error("Canvas is empty");return}try{const P=e.current.exportImage(!1);if(!P||!P.startsWith("data:image/")||P.length<100){st.error("Couldn't capture the drawing â please try again.");return}const z=await o({imageData:P,promptId:u?.id,isAdminCreated:!0});u&&await a(u.id,{status:"completed",completedAt:Date.now(),artworkId:z.id}),w.trim()?st.success("Artwork saved! Email notification sent."):st.success("Artwork saved to gallery!"),e.current.clear(),j()}catch(P){st.error("Failed to save artwork"),console.error(P)}}};return c.jsx("div",{className:"min-h-screen flex flex-col items-center justify-start pt-16 md:pt-8 lg:pt-0 pb-6 px-4",children:c.jsxs("div",{className:"w-full max-w-7xl flex flex-col lg:flex-row items-start justify-center gap-6 lg:gap-8 mt-4 md:mt-0 lg:-mt-4",children:[c.jsx("div",{className:"w-full lg:w-auto lg:flex-shrink-0",children:c.jsx("div",{className:"bg-muted/20 rounded-lg p-3 sm:p-4 w-full max-w-md md:max-w-lg lg:max-w-xl mx-auto lg:mx-0",children:c.jsx(hg,{ref:e,brush:i})})}),c.jsxs("div",{className:"w-full lg:w-96 lg:flex-shrink-0 space-y-4",children:[c.jsx("div",{className:"bg-card border border-border rounded-lg p-4 text-center",children:c.jsx("div",{className:"text-foreground text-sm font-medium",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Admin Draw"})}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"text-muted-foreground text-sm font-medium uppercase",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Select Prompt (Optional)"}),c.jsxs("div",{className:"relative",children:[c.jsx(fu,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),c.jsx(Dr,{value:h,onChange:P=>{g(P.target.value),m(!0)},onFocus:()=>m(!0),placeholder:"Search for a prompt...",className:"bg-card border-border text-foreground placeholder:text-muted-foreground pl-10 pr-20 h-10 transition-all duration-200 hover:border-primary focus:border-primary text-[13px]",style:{fontFamily:"Delcan Mono, monospace"}}),u&&c.jsx(Rt,{size:"sm",variant:"ghost",onClick:j,className:"absolute right-2 top-1/2 -translate-y-1/2 h-7 text-[11px]",children:"Clear"}),f&&k.length>0&&c.jsx("div",{className:"absolute top-full left-0 right-0 mt-1 bg-card border border-border rounded-lg shadow-lg max-h-64 overflow-y-auto z-10",children:k.map(P=>c.jsx("button",{onClick:()=>N(P),className:"w-full px-4 py-3 text-left hover:bg-accent/10 transition-colors border-b border-border last:border-b-0",children:c.jsxs("div",{className:"flex items-start justify-between gap-2",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"text-[13px] text-foreground truncate",style:{fontFamily:"FK Grotesk Mono, monospace"},children:P.prompt}),P.email&&c.jsxs("div",{className:"text-[11px] text-muted-foreground mt-1 flex items-center gap-1",style:{fontFamily:"FK Grotesk Mono, monospace"},children:[c.jsx(Ja,{className:"w-3 h-3"}),P.email]})]}),P.status==="completed"&&c.jsx(Xl,{className:"w-4 h-4 text-green-400 flex-shrink-0"})]})},P.id))})]}),u&&c.jsx("div",{className:"p-3 bg-accent/20 border border-border rounded-lg",children:c.jsxs("div",{className:"text-[12px] text-foreground",style:{fontFamily:"FK Grotesk Mono, monospace"},children:[c.jsx("span",{className:"text-muted-foreground",children:"Selected: "}),u.prompt]})})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"text-muted-foreground text-sm font-medium uppercase",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Email for Notification (Optional)"}),c.jsxs("div",{className:"relative",children:[c.jsx(Ja,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","aria-hidden":"true"}),c.jsx(Dr,{type:"email",value:w,onChange:P=>d(P.target.value),placeholder:"[email protected]",className:"bg-card border-border text-foreground placeholder:text-muted-foreground pl-10 h-10 transition-all duration-200 hover:border-primary focus:border-primary",style:{fontFamily:"Delcan Mono, monospace"}})]})]}),c.jsx("div",{className:"border-t-2 border-border my-5"}),c.jsxs("div",{className:"space-y-5",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex justify-between items-center",children:[c.jsx("label",{htmlFor:"brush-size",className:"text-foreground text-sm font-medium uppercase",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Brush Size"}),c.jsxs("span",{className:"text-foreground text-sm",style:{fontFamily:"Delcan Mono, monospace"},"aria-live":"polite",children:[i.size,"px"]})]}),c.jsx(Mi,{id:"brush-size",value:[i.size],onValueChange:S,min:Bb,max:qb,step:1,className:"w-full","aria-label":"Brush size"})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex justify-between items-center",children:[c.jsx("label",{htmlFor:"ink-density",className:"text-foreground text-sm font-medium uppercase",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Ink Density"}),c.jsxs("span",{className:"text-foreground text-sm",style:{fontFamily:"Delcan Mono, monospace"},"aria-live":"polite",children:[i.density,"%"]})]}),c.jsx(Mi,{id:"ink-density",value:[i.density],onValueChange:_,min:$b,max:Ub,step:1,className:"w-full","aria-label":"Ink density"})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsxs("div",{className:"flex justify-between items-center",children:[c.jsx("label",{htmlFor:"contrast",className:"text-foreground text-sm font-medium uppercase",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Contrast"}),c.jsxs("span",{className:"text-foreground text-sm",style:{fontFamily:"Delcan Mono, monospace"},"aria-live":"polite",children:[i.contrast,"%"]})]}),c.jsx(Mi,{id:"contrast",value:[i.contrast],onValueChange:b,min:Hb,max:Kb,step:1,className:"w-full","aria-label":"Contrast"})]})]}),c.jsx("div",{className:"border-t-2 border-border my-5"}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex gap-4 mb-6",children:[c.jsxs("button",{onClick:x,className:"flex-1 h-10 rounded-lg bg-card border border-border flex items-center justify-center gap-2 text-muted-foreground hover:bg-accent hover:text-foreground hover:border-primary transition-all duration-200 px-4",style:{fontFamily:"FK Grotesk Mono, monospace"},"aria-label":"Clear canvas",type:"button",children:[c.jsx(bd,{className:"w-5 h-5","aria-hidden":"true"}),c.jsx("span",{className:"text-sm uppercase",children:"CLEAR"})]}),c.jsxs("button",{onClick:C,className:"flex-1 h-10 rounded-lg bg-card border border-border flex items-center justify-center gap-2 text-muted-foreground hover:bg-accent hover:text-foreground hover:border-primary transition-all duration-200 px-4",style:{fontFamily:"FK Grotesk Mono, monospace"},"aria-label":"Download drawing",type:"button",children:[c.jsx(da,{className:"w-5 h-5","aria-hidden":"true"}),c.jsx("span",{className:"text-sm uppercase",children:"DOWNLOAD"})]})]}),c.jsx("div",{className:"space-y-4",children:c.jsx(Rt,{onClick:L,className:"w-full bg-primary text-primary-foreground hover:bg-primary/90 h-12 px-6 py-4 transition-all duration-200 text-sm font-semibold",style:{fontFamily:"FK Grotesk Mono, monospace"},type:"button",children:"Save to Gallery"})})]}),c.jsx("div",{className:"text-muted-foreground text-xs leading-relaxed bg-muted/30 rounded-lg p-4 mt-5",style:{fontFamily:"Delcan Mono, monospace"},children:"Create artwork as admin. If you select a prompt, it will be marked as completed. If you provide an email, a notification will be sent."})]})]})})}const Bc=12,qx=O.memo(({imageData:e,prompt:o})=>{const[n,a]=O.useState(!1),[i,s]=O.useState(!1),[u,p]=O.useState(!1),h=O.useRef(null);O.useEffect(()=>{const d=new IntersectionObserver(([f])=>{f.isIntersecting&&p(!0)},{rootMargin:"50px"});return h.current&&d.observe(h.current),()=>d.disconnect()},[]);const g=O.useCallback(()=>{a(!0)},[]),w=O.useCallback(()=>{s(!0),a(!0)},[]);return c.jsxs("div",{className:"relative aspect-[5/7] bg-muted/20",children:[!n&&!i&&c.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:c.jsx(rr,{className:"w-6 h-6 text-muted-foreground animate-spin"})}),i?c.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[c.jsx(a1,{className:"w-8 h-8 mb-2"}),c.jsx("span",{className:"text-xs",children:"Failed to load image"})]}):c.jsx("img",{ref:h,src:u?e:void 0,alt:o||"Artwork",className:`w-full h-full object-contain transition-opacity duration-300 ${n?"opacity-100":"opacity-0"}`,onLoad:g,onError:w})]})});qx.displayName="LazyArtworkImage";function Tj(){const{pendingArtworks:e,approveArtwork:o,rejectArtwork:n,deleteArtwork:a,prompts:i,updatePrompt:s,isLoading:u}=$n(),[p,h]=O.useState(null),[g,w]=O.useState({isOpen:!1,artworkId:null,action:null,artwork:null}),[d,f]=O.useState(!1),[m,k]=O.useState(Bc),S=O.useRef(null),_=O.useCallback((T,D)=>{w({isOpen:!0,artworkId:T.id,action:D,artwork:T})},[]),b=O.useCallback(()=>{w({isOpen:!1,artworkId:null,action:null,artwork:null})},[]),x=O.useCallback(async T=>{h(T),b();try{const D=e.find(B=>B.id===T);if(!D)throw new Error("Artwork not found");if(o(T),D.promptId){const B=i.find($=>
272$.id===D.promptId);B&&B.status!=="completed"&&s(D.promptId,{status:"completed",completedAt:Date.now(),artworkId:T})}st.success("Artwork approved successfully!")}catch(D){console.error("Error approving artwork:",D);const B=D instanceof Error?D.message:"Failed to approve artwork";st.error(B)}finally{h(null)}},[e,o,i,s,b]),C=O.useCallback(async T=>{h(T),b();try{n(T),st.success("Artwork rejected")}catch(D){console.error("Error rejecting artwork:",D);const B=D instanceof Error?D.message:"Failed to reject artwork";st.error(B)}finally{h(null)}},[n,b]),N=O.useCallback(async T=>{h(T),b();try{a(T),st.success("Drawing permanently deleted")}catch(D){console.error("Error deleting artwork:",D),st.error(D instanceof Error?D.message:"Failed to delete artwork")}finally{h(null)}},[a,b]),j=O.useCallback(()=>{!g.artworkId||!g.action||(g.action==="approve"?x(g.artworkId):C(g.artworkId))},[g,x,C]),L=O.useMemo(()=>T=>new Date(T).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}),[]),P=O.useCallback(()=>{f(!0),k(Bc),st.success("Artworks refreshed"),setTimeout(()=>f(!1),500)},[]),z=O.useMemo(()=>e.slice(0,m),[e,m]),H=m<e.length;O.useEffect(()=>{const T=new IntersectionObserver(B=>{B[0].isIntersecting&&H&&k(W=>W+Bc)},{rootMargin:"400px"}),D=S.current;return D&&T.observe(D),()=>{D&&T.unobserve(D)}},[H]);const F=O.useCallback(async T=>{try{const $=(i.find(Q=>Q.id===T.promptId)?.prompt||"artwork").replace(/[^a-z0-9]/gi,"_").toLowerCase().substring(0,30),W=document.createElement("a");W.href=T.imageData,W.download=`${$}_${T.id.substring(0,8)}.png`,document.body.appendChild(W),W.click(),document.body.removeChild(W),st.success("Download started")}catch(D){console.error("Error downloading artwork:",D),st.error("Failed to download artwork")}},[i]);return u?c.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:c.jsxs("div",{className:"text-center",children:[c.jsx(rr,{className:"w-8 h-8 text-muted-foreground animate-spin mx-auto mb-3"}),c.jsx("p",{className:"text-muted-foreground text-sm",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Loading pending artworks..."})]})}):e.length===0?c.jsxs("div",{className:"container mx-auto px-4 py-12",children:[c.jsx("h1",{className:"text-2xl font-medium mb-8",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Artwork Approvals"}),c.jsxs("div",{className:"flex flex-col items-center justify-center py-12 space-y-4",children:[c.jsx("div",{className:"text-muted-foreground text-center",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"No pending artworks to review."}),c.jsxs(Rt,{onClick:P,disabled:d,variant:"outline",size:"sm",style:{fontFamily:"FK Grotesk Mono, monospace"},children:[c.jsx(Ps,{className:`w-4 h-4 mr-2 ${d?"animate-spin":""}`}),"Refresh"]})]})]}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"container mx-auto px-4 py-12",children:c.jsxs("div",{className:"space-y-6",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-2xl font-medium",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Artwork Approvals"}),c.jsxs(Rt,{onClick:P,disabled:d,variant:"outline",size:"sm",style:{fontFamily:"FK Grotesk Mono, monospace"},children:[c.jsx(Ps,{className:`w-4 h-4 mr-2 ${d?"animate-spin":""}`}),"Refresh"]})]}),c.jsxs("div",{className:"text-foreground text-sm",style:{fontFamily:"FK Grotesk Mono, monospace"},children:[e.length," artwork",e.length!==1?"s":""," pending approval",m<e.length&&` (showing ${m})`]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:z.map(T=>{const D=i.find(B=>B.id===T.promptId);return c.jsxs("div",{className:"bg-card border border-border rounded-lg overflow-hidden transition-all hover:border-primary",children:[c.jsx(qx,{imageData:T.imageData,prompt:T.promptText||D?.prompt}),c.jsxs("div",{className:"p-4 space-y-3",children:[c.jsx("div",{className:"text-foreground text-sm line-clamp-2",title:T.promptText||D?.prompt,style:{fontFamily:"FK Grotesk Mono, monospace"},children:T.promptText||D?.prompt||"No prompt"}),T.artistName&&c.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-xs",style:{fontFamily:"FK Grotesk Mono, monospace"},children:[c.jsx(i1,{className:"w-3 h-3","aria-hidden":"true"}),c.jsx("span",{children:T.artistName})]}),c.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground text-xs",style:{fontFamily:"FK Grotesk Mono, monospace"},children:[c.jsx(_N,{className:"w-3 h-3","aria-hidden":"true"}),c.jsx("span",{children:L(T.createdAt)})]}),c.jsxs("div",{className:"space-y-2 pt-2",children:[c.jsxs("div",{className:"flex gap-2",children:[c.jsx(Rt,{onClick:()=>_(T,"approve"),disabled:p===T.id,className:"flex-1 bg-green-500 text-white hover:bg-green-600 disabled:opacity-50",size:"sm",style:{fontFamily:"FK Grotesk Mono, monospace"},"aria-label":`Approve ${D?.prompt||"artwork"}`,children:p===T.id?c.jsx(rr,{className:"w-4 h-4 animate-spin"}):c.jsxs(c.Fragment,{children:[c.jsx(vd,{className:"w-4 h-4 mr-1"}),"Approve"]})}),c.jsx(Rt,{onClick:()=>_(T,"reject"),disabled:p===T.id,variant:"outline",className:"flex-1 bg-transparent text-red-400 border-red-400/20 hover:bg-red-400/10 disabled:opacity-50",size:"sm",style:{fontFamily:"FK Grotesk Mono, monospace"},"aria-label":`Reject ${D?.prompt||"artwork"}`,children:p===T.id?c.jsx(rr,{className:"w-4 h-4 animate-spin"}):c.jsxs(c.Fragment,{children:[c.jsx(Li,{className:"w-4 h-4 mr-1"}),"Reject"]})})]}),c.jsxs(Rt,{onClick:()=>F(T),variant:"outline",className:"w-full",size:"sm",style:{fontFamily:"FK Grotesk Mono, monospace"},"aria-label":`Download ${D?.prompt||"artwork"}`,children:[c.jsx(da,{className:"w-4 h-4 mr-1"}),"Download"]})]})]})]},T.id)})}),H&&c.jsxs("div",{ref:S,className:"flex items-center justify-center py-8",children:[c.jsx(rr,{className:"w-6 h-6 text-muted-foreground animate-spin"}),c.jsx("span",{className:"ml-2 text-muted-foreground text-sm",children:"Loading more artworks..."})]}),!H&&e.length>Bc&&c.jsxs("div",{className:"text-center text-muted-foreground text-sm py-4",children:["Showing all ",e.length," pending artworks"]})]})}),g.isOpen&&c.jsx("div",{style:{position:"fixed",inset:0,zIndex:9998,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center"},onClick:b,children:c.jsxs("div",{className:"bg-card border border-border",style:{position:"relative",zIndex:9999,padding:"24px",borderRadius:"8px",maxWidth:"500px",width:"90%",boxShadow:"0 10px 50px rgba(0,0,0,0.3)"},onClick:T=>T.stopPropagation(),children:[c.jsx("h2",{className:"text-foreground text-xl font-bold mb-3",style:{fontFamily:"FK Grotesk Mono, monospace"},children:g.action==="approve"?"Approve Artwork":"Reject Artwork"}),c.jsx("p",{className:"text-foreground text-sm mb-4",style:{fontFamily:"FK Grotesk Mono, monospace"},children:g.action==="approve"?"Are you sure you want to approve this artwork? It will be published to the gallery.":"Reject this drawing? It's archived (kept in the artist's profile, hidden from the gallery) and the prompt reopens. Use Delete permanently only for spam or abuse."}),g.artwork&&c.jsxs("div",{className:"bg-muted/30 rounded-lg p-3 mt-4",style:{fontFamily:"FK Grotesk Mono, monospace"},children:[c.jsxs("div",{className:"text-foreground text-sm mb-2",children:[c.jsx("strong",{children:"Prompt:"})," ",g.artwork.promptText||i.find(T=>T.id===g.artwork?.promptId)?.prompt||"N/A"]}),g.artwork.artistName&&c.jsxs("div",{className:"text-foreground text-xs mb-1",children:[c.jsx("strong",{children:"Artist:"})," ",g.artwork.artistName]}),g.artwork.artistEmail&&c.jsxs("div",{className:"text-foreground text-xs",children:[c.jsx("strong",{children:"Email:"})," ",g.artwork.artistEmail]}),c.jsxs("div",{className:"flex flex-wrap gap-3 mt-3 text-[10px] tracking-wide text-foreground
272/80",children:[c.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[c.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full",style:{background:g.artwork.hasEmail?"#22c55e":"#9ca3af"}}),g.artwork.hasEmail?"EMAIL ON FILE":"NO EMAIL"]}),c.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[c.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full",style:{background:g.artwork.source==="app"?"#60a5fa":g.artwork.source==="web"?"#c084fc":"#9ca3af"}}),g.artwork.source==="app"?"DRAWN IN APP":g.artwork.source==="web"?"DRAWN ON WEB":"SOURCE UNKNOWN"]})]})]}),c.jsxs("div",{className:"flex gap-3 justify-end mt-6",children:[c.jsx(Rt,{onClick:b,variant:"outline",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Cancel"}),g.action==="reject"&&c.jsx(Rt,{onClick:()=>g.artworkId&&N(g.artworkId),variant:"outline",style:{borderColor:"#ef4444",color:"#ef4444",fontFamily:"FK Grotesk Mono, monospace"},children:"Delete permanently"}),c.jsx(Rt,{onClick:j,style:{backgroundColor:g.action==="approve"?"#22c55e":"#f59e0b",color:"#ffffff",fontFamily:"FK Grotesk Mono, monospace"},children:g.action==="approve"?"Approve":"Reject"})]})]})})]})}function Oj({prompt:e,isLast:o,onDelete:n,onAddEmail:a,onComplete:i,isProcessing:s}){const[u,p]=O.useState(!1),[h,g]=O.useState(""),w=hx(e.createdAt),d=O.useCallback(()=>{p(!0)},[]),f=O.useCallback(()=>{if(!h.trim()){st.error("Please enter an email address");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h)){st.error("Please enter a valid email address");return}a(e.id,h),p(!1),g("")},[h,a,e.id]),m=O.useCallback(()=>{p(!1),g("")},[]);return c.jsxs("div",{children:[c.jsx("div",{className:"px-8 py-5 hover:bg-accent/10 transition-colors",children:c.jsxs("div",{className:"flex items-start gap-6",children:[c.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[c.jsx("div",{className:"text-foreground text-[15px] leading-relaxed",style:{fontFamily:"FK Grotesk Mono, monospace"},children:e.prompt}),c.jsxs("div",{className:"flex items-center gap-4 flex-wrap",children:[c.jsx("div",{className:"text-muted-foreground text-[11px]",style:{fontFamily:"FK Grotesk Mono, monospace"},children:w}),e.email?c.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 bg-accent/30 rounded text-[11px]",children:[c.jsx(Ja,{className:"w-3 h-3"}),c.jsx("span",{style:{fontFamily:"FK Grotesk Mono, monospace"},children:e.email})]}):u?c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Dr,{type:"email",value:h,onChange:k=>g(k.target.value),placeholder:"[email protected]",className:"h-7 text-[11px] w-48",style:{fontFamily:"FK Grotesk Mono, monospace"},autoFocus:!0,onKeyDown:k=>{k.key==="Enter"&&f(),k.key==="Escape"&&m()}}),c.jsx(Rt,{size:"sm",onClick:f,className:"h-7 px-2 text-[11px]",children:"Add"}),c.jsx(Rt,{size:"sm",variant:"ghost",onClick:m,className:"h-7 px-2 text-[11px]",children:"Cancel"})]}):c.jsxs(Rt,{size:"sm",variant:"ghost",onClick:d,className:"h-7 px-2 text-[11px] text-muted-foreground hover:text-foreground",children:[c.jsx(Ja,{className:"w-3 h-3 mr-1"}),"Add Email"]}),e.status==="completed"?c.jsxs("div",{className:"px-2 py-1 bg-green-500/15 text-green-400 rounded text-[11px] font-medium flex items-center gap-1",children:[c.jsx(Xl,{className:"w-3 h-3"}),c.jsx("span",{children:"Completed"})]}):c.jsxs("div",{className:"px-2 py-1 bg-yellow-500/15 text-yellow-400 rounded text-[11px] font-medium flex items-center gap-1",children:[c.jsx(PN,{className:"w-3 h-3"}),c.jsx("span",{children:"Pending"})]})]})]}),c.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[e.status==="pending"&&c.jsx(Rt,{size:"sm",variant:"ghost",onClick:()=>i(e.id),disabled:s,className:"h-8 px-3 text-green-400 hover:text-green-300 hover:bg-green-500/10","aria-label":"Mark as completed",children:c.jsx(Xl,{className:"w-4 h-4"})}),c.jsx(Rt,{size:"sm",variant:"ghost",onClick:()=>n(e.id),disabled:s,className:"h-8 px-3 text-red-400 hover:text-red-300 hover:bg-red-500/10","aria-label":"Delete prompt",children:c.jsx(bd,{className:"w-4 h-4"})})]})]})}),!o&&c.jsx("div",{className:"px-8",children:c.jsx(pg,{className:"bg-border"})})]})}function Pj(){const{prompts:e,deletePrompt:o,addEmailToPrompt:n,completePrompt:a,isLoading:i}=$n(),[s,u]=O.useState(""),[p,h]=O.useState("all"),[g,w]=O.useState(null),[d,f]=O.useState(!1),m=O.useCallback(j=>{u(j.target.value)},[]),k=O.useCallback(()=>{u("")},[]),S=O.useCallback(async j=>{if(confirm("Are you sure you want to delete this prompt?")){w(j);try{await o(j),st.success("Prompt deleted successfully")}catch(L){console.error("Error deleting prompt:",L),st.error("Failed to delete prompt")}finally{w(null)}}},[o]),_=O.useCallback(async(j,L)=>{w(j);try{await n(j,L),st.success("Email added successfully")}catch(P){console.error("Error adding email:",P),st.error("Failed to add email")}finally{w(null)}},[n]),b=O.useCallback(async j=>{w(j);try{await a(j),st.success("Prompt marked as completed")}catch(L){console.error("Error completing prompt:",L),st.error("Failed to complete prompt")}finally{w(null)}},[a]),x=O.useCallback(()=>{f(!0),st.success("Prompts refreshed"),setTimeout(()=>f(!1),500)},[]),C=O.useMemo(()=>{let j=e;if(p!=="all"&&(j=j.filter(L=>L.status===p)),s.trim()){const L=s.toLowerCase();j=j.filter(P=>P.prompt.toLowerCase().includes(L)||P.email?.toLowerCase().includes(L))}return j},[e,p,s]),N=O.useMemo(()=>{const j=e.length,L=e.filter(H=>H.status==="completed").length,P=j-L,z=e.filter(H=>H.email).length;
272return{total:j,completed:L,pending:P,withEmail:z}},[e]);return i?c.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:c.jsxs("div",{className:"text-center",children:[c.jsx(rr,{className:"w-8 h-8 text-muted-foreground animate-spin mx-auto mb-3"}),c.jsx("p",{className:"text-muted-foreground text-sm",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Loading prompts..."})]})}):c.jsxs("div",{className:"space-y-8 mt-24 px-8",children:[c.jsxs("div",{className:"space-y-5",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-foreground text-[15px] tracking-tight",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Prompt Management"}),c.jsxs(Rt,{size:"sm",variant:"ghost",onClick:x,disabled:d,className:"h-8",children:[c.jsx(Ps,{className:`w-4 h-4 mr-2 ${d?"animate-spin":""}`}),"Refresh"]})]}),c.jsxs("div",{className:"grid grid-cols-4 gap-4",children:[c.jsxs("div",{className:"px-4 py-3 bg-card border border-border rounded-lg",children:[c.jsx("div",{className:"text-muted-foreground text-[11px] mb-1",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Total Prompts"}),c.jsx("div",{className:"text-foreground text-[20px] font-medium",style:{fontFamily:"FK Grotesk Mono, monospace"},children:N.total})]}),c.jsxs("div",{className:"px-4 py-3 bg-card border border-border rounded-lg",children:[c.jsx("div",{className:"text-muted-foreground text-[11px] mb-1",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Completed"}),c.jsx("div",{className:"text-green-400 text-[20px] font-medium",style:{fontFamily:"FK Grotesk Mono, monospace"},children:N.completed})]}),c.jsxs("div",{className:"px-4 py-3 bg-card border border-border rounded-lg",children:[c.jsx("div",{className:"text-muted-foreground text-[11px] mb-1",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Pending"}),c.jsx("div",{className:"text-yellow-400 text-[20px] font-medium",style:{fontFamily:"FK Grotesk Mono, monospace"},children:N.pending})]}),c.jsxs("div",{className:"px-4 py-3 bg-card border border-border rounded-lg",children:[c.jsx("div",{className:"text-muted-foreground text-[11px] mb-1",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"With Email"}),c.jsx("div",{className:"text-foreground text-[20px] font-medium",style:{fontFamily:"FK Grotesk Mono, monospace"},children:N.withEmail})]})]}),c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(zN,{className:"w-4 h-4 text-muted-foreground"}),c.jsx("span",{className:"text-muted-foreground text-[13px]",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Status:"})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx(Rt,{size:"sm",variant:p==="all"?"default":"ghost",onClick:()=>h("all"),className:"h-8 text-[12px]",children:"All"}),c.jsx(Rt,{size:"sm",variant:p==="pending"?"default":"ghost",onClick:()=>h("pending"),className:"h-8 text-[12px]",children:"Pending"}),c.jsx(Rt,{size:"sm",variant:p==="completed"?"default":"ghost",onClick:()=>h("completed"),className:"h-8 text-[12px]",children:"Completed"})]})]}),c.jsxs("div",{className:"relative max-w-2xl w-full mx-auto",children:[c.jsx(fu,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground pointer-events-none","aria-hidden":"true"}),c.jsx(Dr,{value:s,onChange:m,placeholder:"Search prompts or emails...",className:"bg-card border-border text-foreground placeholder:text-muted-foreground pl-11 pr-11 rounded-[24px] text-[14px] h-11 focus:border-primary focus:ring-ring shadow-sm transition-all",style:{fontFamily:"FK Grotesk Mono, monospace"},autoComplete:"off"}),s&&c.jsx("button",{onClick:k,className:"absolute right-4 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors p-0.5",type:"button",children:c.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})]}),C.length===0?c.jsx("div",{className:"text-muted-foreground text-center py-16 text-[14px]",style:{fontFamily:"FK Grotesk Mono, monospace"},children:s||p!=="all"?c.jsxs(c.Fragment,{children:["No prompts match your filters.",c.jsx("button",{onClick:()=>{k(),h("all")},className:"block mx-auto mt-4 text-muted-foreground hover:text-foreground underline text-[13px]",type:"button",children:"Clear filters"})]}):"No prompts yet."}):c.jsxs("div",{className:"space-y-0",children:[(s||p!=="all")&&c.jsxs("div",{className:"text-muted-foreground text-[13px] mb-4",style:{fontFamily:"FK Grotesk Mono, monospace"},children:["Showing ",C.length," of ",e.length," ",e.length===1?"prompt":"prompts"]}),c.jsx("div",{className:"space-y-0",children:C.map((j,L)=>c.jsx(Oj,{prompt:j,isLast:L===C.length-1,onDelete:S,onAddEmail:_,onComplete:b,isProcessing:g===j.id},j.id))})]})]})}var xp,Ev;function Rj(){if(Ev)return xp;Ev=1;function e(){this.__data__=[],this.size=0}return xp=e,xp}var kp,Cv;function $x(){if(Cv)return kp;Cv=1;function e(o,n){return o===n||o!==o&&n!==n}return kp=e,kp}var Sp,Av;function Md(){if(Av)return Sp;Av=1;var e=$x();function o(n,a){for(var i=n.length;i--;)if(e(n[i][0],a))return i;return-1}return Sp=o,Sp}var _p,jv;function Dj(){if(jv)return _p;jv=1;var e=Md(),o=Array.prototype,n=o.splice;function a(i){var s=this.__data__,u=e(s,i);if(u<0)return!1;var p=s.length-1;return u==p?s.pop():n.call(s,u,1),--this.size,!0}return _p=a,_p}var Np,Tv;function Mj(){if(Tv)return Np;Tv=1;var e=Md();function o(n){var a=this.__data__,i=e(a,n);return i<0?void 0:a[i][1]}return Np=o,Np}var Ep,Ov;function Ij(){if(Ov)return Ep;Ov=1;var e=Md();function o(n){return e(this.__data__,n)>-1}return Ep=o,Ep}var Cp,Pv;function Lj(){if(Pv)return Cp;Pv=1;var e=Md();function o(n,a){var i=this.__data__,s=e(i,n);return s<0?(++this.size,i.push([n,a])):i[s][1]=a,this}return Cp=o,Cp}var Ap,Rv;function Id(){if(Rv)return Ap;Rv=1;var e=Rj(),o=Dj(),n=Mj(),a=Ij(),i=Lj();function s(u){var p=-1,h=u==null?0:u.length;for(this.clear();++p<h;){var g=u[p];this.set(g[0],g[1])}}return s.prototype.clear=e,s.prototype.delete=o,s.prototype.get=n,s.prototype.has=a,s.prototype.set=i,Ap=s,Ap}var jp,Dv;function Fj(){if(Dv)return jp;Dv=1;var e=Id();function o(){this.__data__=new e,this.size=0}return jp=o,jp}var Tp,Mv;function zj(){if(Mv)return Tp;Mv=1;function e(o){var n=this.__data__,a=n.delete(o);return this.size=n.size,a}return Tp=e,Tp}var Op,Iv;function Bj(){if(Iv)return Op;Iv=1;function e(o){return this.__data__.get(o)}return Op=e,Op}var Pp,Lv;function qj(){if(Lv)return Pp;Lv=1;function e(o){return this.__data__.has(o)}return Pp=e,Pp}var Rp,Fv;function Ux(){if(Fv)return Rp;Fv=1;var e=typeof Ll=="object"&&Ll&&Ll.Object===Object&⋘return Rp=e,Rp}var Dp,zv;function wa(){if(zv)return Dp;zv=1;var e=Ux(),o=typeof self=="object"&&self&&self.Object===Object&&self,n=e||o||Function("return this")();return Dp=n,Dp}var Mp,Bv;function gg(){if(Bv)return Mp;Bv=1;var e=wa(),o=e.Symbol;return Mp=o,Mp}var Ip,qv;function $j(){if(qv)return Ip;qv=1;var e=gg(),o=Object.prototype,n=o.hasOwnProperty,a=o.toString,i=e?e.toStringTag:void 0;function s(u){var p=n.call(u,i),h=u[i];try{u[i]=void 0;var g=!0}catch{}var w=a.call(u);return g&&(p?u[i]=h:delete u[i]),w}return Ip=s,Ip}var Lp,$v;function Uj(){if($v)return Lp;$v=1;var e=Object.prototype,o=e.toString;function n(a){return o.call(a)}return Lp=n,Lp}var Fp,Uv;
vendor: 4,395 bytes, line 272
272function Ld(){if(Uv)return Fp;Uv=1;var e=gg(),o=$j(),n=Uj(),a="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function u(p){return p==null?p===void 0?i:a:s&&s in Object(p)?o(p):n(p)}return Fp=u,Fp}var zp,Hv;function Hx(){if(Hv)return zp;Hv=1;function e(o){var n=typeof o;return o!=null&&(n=="object"||n=="function")}return zp=e,zp}var Bp,Kv;function Kx(){if(Kv)return Bp;Kv=1;var e=Ld(),o=Hx(),n="[object AsyncFunction]",a="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function u(p){if(!o(p))return!1;var h=e(p);return h==a||h==i||h==n||h==s}return Bp=u,Bp}var qp,Wv;function Hj(){if(Wv)return qp;Wv=1;var e=wa(),o=e["__core-js_shared__"];return qp=o,qp}var $p,Vv;function Kj(){if(Vv)return $p;Vv=1;var e=Hj(),o=(function(){var a=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function n(a){return!!o&&o in a}return $p=n,$p}var Up,Gv;function Wx(){if(Gv)return Up;Gv=1;var e=Function.prototype,o=e.toString;function n(a){if(a!=null){try{return o.call(a)}catch{}try{return a+""}catch{}}return""}return Up=n,Up}var Hp,Yv;function Wj(){if(Yv)return Hp;Yv=1;var e=Kx(),o=Kj(),n=Hx(),a=Wx(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,u=Function.prototype,p=Object.prototype,h=u.toString,g=p.hasOwnProperty,w=RegExp("^"+h.call(g).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(f){if(!n(f)||o(f))return!1;var m=e(f)?w:s;return m.test(a(f))}return Hp=d,Hp}var Kp,Zv;function Vj(){if(Zv)return Kp;Zv=1;function e(o,n){return o?.[n]}return Kp=e,Kp}var Wp,Qv;function Hs(){if(Qv)return Wp;Qv=1;var e=Wj(),o=Vj();function n(a,i){var s=o(a,i);return e(s)?s:void 0}return Wp=n,Wp}var Vp,Xv;function yg(){if(Xv)return Vp;Xv=1;var e=Hs(),o=wa(),n=e(o,"Map");return Vp=n,Vp}var Gp,Jv;function Fd(){if(Jv)return Gp;Jv=1;var e=Hs(),o=e(Object,"create");return Gp=o,Gp}var Yp,e0;function Gj(){if(e0)return Yp;e0=1;var e=Fd();function o(){this.__data__=e?e(null):{},this.size=0}return Yp=o,Yp}var Zp,t0;function Yj(){if(t0)return Zp;t0=1;function e(o){var n=this.has(o)&&delete this.__data__[o];return this.size-=n?1:0,n}return Zp=e,Zp}var Qp,r0;function Zj(){if(r0)return Qp;r0=1;var e=Fd(),o="__lodash_hash_undefined__",n=Object.prototype,a=n.hasOwnProperty;function i(s){var u=this.__data__;if(e){var p=u[s];return p===o?void 0:p}return a.call(u,s)?u[s]:void 0}return Qp=i,Qp}var Xp,n0;function Qj(){if(n0)return Xp;n0=1;var e=Fd(),o=Object.prototype,n=o.hasOwnProperty;function a(i){var s=this.__data__;return e?s[i]!==void 0:n.call(s,i)}return Xp=a,Xp}var Jp,o0;function Xj(){if(o0)return Jp;o0=1;var e=Fd(),o="__lodash_hash_undefined__";function n(a,i){var s=this.__data__;return this.size+=this.has(a)?0:1,s[a]=e&&i===void 0?o:i,this}return Jp=n,Jp}var eh,a0;function Jj(){if(a0)return eh;a0=1;var e=Gj(),o=Yj(),n=Zj(),a=Qj(),i=Xj();function s(u){var p=-1,h=u==null?0:u.length;for(this.clear();++p<h;){var g=u[p];this.set(g[0],g[1])}}return s.prototype.clear=e,s.prototype.delete=o,s.prototype.get=n,s.prototype.has=a,s.prototype.set=i,eh=s,eh}var th,i0;function eT(){if(i0)return th;i0=1;var e=Jj(),o=Id(),n=yg();function a(){this.size=0,this.__data__={hash:new e,map:new(n||o),string:new e}}return th=a,th}var rh,s0;function tT(){if(s0)return rh;s0=1;function e(o){var n=typeof o;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?o!=="__proto__":o===null}return rh=e,rh}var nh,l0;function zd(){if(l0)return nh;l0=1;var e=tT();function o(n,a){var i=n.__data__;return e(a)?i[typeof a=="string"?"string":"hash"]:i.map}return nh=o,nh}var oh,u0;function rT(){if(u0)return oh;u0=1;var e=zd();function o(n){var a=e(this,n).delete(n);return this.size-=a?1:0,a}return oh=o,oh}var ah,c0;function nT(){if(c0)return ah;c0=1;var e=zd();function o(n){return e(this,n).get(n)}return ah=o,ah}var ih,d0;function oT(){if(d0)return ih;d0=1;var e=zd();function o(n){return e(this,n).has(n)}return ih=o,ih}var sh,f0;function aT(){if(f0)return sh;f0=1;var e=zd();function o(n,a){var i=e(this,n),s=i.size;return i.set(n,a),this.size+=i.size==s?0:1,this}return sh=o,sh}var lh,p0;function Vx(){if(p0)return lh;p0=1;var e=eT(),o=rT(),n=nT(),a=oT(),i=aT();function s(u){var p=-1,h=u==null?0:u.length;for(this.clear();++p<h;){var g=u[p];this.set(g[0],g[1])}}return s.prototype.clear=e,s.prototype.delete=o,s.prototype.get=n,s.prototype.has=a,s.prototype.set=i,lh=s,lh}var uh,h0;
vendor: 4,199 bytes, line 272
272function iT(){if(h0)return uh;h0=1;var e=Id(),o=yg(),n=Vx(),a=200;function i(s,u){var p=this.__data__;if(p instanceof e){var h=p.__data__;if(!o||h.length<a-1)return h.push([s,u]),this.size=++p.size,this;p=this.__data__=new n(h)}return p.set(s,u),this.size=p.size,this}return uh=i,uh}var ch,m0;function sT(){if(m0)return ch;m0=1;var e=Id(),o=Fj(),n=zj(),a=Bj(),i=qj(),s=iT();function u(p){var h=this.__data__=new e(p);this.size=h.size}return u.prototype.clear=o,u.prototype.delete=n,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,ch=u,ch}var dh,g0;function lT(){if(g0)return dh;g0=1;var e="__lodash_hash_undefined__";function o(n){return this.__data__.set(n,e),this}return dh=o,dh}var fh,y0;function uT(){if(y0)return fh;y0=1;function e(o){return this.__data__.has(o)}return fh=e,fh}var ph,w0;function cT(){if(w0)return ph;w0=1;var e=Vx(),o=lT(),n=uT();function a(i){var s=-1,u=i==null?0:i.length;for(this.__data__=new e;++s<u;)this.add(i[s])}return a.prototype.add=a.prototype.push=o,a.prototype.has=n,ph=a,ph}var hh,v0;function dT(){if(v0)return hh;v0=1;function e(o,n){for(var a=-1,i=o==null?0:o.length;++a<i;)if(n(o[a],a,o))return!0;return!1}return hh=e,hh}var mh,b0;function fT(){if(b0)return mh;b0=1;function e(o,n){return o.has(n)}return mh=e,mh}var gh,x0;function Gx(){if(x0)return gh;x0=1;var e=cT(),o=dT(),n=fT(),a=1,i=2;function s(u,p,h,g,w,d){var f=h&a,m=u.length,k=p.length;if(m!=k&&!(f&&k>m))return!1;var S=d.get(u),_=d.get(p);if(S&&_)return S==p&&_==u;var b=-1,x=!0,C=h&i?new e:void 0;for(d.set(u,p),d.set(p,u);++b<m;){var N=u[b],j=p[b];if(g)var L=f?g(j,N,b,p,u,d):g(N,j,b,u,p,d);if(L!==void 0){if(L)continue;x=!1;break}if(C){if(!o(p,function(P,z){if(!n(C,z)&&(N===P||w(N,P,h,g,d)))return C.push(z)})){x=!1;break}}else if(!(N===j||w(N,j,h,g,d))){x=!1;break}}return d.delete(u),d.delete(p),x}return gh=s,gh}var yh,k0;function pT(){if(k0)return yh;k0=1;var e=wa(),o=e.Uint8Array;return yh=o,yh}var wh,S0;function hT(){if(S0)return wh;S0=1;function e(o){var n=-1,a=Array(o.size);return o.forEach(function(i,s){a[++n]=[s,i]}),a}return wh=e,wh}var vh,_0;function mT(){if(_0)return vh;_0=1;function e(o){var n=-1,a=Array(o.size);return o.forEach(function(i){a[++n]=i}),a}return vh=e,vh}var bh,N0;function gT(){if(N0)return bh;N0=1;var e=gg(),o=pT(),n=$x(),a=Gx(),i=hT(),s=mT(),u=1,p=2,h="[object Boolean]",g="[object Date]",w="[object Error]",d="[object Map]",f="[object Number]",m="[object RegExp]",k="[object Set]",S="[object String]",_="[object Symbol]",b="[object ArrayBuffer]",x="[object DataView]",C=e?e.prototype:void 0,N=C?C.valueOf:void 0;function j(L,P,z,H,F,T,D){switch(z){case x:if(L.byteLength!=P.byteLength||L.byteOffset!=P.byteOffset)return!1;L=L.buffer,P=P.buffer;case b:return!(L.byteLength!=P.byteLength||!T(new o(L),new o(P)));case h:case g:case f:return n(+L,+P);case w:return L.name==P.name&&L.message==P.message;case m:case S:return L==P+"";case d:var B=i;case k:var $=H&u;if(B||(B=s),L.size!=P.size&&!$)return!1;var W=D.get(L);if(W)return W==P;H|=p,D.set(L,P);var Q=a(B(L),B(P),H,F,T,D);return D.delete(L),Q;case _:if(N)return N.call(L)==N.call(P)}return!1}return bh=j,bh}var xh,E0;function yT(){if(E0)return xh;E0=1;function e(o,n){for(var a=-1,i=n.length,s=o.length;++a<i;)o[s+a]=n[a];return o}return xh=e,xh}var kh,C0;function wg(){if(C0)return kh;C0=1;var e=Array.isArray;return kh=e,kh}var Sh,A0;function wT(){if(A0)return Sh;A0=1;var e=yT(),o=wg();function n(a,i,s){var u=i(a);return o(a)?u:e(u,s(a))}return Sh=n,Sh}var _h,j0;function vT(){if(j0)return _h;j0=1;function e(o,n){for(var a=-1,i=o==null?0:o.length,s=0,u=[];++a<i;){var p=o[a];n(p,a,o)&&(u[s++]=p)}return u}return _h=e,_h}var Nh,T0;function bT(){if(T0)return Nh;T0=1;function e(){return[]}return Nh=e,Nh}var Eh,O0;function xT(){if(O0)return Eh;O0=1;var e=vT(),o=bT(),n=Object.prototype,a=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(u){return u==null?[]:(u=Object(u),e(i(u),function(p){return a.call(u,p)}))}:o;return Eh=s,Eh}var Ch,P0;function kT(){if(P0)return Ch;P0=1;function e(o,n){for(var a=-1,i=Array(o);++a<o;)i[a]=n(a);return i}return Ch=e,Ch}var Ah,R0;function Bd(){if(R0)return Ah;R0=1;function e(o){return o!=null&&typeof o=="object"}return Ah=e,Ah}var jh,D0;
vendor: 4,931 bytes, line 272
272function ST(){if(D0)return jh;D0=1;var e=Ld(),o=Bd(),n="[object Arguments]";function a(i){return o(i)&&e(i)==n}return jh=a,jh}var Th,M0;function _T(){if(M0)return Th;M0=1;var e=ST(),o=Bd(),n=Object.prototype,a=n.hasOwnProperty,i=n.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(u){return o(u)&&a.call(u,"callee")&&!i.call(u,"callee")};return Th=s,Th}var zl={exports:{}},Oh,I0;function NT(){if(I0)return Oh;I0=1;function e(){return!1}return Oh=e,Oh}zl.exports;var L0;function Yx(){return L0||(L0=1,(function(e,o){var n=wa(),a=NT(),i=o&&!o.nodeType&&o,s=i&&!0&&e&&!e.nodeType&&e,u=s&&s.exports===i,p=u?n.Buffer:void 0,h=p?p.isBuffer:void 0,g=h||a;e.exports=g})(zl,zl.exports)),zl.exports}var Ph,F0;function ET(){if(F0)return Ph;F0=1;var e=9007199254740991,o=/^(?:0|[1-9]\d*)$/;function n(a,i){var s=typeof a;return i=i??e,!!i&&(s=="number"||s!="symbol"&&o.test(a))&&a>-1&&a%1==0&&a<i}return Ph=n,Ph}var Rh,z0;function Zx(){if(z0)return Rh;z0=1;var e=9007199254740991;function o(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Rh=o,Rh}var Dh,B0;function CT(){if(B0)return Dh;B0=1;var e=Ld(),o=Zx(),n=Bd(),a="[object Arguments]",i="[object Array]",s="[object Boolean]",u="[object Date]",p="[object Error]",h="[object Function]",g="[object Map]",w="[object Number]",d="[object Object]",f="[object RegExp]",m="[object Set]",k="[object String]",S="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",C="[object Float64Array]",N="[object Int8Array]",j="[object Int16Array]",L="[object Int32Array]",P="[object Uint8Array]",z="[object Uint8ClampedArray]",H="[object Uint16Array]",F="[object Uint32Array]",T={};T[x]=T[C]=T[N]=T[j]=T[L]=T[P]=T[z]=T[H]=T[F]=!0,T[a]=T[i]=T[_]=T[s]=T[b]=T[u]=T[p]=T[h]=T[g]=T[w]=T[d]=T[f]=T[m]=T[k]=T[S]=!1;function D(B){return n(B)&&o(B.length)&&!!T[e(B)]}return Dh=D,Dh}var Mh,q0;function AT(){if(q0)return Mh;q0=1;function e(o){return function(n){return o(n)}}return Mh=e,Mh}var Bl={exports:{}};Bl.exports;var $0;function jT(){return $0||($0=1,(function(e,o){var n=Ux(),a=o&&!o.nodeType&&o,i=a&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===a,u=s&&n.process,p=(function(){try{var h=i&&i.require&&i.require("util").types;return h||u&&u.binding&&u.binding("util")}catch{}})();e.exports=p})(Bl,Bl.exports)),Bl.exports}var Ih,U0;function Qx(){if(U0)return Ih;U0=1;var e=CT(),o=AT(),n=jT(),a=n&&n.isTypedArray,i=a?o(a):e;return Ih=i,Ih}var Lh,H0;function TT(){if(H0)return Lh;H0=1;var e=kT(),o=_T(),n=wg(),a=Yx(),i=ET(),s=Qx(),u=Object.prototype,p=u.hasOwnProperty;function h(g,w){var d=n(g),f=!d&&o(g),m=!d&&!f&&a(g),k=!d&&!f&&!m&&s(g),S=d||f||m||k,_=S?e(g.length,String):[],b=_.length;for(var x in g)(w||p.call(g,x))&&!(S&&(x=="length"||m&&(x=="offset"||x=="parent")||k&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,b)))&&_.push(x);return _}return Lh=h,Lh}var Fh,K0;function OT(){if(K0)return Fh;K0=1;var e=Object.prototype;function o(n){var a=n&&n.constructor,i=typeof a=="function"&&a.prototype||e;return n===i}return Fh=o,Fh}var zh,W0;function PT(){if(W0)return zh;W0=1;function e(o,n){return function(a){return o(n(a))}}return zh=e,zh}var Bh,V0;function RT(){if(V0)return Bh;V0=1;var e=PT(),o=e(Object.keys,Object);return Bh=o,Bh}var qh,G0;function DT(){if(G0)return qh;G0=1;var e=OT(),o=RT(),n=Object.prototype,a=n.hasOwnProperty;function i(s){if(!e(s))return o(s);var u=[];for(var p in Object(s))a.call(s,p)&&p!="constructor"&&u.push(p);return u}return qh=i,qh}var $h,Y0;function MT(){if(Y0)return $h;Y0=1;var e=Kx(),o=Zx();function n(a){return a!=null&&o(a.length)&&!e(a)}return $h=n,$h}var Uh,Z0;function IT(){if(Z0)return Uh;Z0=1;var e=TT(),o=DT(),n=MT();function a(i){return n(i)?e(i):o(i)}return Uh=a,Uh}var Hh,Q0;function LT(){if(Q0)return Hh;Q0=1;var e=wT(),o=xT(),n=IT();function a(i){return e(i,n,o)}return Hh=a,Hh}var Kh,X0;function FT(){if(X0)return Kh;X0=1;var e=LT(),o=1,n=Object.prototype,a=n.hasOwnProperty;function i(s,u,p,h,g,w){var d=p&o,f=e(s),m=f.length,k=e(u),S=k.length;if(m!=S&&!d)return!1;for(var _=m;_--;){var b=f[_];if(!(d?b in u:a.call(u,b)))return!1}var x=w.get(s),C=w.get(u);if(x&&C)return x==u&&C==s;var N=!0;w.set(s,u),w.set(u,s);for(var j=d;++_<m;){b=f[_];var L=s[b],P=u[b];if(h)var z=d?h(P,L,b,u,s,w):h(L,P,b,s,u,w);if(!(z===void 0?L===P||g(L,P,p,h,w):z)){N=!1;break}j||(j=b=="constructor")}if(N&&!j){var H=s.constructor,F=u.constructor;H!=F&&"constructor"in s&&"constructor"in u&&!(typeof H=="function"&&H instanceof H&&typeof F=="function"&&F instanceof F)&&(N=!1)}return w.delete(s),w.delete(u),N}return Kh=i,Kh}var Wh,J0;function zT(){if(J0)return Wh;J0=1;var e=Hs(),o=wa(),n=e(o,"DataView");return Wh=n,Wh}var Vh,eb;function BT(){if(eb)return Vh;eb=1;var e=Hs(),o=wa(),n=e(o,"Promise");return Vh=n,Vh}var Gh,tb;function qT(){if(tb)return Gh;tb=1;var e=Hs(),o=wa(),n=e(o,"Set");return Gh=n,Gh}var Yh,rb;function $T(){if(rb)return Yh;rb=1;var e=Hs(),o=wa(),n=e(o,"WeakMap");return Yh=n,Yh}var Zh,nb;
vendor: 1,041 bytes, line 272
272function UT(){if(nb)return Zh;nb=1;var e=zT(),o=yg(),n=BT(),a=qT(),i=$T(),s=Ld(),u=Wx(),p="[object Map]",h="[object Object]",g="[object Promise]",w="[object Set]",d="[object WeakMap]",f="[object DataView]",m=u(e),k=u(o),S=u(n),_=u(a),b=u(i),x=s;return(e&&x(new e(new ArrayBuffer(1)))!=f||o&&x(new o)!=p||n&&x(n.resolve())!=g||a&&x(new a)!=w||i&&x(new i)!=d)&&(x=function(C){var N=s(C),j=N==h?C.constructor:void 0,L=j?u(j):"";if(L)switch(L){case m:return f;case k:return p;case S:return g;case _:return w;case b:return d}return N}),Zh=x,Zh}var Qh,ob;function HT(){if(ob)return Qh;ob=1;var e=sT(),o=Gx(),n=gT(),a=FT(),i=UT(),s=wg(),u=Yx(),p=Qx(),h=1,g="[object Arguments]",w="[object Array]",d="[object Object]",f=Object.prototype,m=f.hasOwnProperty;function k(S,_,b,x,C,N){var j=s(S),L=s(_),P=j?w:i(S),z=L?w:i(_);P=P==g?d:P,z=z==g?d:z;var H=P==d,F=z==d,T=P==z;if(T&&u(S)){if(!u(_))return!1;j=!0,H=!1}if(T&&!H)return N||(N=new e),j||p(S)?o(S,_,b,x,C,N):n(S,_,P,b,x,C,N);if(!(b&h)){var D=H&&m.call(S,"__wrapped__"),B=F&&m.call(_,"__wrapped__");
vendor: 199,610 bytes, lines 272-312
272if(D||B){var $=D?S.value():S,W=B?_.value():_;return N||(N=new e),C($,W,b,x,N)}}return T?(N||(N=new e),a(S,_,b,x,C,N)):!1}return Qh=k,Qh}var Xh,ab;function KT(){if(ab)return Xh;ab=1;var e=HT(),o=Bd();function n(a,i,s,u,p){return a===i?!0:a==null||i==null||!o(a)&&!o(i)?a!==a&&i!==i:e(a,i,s,u,n,p)}return Xh=n,Xh}var Jh,ib;function WT(){if(ib)return Jh;ib=1;var e=KT();function o(n,a){return e(n,a)}return Jh=o,Jh}var Vc={exports:{}};/*! 273 * Quill Editor v1.3.7 274 * https://quilljs.com/ 275 * Copyright (c) 2014, Jason Chen 276 * Copyright (c) 2013, salesforce.com 277 */var VT=Vc.exports,sb;function GT(){return sb||(sb=1,(function(e,o){(function(a,i){e.exports=i()})(typeof self<"u"?self:VT,function(){return(function(n){var a={};function i(s){if(a[s])return a[s].exports;var u=a[s]={i:s,l:!1,exports:{}};return n[s].call(u.exports,u,u.exports,i),u.l=!0,u.exports}return i.m=n,i.c=a,i.d=function(s,u,p){i.o(s,u)||Object.defineProperty(s,u,{configurable:!1,enumerable:!0,get:p})},i.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(u,"a",u),u},i.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},i.p="",i(i.s=109)})([(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=i(17),u=i(18),p=i(19),h=i(45),g=i(46),w=i(47),d=i(48),f=i(49),m=i(12),k=i(32),S=i(33),_=i(31),b=i(1),x={Scope:b.Scope,create:b.create,find:b.find,query:b.query,register:b.register,Container:s.default,Format:u.default,Leaf:p.default,Embed:d.default,Scroll:h.default,Block:w.default,Inline:g.default,Text:f.default,Attributor:{Attribute:m.default,Class:k.default,Style:S.default,Store:_.default}};a.default=x}),(function(n,a,i){var s=this&&this.__extends||(function(){var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var C in x)x.hasOwnProperty(C)&&(b[C]=x[C])};return function(b,x){_(b,x);function C(){this.constructor=b}b.prototype=x===null?Object.create(x):(C.prototype=x.prototype,new C)}})();Object.defineProperty(a,"__esModule",{value:!0});var u=(function(_){s(b,_);function b(x){var C=this;return x="[Parchment] "+x,C=_.call(this,x)||this,C.message=x,C.name=C.constructor.name,C}return b})(Error);a.ParchmentError=u;var p={},h={},g={},w={};a.DATA_KEY="__blot";var d;(function(_){_[_.TYPE=3]="TYPE",_[_.LEVEL=12]="LEVEL",_[_.ATTRIBUTE=13]="ATTRIBUTE",_[_.BLOT=14]="BLOT",_[_.INLINE=7]="INLINE",_[_.BLOCK=11]="BLOCK",_[_.BLOCK_BLOT=10]="BLOCK_BLOT",_[_.INLINE_BLOT=6]="INLINE_BLOT",_[_.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",_[_.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",_[_.ANY=15]="ANY"})(d=a.Scope||(a.Scope={}));function f(_,b){var x=k(_);if(x==null)throw new u("Unable to create "+_+" blot");var C=x,N=_ instanceof Node||_.nodeType===Node.TEXT_NODE?_:C.create(b);return new C(N,b)}a.create=f;function m(_,b){return b===void 0&&(b=!1),_==null?null:_[a.DATA_KEY]!=null?_[a.DATA_KEY].blot:b?m(_.parentNode,b):null}a.find=m;function k(_,b){b===void 0&&(b=d.ANY);var x;if(typeof _=="string")x=w[_]||p[_];else if(_ instanceof Text||_.nodeType===Node.TEXT_NODE)x=w.text;else if(typeof _=="number")_&d.LEVEL&d.BLOCK?x=w.block:_&d.LEVEL&d.INLINE&&(x=w.inline);else if(_ instanceof HTMLElement){var C=(_.getAttribute("class")||"").split(/\s+/);for(var N in C)if(x=h[C[N]],x)break;x=x||g[_.tagName]}return x==null?null:b&d.LEVEL&x.scope&&b&d.TYPE&x.scope?x:null}a.query=k;function S(){for(var _=[],b=0;b<arguments.length;b++)_[b]=arguments[b];if(_.length>1)return _.map(function(N){return S(N)});var x=_[0];if(typeof x.blotName!="string"&&typeof x.attrName!="string")throw new u("Invalid definition");if(x.blotName==="abstract")throw new u("Cannot register abstract class");if(w[x.blotName||x.attrName]=x,typeof x.keyName=="string")p[x.keyName]=x;else if(x.className!=null&&(h[x.className]=x),x.tagName!=null){Array.isArray(x.tagName)?x.tagName=x.tagName.map(function(N){return N.toUpperCase()}):x.tagName=x.tagName.toUpperCase();var C=Array.isArray(x.tagName)?x.tagName:[x.tagName];C.forEach(function(N){(g[N]==null||x.className==null)&&(g[N]=x)})}return x}a.register=S}),(function(n,a,i){var s=i(51),u=i(11),p=i(3),h=i(20),g="\0",w=function(d){Array.isArray(d)?this.ops=d:d!=null&&Array.isArray(d.ops)?this.ops=d.ops:this.ops=[]};w.prototype.insert=function(d,f){var m={};return d.length===0?this:(m.insert=d,f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(m.attributes=f),this.push(m))},w.prototype.delete=function(d){return d<=0?this:this.push({delete:d})},w.prototype.retain=function(d,f){if(d<=0)return this;var m={retain:d};return f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(m.attributes=f),this.push(m)},w.prototype.push=function(d){var f=this.ops.length,m=this.ops[f-1];if(d=p(!0,{},d),typeof m=="object"){if(typeof d.delete=="number"&&typeof m.delete=="number")return this.ops[f-1]={delete:m.delete+d.delete},this;if(typeof m.delete=="number"&&d.insert!=null&&(f-=1,m=this.ops[f-1],typeof m!="object"))return this.ops.unshift(d),this;if(u(d.attributes,m.attributes)){if(typeof d.insert=="string"&&typeof m.insert=="string")return this.ops[f-1]={insert:m.insert+d.insert},typeof d.attributes=="object"&&(this.ops[f-1].attributes=d.attributes),this;if(typeof d.retain=="number"&&typeof m.retain=="number")return this.ops[f-1]={retain:m.retain+d.retain},typeof d.attributes=="object"&&(this.ops[f-1].attributes=d.attributes),this}}return f===this.ops.length?this.ops.push(d):this.ops.splice(f,0,d),this},w.prototype.chop=function(){var d=this.ops[this.ops.length-1];return d&&d.retain&&!d.attributes&&this.ops.pop(),this},w.prototype.filter=function(d){return this.ops.filter(d)},w.prototype.forEach=function(d){this.ops.forEach(d)},w.prototype.map=function(d){return this.ops.map(d)},w.prototype.partition=function(d){var f=[],m=[];return this.forEach(function(k){var S=d(k)?f:m;S.push(k)}),[f,m]},w.prototype.reduce=function(d,f){return this.ops.reduce(d,f)},w.prototype.changeLength=function(){return this.reduce(function(d,f){return f.insert?d+h.length(f):f.delete?d-f.delete:d},0)},w.prototype.length=function(){return this.reduce(function(d,f){return d+h.length(f)},0)},w.prototype.slice=function(d,f){d=d||0,typeof f!="number"&&(f=1/0);for(var m=[],k=h.iterator(this.ops),S=0;S<f&&k.hasNext();){var _;S<d?_=k.next(d-S):(_=k.next(f-S),m.push(_)),S+=h.length(_)}return new w(m)},w.prototype.compose=function(d){var f=h.iterator(this.ops),m=h.iterator(d.ops),k=[],S=m.peek();if(S!=null&&typeof S.retain=="number"&&S.attributes==null){for(var _=S.retain;f.peekType()==="insert"&&f.peekLength()<=_;)_-=f.peekLength(),k.push(f.next());S.retain-_>0&&m.next(S.retain-_)}for(var b=new w(k);f.hasNext()||m.hasNext();)if(m.peekType()==="insert")b.push(m.next());else if(f.peekType()==="delete")b.push(f.next());else{var x=Math.min(f.peekLength(),m.peekLength()),C=f.next(x),N=m.next(x);if(typeof N.retain=="number"){var j={};typeof C.retain=="number"?j.retain=x:j.insert=C.insert;var L=h.attributes.compose(C.attributes,N.attributes,typeof C.retain=="number");if(L&&(j.attributes=L),b.push(j),!m.hasNext()&&u(b.ops[b.ops.length-1],j)){var P=new w(f.rest());return b.concat(P).chop()}}else typeof N.delete=="number"&&typeof C.retain=="number"&&b.push(N)}return b.chop()},w.prototype.concat=function(d){var f=new w(this.ops.slice());return d.ops.length>0&&(f.push(d.ops[0]),f.ops=f.ops.concat(d.ops.slice(1))),f},w.prototype.diff=function(d,f){if(this.ops===d.ops)return new w;var m=[this,d].map(function(x){return x.map(function(C){if(C.insert!=null)return typeof C.insert=="string"?C.insert:g;var N=x===d?"on":"with";throw new Error("diff() called "+N+" non-document")}).join("")}),k=new w,S=s(m[0],m[1],f),_=h.iterator(this.ops),b=h.iterator(d.ops);return S.forEach(function(x){for(var C=x[1].length;C>0;){var N=0;switch(x[0]){case s.INSERT:N=Math.min(b.peekLength(),C),k.push(b.next(N));break;case s.DELETE:N=Math.min(C,_.peekLength()),_.next(N),k.delete(N);break;case s.EQUAL:N=Math.min(_.peekLength(),b.peekLength(),C);var j=_.next(N),L=b.next(N);u(j.insert,L.insert)?k.retain(N,h.attributes.diff(j.attributes,L.attributes)):k.push(L).delete(N);break}C-=N}}),k.chop()},w.prototype.eachLine=function(d,f){f=f||` 278`;for(var m=h.iterator(this.ops),k=new w,S=0;m.hasNext();){if(m.peekType()!=="insert")return;var _=m.peek(),b=h.length(_)-m.peekLength(),x=typeof _.insert=="string"?_.insert.indexOf(f,b)-b:-1;if(x<0)k.push(m.next());else if(x>0)k.push(m.next(x));else{if(d(k,m.next(1).attributes||{},S)===!1)return;S+=1,k=new w}}k.length()>0&&d(k,{},S)},w.prototype.transform=function(d,f){if(f=!!f,typeof d=="number")return this.transformPosition(d,f);for(var m=h.iterator(this.ops),k=h.iterator(d.ops),S=new w;m.hasNext()||k.hasNext();)if(m.peekType()==="insert"&&(f||k.peekType()!=="insert"))S.retain(h.length(m.next()));else if(k.peekType()==="insert")S.push(k.next());else{var _=Math.min(m.peekLength(),k.peekLength()),b=m.next(_),x=k.next(_);if(b.delete)continue;x.delete?S.push(x):S.retain(_,h.attributes.transform(b.attributes,x.attributes,f))}return S.chop()},w.prototype.transformPosition=function(d,f){f=!!f;for(var m=h.iterator(this.ops),k=0;m.hasNext()&&k<=d;){var S=m.peekLength(),_=m.peekType();if(m.next(),_==="delete"){d-=Math.min(S,d-k);continue}else _==="insert"&&(k<d||!f)&&(d+=S);k+=S}return d},n.exports=w}),(function(n,a){var i=Object.prototype.hasOwnProperty,s=Object.prototype.toString,u=Object.defineProperty,p=Object.getOwnPropertyDescriptor,h=function(m){return typeof Array.isArray=="function"?Array.isArray(m):s.call(m)==="[object Array]"},g=function(m){if(!m||s.call(m)!=="[object Object]")return!1;var k=i.call(m,"constructor"),S=m.constructor&&m.constructor.prototype&&i.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!k&&!S)return!1;var _;for(_ in m);return typeof _>"u"||i.call(m,_)},w=function(m,k){u&&k.name==="__proto__"?u(m,k.name,{enumerable:!0,configurable:!0,value:k.newValue,writable:!0}):m[k.name]=k.newValue},d=function(m,k){if(k==="__proto__")if(i.call(m,k)){if(p)return p(m,k).value}else return;return m[k]};n.exports=function f(){var m,k,S,_,b,x,C=arguments[0],N=1,j=arguments.length,L=!1;for(typeof C=="boolean"&&(L=C,C=arguments[1]||{},N=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});N<j;++N)if(m=arguments[N],m!=null)for(k in m)S=d(C,k),_=d(m,k),C!==_&&(L&&_&&(g(_)||(b=h(_)))?(b?(b=!1,x=S&&h(S)?S:[]):x=S&&g(S)?S:{},w(C,{name:k,newValue:f(L,x,_)})):typeof _<"u"&&w(C,{name:k,newValue:_}));return C}}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.BlockEmbed=a.bubbleFormats=void 0;var s=(function(){function T(D,B){for(var $=0;$<B.length;$++){var W=B[$];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(D,W.key,W)}}return function(D,B,$){return B&&T(D.prototype,B),$&&T(D,$),D}})(),u=function T(D,B,$){D===null&&(D=Function.prototype);var W=Object.getOwnPropertyDescriptor(D,B);if(W===void 0){var Q=Object.getPrototypeOf(D);return Q===null?void 0:T(Q,B,$)}else{if("value"in W)return W.value;var te=W.get;return te===void 0?void 0:te.call($)}},p=i(3),h=C(p),g=i(2),w=C(g),d=i(0),f=C(d),m=i(16),k=C(m),S=i(6),_=C(S),b=i(7),x=C(b);function C(T){return T&&T.__esModule?T:{default:T}}function N(T,D){if(!(T instanceof D))throw new TypeError("Cannot call a class as a function")}function j(T,D){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:T}function L(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);T.prototype=Object.create(D&&D.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(T,D):T.__proto__=D)}var P=1,z=(function(T){L(D,T);function D(){return N(this,D),j(this,(D.__proto__||Object.getPrototypeOf(D)).apply(this,arguments))}return s(D,[{key:"attach",value:function(){u(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"attach",this).call(this),this.attributes=new f.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new w.default().insert(this.value(),(0,h.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function($,W){var Q=f.default.query($,f.default.Scope.BLOCK_ATTRIBUTE);Q!=null&&this.attributes.attribute(Q,W)}},{key:"formatAt",value:function($,W,Q,te){this.format(Q,te)}},{key:"insertAt",value:function($,W,Q){if(typeof W=="string"&&W.endsWith(` 279`)){var te=f.default.create(H.blotName);this.parent.insertBefore(te,$===0?this:this.next),te.insertAt(0,W.slice(0,-1))}else u(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertAt",this).call(this,$,W,Q)}}]),D})(f.default.Embed);z.scope=f.default.Scope.BLOCK_BLOT;var H=(function(T){L(D,T);function D(B){N(this,D);var $=j(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,B));return $.cache={},$}return s(D,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(f.default.Leaf).reduce(function($,W){return W.length()===0?$:$.insert(W.value(),F(W))},new w.default).insert(` 280`,F(this))),this.cache.delta}},{key:"deleteAt",value:function($,W){u(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"deleteAt",this).call(this,$,W),this.cache={}}},{key:"formatAt",value:function($,W,Q,te){W<=0||(f.default.query(Q,f.default.Scope.BLOCK)?$+W===this.length()&&this.format(Q,te):u(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"formatAt",this).call(this,$,Math.min(W,this.length()-$-1),Q,te),this.cache={})}},{key:"insertAt",value:function($,W,Q){if(Q!=null)return u(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertAt",this).call(this,$,W,Q);if(W.length!==0){var te=W.split(` 281`),Z=te.shift();Z.length>0&&($<this.length()-1||this.children.tail==null?u(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertAt",this).call(this,Math.min($,this.length()-1),Z):this.children.tail.insertAt(this.children.tail.length(),Z),this.cache={});var J=this;te.reduce(function(V,M){return J=J.split(V,!0),J.insertAt(0,M),M.length},$+Z.length)}}},{key:"insertBefore",value:function($,W){var Q=this.children.head;u(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertBefore",this).call(this,$,W),Q instanceof k.default&&Q.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=u(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"length",this).call(this)+P),this.cache.length}},{key:"moveChildren",value:function($,W){u(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"moveChildren",this).call(this,$,W),this.cache={}}},{key:"optimize",value:function($){u(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"optimize",this).call(this,$),this.cache={}}},{key:"path",value:function($){return u(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"path",this).call(this,$,!0)}},{key:"removeChild",value:function($){u(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"removeChild",this).call(this,$),this.cache={}}},{key:"split",value:function($){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(W&&($===0||$>=this.length()-P)){var Q=this.clone();return $===0?(this.parent.insertBefore(Q,this),this):(this.parent.insertBefore(Q,this.next),Q)}else{var te=u(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"split",this).call(this,$,W);return this.cache={},te}}}]),D})(f.default.Block);H.blotName="block",H.tagName="P",H.defaultChild="break",H.allowedChildren=[_.default,f.default.Embed,x.default];function F(T){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return T==null||(typeof T.formats=="function"&&(D=(0,h.default)(D,T.formats())),T.parent==null||T.parent.blotName=="scroll"||T.parent.statics.scope!==T.statics.scope)?D:F(T.parent,D)}a.bubbleFormats=F,a.BlockEmbed=z,a.default=H}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.overload=a.expandConfig=void 0;var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},u=(function(){function J(V,M){var K=[],X=!0,ie=!1,oe=void 0;try{for(var ee=V[Symbol.iterator](),ne;!(X=(ne=ee.next()).done)&&(K.push(ne.value),!(M&&K.length===M));X=!0);}catch(ce){ie=!0,oe=ce}finally{try{!X&&ee.return&&ee.return()}finally{if(ie)throw oe}}return K}return function(V,M){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return J(V,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),p=(function(){function J(V,M){for(var K=0;K<M.length;K++){var X=M[K];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(V,X.key,X)}}return function(V,M,K){return M&&J(V.prototype,M),K&&J(V,K),V}})();i(50);var h=i(2),g=F(h),w=i(14),d=F(w),f=i(8),m=F(f),k=i(9),S=F(k),_=i(0),b=F(_),x=i(15),C=F(x),N=i(3),j=F(N),L=i(10),P=F(L),z=i(34),H=F(z);function F(J){return J&&J.__esModule?J:{default:J}}function T(J,V,M){return V in J?Object.defineProperty(J,V,{value:M,enumerable:!0,configurable:!0,writable:!0}):J[V]=M,J}function D(J,V){if(!(J instanceof V))throw new TypeError("Cannot call a class as a function")}var B=(0,P.default)("quill"),$=(function(){p(J,null,[{key:"debug",value:function(M){M===!0&&(M="log"),P.default.level(M)}},{key:"find",value:function(M){return M.__quill||b.default.find(M)}},{key:"import",value:function(M){return this.imports[M]==null&&B.error("Cannot import "+M+". Are you sure it was registered?"),this.imports[M]}},{key:"register",value:function(M,K){var X=this,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof M!="string"){var oe=M.attrName||M.blotName;typeof oe=="string"?this.register("formats/"+oe,M,K):Object.keys(M).forEach(function(ee){X.register(ee,M[ee],K)})}else this.imports[M]!=null&&!ie&&B.warn("Overwriting "+M+" with",K),this.imports[M]=K,(M.startsWith("blots/")||M.startsWith("formats/"))&&K.blotName!=="abstract"?b.default.register(K):M.startsWith("modules")&&typeof K.register=="function"&&K.register()}}]);function J(V){var M=this,K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(D(this,J),this.options=W(V,K),this.container=this.options.container,this.container==null)return B.error("Invalid Quill container",V);this.options.debug&&J.debug(this.options.debug);var X=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new m.default,this.scroll=b.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new d.default(this.scroll),this.selection=new C.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(m.default.events.EDITOR_CHANGE,function(oe){oe===m.default.events.TEXT_CHANGE&&M.root.classList.toggle("ql-blank",M.editor.isBlank())}),this.emitter.on(m.default.events.SCROLL_UPDATE,function(oe,ee){var ne=M.selection.lastRange,ce=ne&&ne.length===0?ne.index:void 0;Q.call(M,function(){return M.editor.update(null,ee,ce)},oe)});var ie=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+X+"<p><br></p></div>");this.setContents(ie),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return p(J,[{key:"addContainer",value:function(M){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof M=="string"){var X=M;M=document.createElement("div"),M.classList.add(X)}return this.container.insertBefore(M,K),M}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(M,K,X){var ie=this,oe=te(M,K,X),ee=u(oe,4);return M=ee[0],K=ee[1],X=ee[3],Q.call(this,function(){return ie.editor.deleteText(M,K)},X,M,-1*K)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(M),this.container.classList.toggle("ql-disabled",!M)}},{key:"focus",value:function(){var M=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=M,this.scrollIntoView()}},{key:"format",value:function(M,K){var X=this,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;return Q.call(this,function(){var oe=X.getSelection(!0),ee=new g.default;if(oe==null)return ee;if(b.default.query(M,b.default.Scope.BLOCK))ee=X.editor.formatLine(oe.index,oe.length,T({},M,K));else{if(oe.length===0)return X.selection.format(M,K),ee;ee=X.editor.formatText(oe.index,oe.length,T({},M,K))}return X.setSelection(oe,m.default.sources.SILENT),ee},ie)}},{key:"formatLine",value:function(M,K,X,ie,oe){var ee=this,ne=void 0,ce=te(M,K,X,ie,oe),ae=u(ce,4);return M=ae[0],K=ae[1],ne=ae[2],oe=ae[3],Q.call(this,function(){return ee.editor.formatLine(M,K,ne)},oe,M,0)}},{key:"formatText",value:function(M,K,X,ie,oe){var ee=this,ne=void 0,ce=te(M,K,X,ie,oe),ae=u(ce,4);return M=ae[0],K=ae[1],ne=ae[2],oe=ae[3],Q.call(this,function(){return ee.editor.formatText(M,K,ne)},oe,M,0)}},{key:"getBounds",value:function(M){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,X=void 0;typeof M=="number"?X=this.selection.getBounds(M,K):X=this.selection.getBounds(M.index,M.length);var ie=this.container.getBoundingClientRect();return{bottom:X.bottom-ie.top,height:X.height,left:X.left-ie.left,right:X.right-ie.left,top:X.top-ie.top,width:X.width}}},{key:"getContents",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-M,X=te(M,K),ie=u(X,2);return M=ie[0],K=ie[1],this.editor.getContents(M,K)}},{key:"getFormat",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof M=="number"?this.editor.getFormat(M,K):this.editor.getFormat(M.index,M.length)}},{key:"getIndex",value:function(M){return M.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(M){return this.scroll.leaf(M)}},{key:"getLine",value:function(M){return this.scroll.line(M)}},{key:"getLines",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof M!="number"?this.scroll.lines(M.index,M.length):this.scroll.lines(M,K)}},{key:"getModule",value:function(M){return this.theme.modules[M]}},{key:"getSelection",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return M&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-M,X=te(M,K),ie=u(X,2);return M=ie[0],K=ie[1],this.editor.getText(M,K)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(M,K,X){var ie=this,oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:J.sources.API;return Q.call(this,function(){return ie.editor.insertEmbed(M,K,X)},oe,M)}},{key:"insertText",value:function(M,K,X,ie,oe){var ee=this,ne=void 0,ce=te(M,0,X,ie,oe),ae=u(ce,4);return M=ae[0],ne=ae[2],oe=ae[3],Q.call(this,function(){return ee.editor.insertText(M,K,ne)},oe,M,K.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(M,K,X){this.clipboard.dangerouslyPasteHTML(M,K,X)}},{key:"removeFormat",value:function(M,K,X){var ie=this,oe=te(M,K,X),ee=u(oe,4);return M=ee[0],K=ee[1],X=ee[3],Q.call(this,function(){return ie.editor.removeFormat(M,K)},X,M)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(M){var K=this,X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m.default.sources.API;return Q.call(this,function(){M=new g.default(M);var ie=K.getLength(),oe=K.editor.deleteText(0,ie),ee=K.editor.applyDelta(M),ne=ee.ops[ee.ops.length-1];ne!=null&&typeof ne.insert=="string"&&ne.insert[ne.insert.length-1]===` 282`&&(K.editor.deleteText(K.getLength()-1,1),ee.delete(1));var ce=oe.compose(ee);return ce},X)}},{key:"setSelection",value:function(M,K,X){if(M==null)this.selection.setRange(null,K||J.sources.API);else{var ie=te(M,K,X),oe=u(ie,4);M=oe[0],K=oe[1],X=oe[3],this.selection.setRange(new x.Range(M,K),X),X!==m.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(M){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m.default.sources.API,X=new g.default().insert(M);return this.setContents(X,K)}},{key:"update",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m.default.sources.USER,K=this.scroll.update(M);return this.selection.update(M),K}},{key:"updateContents",value:function(M){var K=this,X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m.default.sources.API;return Q.call(this,function(){return M=new g.default(M),K.editor.applyDelta(M,X)},X,!0)}}]),J})();$.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},$.events=m.default.events,$.sources=m.default.sources,$.version="1.3.7",$.imports={delta:g.default,parchment:b.default,"core/module":S.default,"core/theme":H.default};function W(J,V){if(V=(0,j.default)(!0,{container:J,modules:{clipboard:!0,keyboard:!0,history:!0}},V),!V.theme||V.theme===$.DEFAULTS.theme)V.theme=H.default;else if(V.theme=$.import("themes/"+V.theme),V.theme==null)throw new Error("Invalid theme "+V.theme+". Did you register it?");var M=(0,j.default)(!0,{},V.theme.DEFAULTS);[M,V].forEach(function(ie){ie.modules=ie.modules||{},Object.keys(ie.modules).forEach(function(oe){ie.modules[oe]===!0&&(ie.modules[oe]={})})});var K=Object.keys(M.modules).concat(Object.keys(V.modules)),X=K.reduce(function(ie,oe){var ee=$.import("modules/"+oe);return ee==null?B.error("Cannot load "+oe+" module. Are you sure you registered it?"):ie[oe]=ee.DEFAULTS||{},ie},{});return V.modules!=null&&V.modules.toolbar&&V.modules.toolbar.constructor!==Object&&(V.modules.toolbar={container:V.modules.toolbar}),V=(0,j.default)(!0,{},$.DEFAULTS,{modules:X},M,V),["bounds","container","scrollingContainer"].forEach(function(ie){typeof V[ie]=="string"&&(V[ie]=document.querySelector(V[ie]))}),V.modules=Object.keys(V.modules).reduce(function(ie,oe){return V.modules[oe]&&(ie[oe]=V.modules[oe]),ie},{}),V}function Q(J,V,M,K){if(this.options.strict&&!this.isEnabled()&&V===m.default.sources.USER)return new g.default;var X=M==null?null:this.getSelection(),ie=this.editor.delta,oe=J();if(X!=null&&(M===!0&&(M=X.index),K==null?X=Z(X,oe,V):K!==0&&(X=Z(X,M,K,V)),this.setSelection(X,m.default.sources.SILENT)),oe.length()>0){var ee,ne=[m.default.events.TEXT_CHANGE,oe,ie,V];if((ee=this.emitter).emit.apply(ee,[m.default.events.EDITOR_CHANGE].concat(ne)),V!==m.default.sources.SILENT){var ce;(ce=this.emitter).emit.apply(ce,ne)}}return oe}function te(J,V,M,K,X){var ie={};return typeof J.index=="number"&&typeof J.length=="number"?typeof V!="number"?(X=K,K=M,M=V,V=J.length,J=J.index):(V=J.length,J=J.index):typeof V!="number"&&(X=K,K=M,M=V,V=0),(typeof M>"u"?"undefined":s(M))==="object"?(ie=M,X=K):typeof M=="string"&&(K!=null?ie[M]=K:X=M),X=X||m.default.sources.API,[J,V,ie,X]}function Z(J,V,M,K){if(J==null)return null;var X=void 0,ie=void 0;if(V instanceof g.default){var oe=[J.index,J.index+J.length].map(function(ae){return V.transformPosition(ae,K!==m.default.sources.USER)}),ee=u(oe,2);X=ee[0],ie=ee[1]}else{var ne=[J.index,J.index+J.length].map(function(ae){return ae<V||ae===V&&K===m.default.sources.USER?ae:M>=0?ae+M:Math.max(V,ae+M)}),ce=u(ne,2);X=ce[0],ie=ce[1]}return new x.Range(X,ie-X)}a.expandConfig=W,a.overload=te,a.default=$}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=(function(){function _(b,x){for(var C=0;C<x.length;C++){var N=x[C];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(b,N.key,N)}}return function(b,x,C){return x&&_(b.prototype,x),C&&_(b,C),b}})(),u=function _(b,x,C){b===null&&(b=Function.prototype);var N=Object.getOwnPropertyDescriptor(b,x);if(N===void 0){var j=Object.getPrototypeOf(b);return j===null?void 0:_(j,x,C)}else{if("value"in N)return N.value;var L=N.get;return L===void 0?void 0:L.call(C)}},p=i(7),h=d(p),g=i(0),w=d(g);function d(_){return _&&_.__esModule?_:{default:_}}function f(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}function m(_,b){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:_}function k(_,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);_.prototype=Object.create(b&&b.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(_,b):_.__proto__=b)}var S=(function(_){k(b,_);function b(){return f(this,b),m(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return s(b,[{key:"formatAt",value:function(C,N,j,L){if(b.compare(this.statics.blotName,j)<0&&w.default.query(j,w.default.Scope.BLOT)){var P=this.isolate(C,N);L&&P.wrap(j,L)}else u(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"formatAt",this).call(this,C,N,j,L)}},{key:"optimize",value:function(C){if(u(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,C),this.parent instanceof b&&b.compare(this.statics.blotName,this.parent.statics.blotName)>0){var N=this.parent.isolate(this.offset(),this.length());this.moveChildren(N),N.wrap(this)}}}],[{key:"compare",value:function(C,N){var j=b.order.indexOf(C),L=b.order.indexOf(N);return j>=0||L>=0?j-L:C===N?0:C<N?-1:1}}]),b})(w.default.Inline);S.allowedChildren=[S,w.default.Embed,h.default],S.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],a.default=S}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=i(0),u=p(s);function p(f){return f&&f.__esModule?f:{default:f}}function h(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function g(f,m){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:f}function w(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(f,m):f.__proto__=m)}var d=(function(f){w(m,f);function m(){return h(this,m),g(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m})(u.default.Text);a.default=d}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=(function(){function x(C,N){for(var j=0;j<N.length;j++){var L=N[j];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(C,L.key,L)}}return function(C,N,j){return N&&x(C.prototype,N),j&&x(C,j),C}})(),u=function x(C,N,j){C===null&&(C=Function.prototype);var L=Object.getOwnPropertyDescriptor(C,N);if(L===void 0){var P=Object.getPrototypeOf(C);return P===null?void 0:x(P,N,j)}else{if("value"in L)return L.value;var z=L.get;return z===void 0?void 0:z.call(j)}},p=i(54),h=d(p),g=i(10),w=d(g);function d(x){return x&&x.__esModule?x:{default:x}}function f(x,C){if(!(x instanceof C))throw new TypeError("Cannot call a class as a function")}function m(x,C){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:x}function k(x,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);x.prototype=Object.create(C&&C.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(x,C):x.__proto__=C)}var S=(0,w.default)("quill:events"),_=["selectionchange","mousedown","mouseup","click"];_.forEach(function(x){document.addEventListener(x,function(){for(var C=arguments.length,N=Array(C),j=0;j<C;j++)N[j]=arguments[j];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(L){if(L.__quill&&L.__quill.emitter){var P;(P=L.__quill.emitter).handleDOM.apply(P,N)}})})});var b=(function(x){k(C,x);function C(){f(this,C);var N=m(this,(C.__proto__||Object.getPrototypeOf(C)).call(this));return N.listeners={},N.on("error",S.error),N}return s(C,[{key:"emit",value:function(){S.log.apply(S,arguments),u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(j){for(var L=arguments.length,P=Array(L>1?L-1:0),z=1;z<L;z++)P[z-1]=arguments[z];(this.listeners[j.type]||[]).forEach(function(H){var F=H.node,T=H.handler;(j.target===F||F.contains(j.target))&&T.apply(void 0,[j].concat(P))})}},{key:"listenDOM",value:function(j,L,P){this.listeners[j]||(this.listeners[j]=[]),this.listeners[j].push({node:L,handler:P})}}]),C})(h.default);b.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},b.sources={API:"api",SILENT:"silent",USER:"user"},a.default=b}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});function s(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}var u=function p(h){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};s(this,p),this.quill=h,this.options=g};u.DEFAULTS={},a.default=u}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=["error","warn","log","info"],u="warn";function p(g){if(s.indexOf(g)<=s.indexOf(u)){for(var w,d=arguments.length,f=Array(d>1?d-1:0),m=1;m<d;m++)f[m-1]=arguments[m];(w=console)[g].apply(w,f)}}function h(g){return s.reduce(function(w,d){return w[d]=p.bind(console,d,g),w},{})}p.level=h.level=function(g){u=g},a.default=h}),(function(n,a,i){var s=Array.prototype.slice,u=i(52),p=i(53),h=n.exports=function(f,m,k){return k||(k={}),f===m?!0:f instanceof Date&&m instanceof Date?f.getTime()===m.getTime():!f||!m||typeof f!="object"&&typeof m!="object"?k.strict?f===m:f==m:d(f,m,k)};function g(f){return f==null}function w(f){return!(!f||typeof f!="object"||typeof f.length!="number"||typeof f.copy!="function"||typeof f.slice!="function"||f.length>0&&typeof f[0]!="number")}function d(f,m,k){var S,_;if(g(f)||g(m)||f.prototype!==m.prototype)return!1;if(p(f))return p(m)?(f=s.call(f),m=s.call(m),h(f,m,k)):!1;if(w(f)){if(!w(m)||f.length!==m.length)return!1;for(S=0;S<f.length;S++)if(f[S]!==m[S])return!1;return!0}try{var b=u(f),x=u(m)}catch{return!1}if(b.length!=x.length)return!1;for(b.sort(),x.sort(),S=b.length-1;S>=0;S--)if(b[S]!=x[S])return!1;for(S=b.length-1;S>=0;S--)if(_=b[S],!h(f[_],m[_],k))return!1;return typeof f==typeof m}}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=i(1),u=(function(){function p(h,g,w){w===void 0&&(w={}),this.attrName=h,this.keyName=g;var d=s.Scope.TYPE&s.Scope.ATTRIBUTE;w.scope!=null?this.scope=w.scope&s.Scope.LEVEL|d:this.scope=s.Scope.ATTRIBUTE,w.whitelist!=null&&(this.whitelist=w.whitelist)}return p.keys=function(h){return[].map.call(h.attributes,function(g){return g.name})},p.prototype.add=function(h,g){return this.canAdd(h,g)?(h.setAttribute(this.keyName,g),!0):!1},p.prototype.canAdd=function(h,g){var w=s.query(h,s.Scope.BLOT&(this.scope|s.Scope.TYPE));return w==null?!1:this.whitelist==null?!0:typeof g=="string"?this.whitelist.indexOf(g.replace(/["']/g,""))>-1:this.whitelist.indexOf(g)>-1},p.prototype.remove=function(h){h.removeAttribute(this.keyName)},p.prototype.value=function(h){var g=h.getAttribute(this.keyName);return this.canAdd(h,g)&&g?g:""},p})();a.default=u}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.Code=void 0;var s=(function(){function z(H,F){var T=[],D=!0,B=!1,$=void 0;try{for(var W=H[Symbol.iterator](),Q;!(D=(Q=W.next()).done)&&(T.push(Q.value),!(F&&T.length===F));D=!0);}catch(te){B=!0,$=te}finally{try{!D&&W.return&&W.return()}finally{if(B)throw $}}return T}return function(H,F){if(Array.isArray(H))return H;if(Symbol.iterator in Object(H))return z(H,F);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=(function(){function z(H,F){for(var T=0;T<F.length;T++){var D=F[T];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(H,D.key,D)}}return function(H,F,T){return F&&z(H.prototype,F),T&&z(H,T),H}})(),p=function z(H,F,T){H===null&&(H=Function.prototype);var D=Object.getOwnPropertyDescriptor(H,F);if(D===void 0){var B=Object.getPrototypeOf(H);return B===null?void 0:z(B,F,T)}else{if("value"in D)return D.value;var $=D.get;return $===void 0?void 0:$.call(T)}},h=i(2),g=x(h),w=i(0),d=x(w),f=i(4),m=x(f),k=i(6),S=x(k),_=i(7),b=x(_);function x(z){return z&&z.__esModule?z:{default:z}}function C(z,H){if(!(z instanceof H))throw new TypeError("Cannot call a class as a function")}function N(z,H){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H&&(typeof H=="object"||typeof H=="function")?H:z}function j(z,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof H);z.prototype=Object.create(H&&H.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),H&&(Object.setPrototypeOf?Object.setPrototypeOf(z,H):z.__proto__=H)}var L=(function(z){j(H,z);function H(){return C(this,H),N(this,(H.__proto__||Object.getPrototypeOf(H)).apply(this,arguments))}return H})(S.default);L.blotName="code",L.tagName="CODE";var P=(function(z){j(H,z);function H(){return C(this,H),N(this,(H.__proto__||Object.getPrototypeOf(H)).apply(this,arguments))}return u(H,[{key:"delta",value:function(){var T=this,D=this.domNode.textContent;return D.endsWith(` 283`)&&(D=D.slice(0,-1)),D.split(` 284`).reduce(function(B,$){return B.insert($).insert(` 285`,T.formats())},new g.default)}},{key:"format",value:function(T,D){if(!(T===this.statics.blotName&&D)){var B=this.descendant(b.default,this.length()-1),$=s(B,1),W=$[0];W?.deleteAt(W.length()-1,1),p(H.prototype.__proto__||Object.getPrototypeOf(H.prototype),"format",this).call(this,T,D)}}},{key:"formatAt",value:function(T,D,B,$){if(D!==0&&!(d.default.query(B,d.default.Scope.BLOCK)==null||B===this.statics.blotName&&$===this.statics.formats(this.domNode))){var W=this.newlineIndex(T);if(!(W<0||W>=T+D)){var Q=this.newlineIndex(T,!0)+1,te=W-Q+1,Z=this.isolate(Q,te),J=Z.next;Z.format(B,$),J instanceof H&&J.formatAt(0,T-Q+D-te,B,$)}}}},{key:"insertAt",value:function(T,D,B){if(B==null){var $=this.descendant(b.default,T),W=s($,2),Q=W[0],te=W[1];Q.insertAt(te,D)}}},{key:"length",value:function(){var T=this.domNode.textContent.length;return this.domNode.textContent.endsWith(` 286`)?T:T+1}},{key:"newlineIndex",value:function(T){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(D)return this.domNode.textContent.slice(0,T).lastIndexOf(` 287`);var B=this.domNode.textContent.slice(T).indexOf(` 288`);return B>-1?T+B:-1}},{key:"optimize",value:function(T){this.domNode.textContent.endsWith(` 289`)||this.appendChild(d.default.create("text",` 290`)),p(H.prototype.__proto__||Object.getPrototypeOf(H.prototype),"optimize",this).call(this,T);var D=this.next;D!=null&&D.prev===this&&D.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===D.statics.formats(D.domNode)&&(D.optimize(T),D.moveChildren(this),D.remove())}},{key:"replace",value:function(T){p(H.prototype.__proto__||Object.getPrototypeOf(H.prototype),"replace",this).call(this,T),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(D){var B=d.default.find(D);B==null?D.parentNode.removeChild(D):B instanceof d.default.Embed?B.remove():B.unwrap()})}}],[{key:"create",value:function(T){var D=p(H.__proto__||Object.getPrototypeOf(H),"create",this).call(this,T);return D.setAttribute("spellcheck",!1),D}},{key:"formats",value:function(){return!0}}]),H})(m.default);P.blotName="code-block",P.tagName="PRE",P.TAB=" ",a.Code=L,a.default=P}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},u=(function(){function J(V,M){var K=[],X=!0,ie=!1,oe=void 0;try{for(var ee=V[Symbol.iterator](),ne;!(X=(ne=ee.next()).done)&&(K.push(ne.value),!(M&&K.length===M));X=!0);}catch(ce){ie=!0,oe=ce}finally{try{!X&&ee.return&&ee.return()}finally{if(ie)throw oe}}return K}return function(V,M){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return J(V,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),p=(function(){function J(V,M){for(var K=0;K<M.length;K++){var X=M[K];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(V,X.key,X)}}return function(V,M,K){return M&&J(V.prototype,M),K&&J(V,K),V}})(),h=i(2),g=D(h),w=i(20),d=D(w),f=i(0),m=D(f),k=i(13),S=D(k),_=i(24),b=D(_),x=i(4),C=D(x),N=i(16),j=D(N),L=i(21),P=D(L),z=i(11),H=D(z),F=i(3),T=D(F);function D(J){return J&&J.__esModule?J:{default:J}}function B(J,V,M){return V in J?Object.defineProperty(J,V,{value:M,enumerable:!0,configurable:!0,writable:!0}):J[V]=M,J}function $(J,V){if(!(J instanceof V))throw new TypeError("Cannot call a class as a function")}var W=/^[ -~]*$/,Q=(function(){function J(V){$(this,J),this.scroll=V,this.delta=this.getDelta()}return p(J,[{key:"applyDelta",value:function(M){var K=this,X=!1;this.scroll.update();var ie=this.scroll.length();return this.scroll.batchStart(),M=Z(M),M.reduce(function(oe,ee){var ne=ee.retain||ee.delete||ee.insert.length||1,ce=ee.attributes||{};if(ee.insert!=null){if(typeof ee.insert=="string"){var ae=ee.insert;ae.endsWith(` 291`)&&X&&(X=!1,ae=ae.slice(0,-1)),oe>=ie&&!ae.endsWith(` 292`)&&(X=!0),K.scroll.insertAt(oe,ae);var Ae=K.scroll.line(oe),Ie=u(Ae,2),je=Ie[0],ze=Ie[1],Xe=(0,T.default)({},(0,x.bubbleFormats)(je));if(je instanceof C.default){var ot=je.descendant(m.default.Leaf,ze),Ot=u(ot,1),bt=Ot[0];Xe=(0,T.default)(Xe,(0,x.bubbleFormats)(bt))}ce=d.default.attributes.diff(Xe,ce)||{}}else if(s(ee.insert)==="object"){var ue=Object.keys(ee.insert)[0];if(ue==null)return oe;K.scroll.insertAt(oe,ue,ee.insert[ue])}ie+=ne}return Object.keys(ce).forEach(function(ye){K.scroll.formatAt(oe,ne,ye,ce[ye])}),oe+ne},0),M.reduce(function(oe,ee){return typeof ee.delete=="number"?(K.scroll.deleteAt(oe,ee.delete),oe):oe+(ee.retain||ee.insert.length||1)},0),this.scroll.batchEnd(),this.update(M)}},{key:"deleteText",value:function(M,K){return this.scroll.deleteAt(M,K),this.update(new g.default().retain(M).delete(K))}},{key:"formatLine",value:function(M,K){var X=this,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(ie).forEach(function(oe){if(!(X.scroll.whitelist!=null&&!X.scroll.whitelist[oe])){var ee=X.scroll.lines(M,Math.max(K,1)),ne=K;ee.forEach(function(ce){var ae=ce.length();if(!(ce instanceof S.default))ce.format(oe,ie[oe]);else{var Ae=M-ce.offset(X.scroll),Ie=ce.newlineIndex(Ae+ne)-Ae+1;ce.formatAt(Ae,Ie,oe,ie[oe])}ne-=ae})}}),this.scroll.optimize(),this.update(new g.default().retain(M).retain(K,(0,P.default)(ie)))}},{key:"formatText",value:function(M,K){var X=this,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(ie).forEach(function(oe){X.scroll.formatAt(M,K,oe,ie[oe])}),this.update(new g.default().retain(M).retain(K,(0,P.default)(ie)))}},{key:"getContents",value:function(M,K){return this.delta.slice(M,M+K)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(M,K){return M.concat(K.delta())},new g.default)}},{key:"getFormat",value:function(M){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,X=[],ie=[];K===0?this.scroll.path(M).forEach(function(ee){var ne=u(ee,1),ce=ne[0];ce instanceof C.default?X.push(ce):ce instanceof m.default.Leaf&&ie.push(ce)}):(X=this.scroll.lines(M,K),ie=this.scroll.descendants(m.default.Leaf,M,K));var oe=[X,ie].map(function(ee){if(ee.length===0)return{};for(var ne=(0,x.bubbleFormats)(ee.shift());Object.keys(ne).length>0;){var ce=ee.shift();if(ce==null)return ne;ne=te((0,x.bubbleFormats)(ce),ne)}return ne});return T.default.apply(T.default,oe)}},{key:"getText",value:function(M,K){return this.getContents(M,K).filter(function(X){return typeof X.insert=="string"}).map(function(X){return X.insert}).join("")}},{key:"insertEmbed",value:function(M,K,X){return this.scroll.insertAt(M,K,X),this.update(new g.default().retain(M).insert(B({},K,X)))}},{key:"insertText",value:function(M,K){var X=this,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return K=K.replace(/\r\n/g,` 293`).replace(/\r/g,` 294`),this.scroll.insertAt(M,K),Object.keys(ie).forEach(function(oe){X.scroll.formatAt(M,K.length,oe,ie[oe])}),this.update(new g.default().retain(M).insert(K,(0,P.default)(ie)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var M=this.scroll.children.head;return M.statics.blotName!==C.default.blotName||M.children.length>1?!1:M.children.head instanceof j.default}},{key:"removeFormat",value:function(M,K){var X=this.getText(M,K),ie=this.scroll.line(M+K),oe=u(ie,2),ee=oe[0],ne=oe[1],ce=0,ae=new g.default;ee!=null&&(ee instanceof S.default?ce=ee.newlineIndex(ne)-ne+1:ce=ee.length()-ne,ae=ee.delta().slice(ne,ne+ce-1).insert(` 295`));var Ae=this.getContents(M,K+ce),Ie=Ae.diff(new g.default().insert(X).concat(ae)),je=new g.default().retain(M).concat(Ie);return this.applyDelta(je)}},{key:"update",value:function(M){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,ie=this.delta;if(K.length===1&&K[0].type==="characterData"&&K[0].target.data.match(W)&&m.default.find(K[0].target)){var oe=m.default.find(K[0].target),ee=(0,x.bubbleFormats)(oe),ne=oe.offset(this.scroll),ce=K[0].oldValue.replace(b.default.CONTENTS,""),ae=new g.default().insert(ce),Ae=new g.default().insert(oe.value()),Ie=new g.default().retain(ne).concat(ae.diff(Ae,X));M=Ie.reduce(function(je,ze){return ze.insert?je.insert(ze.insert,ee):je.push(ze)},new g.default),this.delta=ie.compose(M)}else this.delta=this.getDelta(),(!M||!(0,H.default)(ie.compose(M),this.delta))&&(M=ie.diff(this.delta,X));return M}}]),J})();function te(J,V){return Object.keys(V).reduce(function(M,K){return J[K]==null||(V[K]===J[K]?M[K]=V[K]:Array.isArray(V[K])?V[K].indexOf(J[K])<0&&(M[K]=V[K].concat([J[K]])):M[K]=[V[K],J[K]]),M},{})}function Z(J){return J.reduce(function(V,M){if(M.insert===1){var K=(0,P.default)(M.attributes);return delete K.image,V.insert({image:M.attributes.image},K)}if(M.attributes!=null&&(M.attributes.list===!0||M.attributes.bullet===!0)&&(M=(0,P.default)(M),M.attributes.list?M.attributes.list="ordered":(M.attributes.list="bullet",delete M.attributes.bullet)),typeof M.insert=="string"){var X=M.insert.replace(/\r\n/g,` 296`).replace(/\r/g,` 297`);return V.insert(X,M.attributes)}return V.push(M)},new g.default)}a.default=Q}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.Range=void 0;var s=(function(){function z(H,F){var T=[],D=!0,B=!1,$=void 0;try{for(var W=H[Symbol.iterator](),Q;!(D=(Q=W.next()).done)&&(T.push(Q.value),!(F&&T.length===F));D=!0);}catch(te){B=!0,$=te}finally{try{!D&&W.return&&W.return()}finally{if(B)throw $}}return T}return function(H,F){if(Array.isArray(H))return H;if(Symbol.iterator in Object(H))return z(H,F);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=(function(){function z(H,F){for(var T=0;T<F.length;T++){var D=F[T];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(H,D.key,D)}}return function(H,F,T){return F&&z(H.prototype,F),T&&z(H,T),H}})(),p=i(0),h=b(p),g=i(21),w=b(g),d=i(11),f=b(d),m=i(8),k=b(m),S=i(10),_=b(S);function b(z){return z&&z.__esModule?z:{default:z}}function x(z){if(Array.isArray(z)){for(var H=0,F=Array(z.length);H<z.length;H++)F[H]=z[H];return F}else return Array.from(z)}function C(z,H){if(!(z instanceof H))throw new TypeError("Cannot call a class as a function")}var N=(0,_.default)("quill:selection"),j=function z(H){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;C(this,z),this.index=H,this.length=F},L=(function(){function z(H,F){var T=this;C(this,z),this.emitter=F,this.scroll=H,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=h.default.create("cursor",this),this.lastRange=this.savedRange=new j(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){T.mouseDown||setTimeout(T.update.bind(T,k.default.sources.USER),1)}),this.emitter.on(k.default.events.EDITOR_CHANGE,function(D,B){D===k.default.events.TEXT_CHANGE&&B.length()>0&&T.update(k.default.sources.SILENT)}),this.emitter.on(k.default.events.SCROLL_BEFORE_UPDATE,function(){if(T.hasFocus()){var D=T.getNativeRange();D!=null&&D.start.node!==T.cursor.textNode&&T.emitter.once(k.default.events.SCROLL_UPDATE,function(){try{T.setNativeRange(D.start.node,D.start.offset,D.end.node,D.end.offset)}catch{}})}}),this.emitter.on(k.default.events.SCROLL_OPTIMIZE,function(D,B){if(B.range){var $=B.range,W=$.startNode,Q=$.startOffset,te=$.endNode,Z=$.endOffset;T.setNativeRange(W,Q,te,Z)}}),this.update(k.default.sources.SILENT)}return u(z,[{key:"handleComposition",value:function(){var F=this;this.root.addEventListener("compositionstart",function(){F.composing=!0}),this.root.addEventListener("compositionend",function(){if(F.composing=!1,F.cursor.parent){var T=F.cursor.restore();if(!T)return;setTimeout(function(){F.setNativeRange(T.startNode,T.startOffset,T.endNode,T.endOffset)},1)}})}},{key:"handleDragging",value:function(){var F=this;this.emitter.listenDOM("mousedown",document.body,function(){F.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){F.mouseDown=!1,F.update(k.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(F,T){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[F])){this.scroll.update();var D=this.getNativeRange();if(!(D==null||!D.native.collapsed||h.default.query(F,h.default.Scope.BLOCK))){if(D.start.node!==this.cursor.textNode){var B=h.default.find(D.start.node,!1);if(B==null)return;if(B instanceof h.default.Leaf){var $=B.split(D.start.offset);B.parent.insertBefore(this.cursor,$)}else B.insertBefore(this.cursor,D.start.node);this.cursor.attach()}this.cursor.format(F,T),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(F){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D=this.scroll.length();F=Math.min(F,D-1),T=Math.min(F+T,D-1)-F;var B=void 0,$=this.scroll.leaf(F),W=s($,2),Q=W[0],te=W[1];if(Q==null)return null;var Z=Q.position(te,!0),J=s(Z,2);B=J[0],te=J[1];var V=document.createRange();if(T>0){V.setStart(B,te);var M=this.scroll.leaf(F+T),K=s(M,2);if(Q=K[0],te=K[1],Q==null)return null;var X=Q.position(te,!0),ie=s(X,2);return B=ie[0],te=ie[1],V.setEnd(B,te),V.getBoundingClientRect()}else{var oe="left",ee=void 0;return B instanceof Text?(te<B.data.length?(V.setStart(B,te),V.setEnd(B,te+1)):(V.setStart(B,te-1),V.setEnd(B,te),oe="right"),ee=V.getBoundingClientRect()):(ee=Q.domNode.getBoundingClientRect(),te>0&&(oe="right")),{bottom:ee.top+ee.height,height:ee.height,left:ee[oe],right:ee[oe],top:ee.top,width:0}}}},{key:"getNativeRange",value:function(){var F=document.getSelection();if(F==null||F.rangeCount<=0)return null;var T=F.getRangeAt(0);if(T==null)return null;var D=this.normalizeNative(T);return N.info("getNativeRange",D),D}},{key:"getRange",value:function(){var F=this.getNativeRange();if(F==null)return[null,null];var T=this.normalizedToRange(F);return[T,F]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(F){var T=this,D=[[F.start.node,F.start.offset]];F.native.collapsed||D.push([F.end.node,F.end.offset]);var B=D.map(function(Q){var te=s(Q,2),Z=te[0],J=te[1],V=h.default.find(Z,!0),M=V.offset(T.scroll);return J===0?M:V instanceof h.default.Container?M+V.length():M+V.index(Z,J)}),$=Math.min(Math.max.apply(Math,x(B)),this.scroll.length()-1),W=Math.min.apply(Math,[$].concat(x(B)));return new j(W,$-W)}},{key:"normalizeNative",value:function(F){if(!P(this.root,F.startContainer)||!F.collapsed&&!P(this.root,F.endContainer))return null;var T={start:{node:F.startContainer,offset:F.startOffset},end:{node:F.endContainer,offset:F.endOffset},native:F};return[T.start,T.end].forEach(function(D){for(var B=D.node,$=D.offset;!(B instanceof Text)&&B.childNodes.length>0;)if(B.childNodes.length>$)B=B.childNodes[$],$=0;else if(B.childNodes.length===$)B=B.lastChild,$=B instanceof Text?B.data.length:B.childNodes.length+1;else break;D.node=B,D.offset=$}),T}},{key:"rangeToNative",value:function(F){var T=this,D=F.collapsed?[F.index]:[F.index,F.index+F.length],B=[],$=this.scroll.length();return D.forEach(function(W,Q){W=Math.min($-1,W);var te=void 0,Z=T.scroll.leaf(W),J=s(Z,2),V=J[0],M=J[1],K=V.position(M,Q!==0),X=s(K,2);te=X[0],M=X[1],B.push(te,M)}),B.length<2&&(B=B.concat(B)),B}},{key:"scrollIntoView",value:function(F){var T=this.lastRange;if(T!=null){var D=this.getBounds(T.index,T.length);if(D!=null){var B=this.scroll.length()-1,$=this.scroll.line(Math.min(T.index,B)),W=s($,1),Q=W[0],te=Q;if(T.length>0){var Z=this.scroll.line(Math.min(T.index+T.length,B)),J=s(Z,1);te=J[0]}if(!(Q==null||te==null)){var V=F.getBoundingClientRect();D.top<V.top?F.scrollTop-=V.top-D.top:D.bottom>V.bottom&&(F.scrollTop+=D.bottom-V.bottom)}}}}},{key:"setNativeRange",value:function(F,T){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:F,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:T,$=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(N.info("setNativeRange",F,T,D,B),!(F!=null&&(this.root.parentNode==null||F.parentNode==null||D.parentNode==null))){var W=document.getSelection();if(W!=null)if(F!=null){this.hasFocus()||this.root.focus();var Q=(this.getNativeRange()||{}).native;if(Q==null||$||F!==Q.startContainer||T!==Q.startOffset||D!==Q.endContainer||B!==Q.endOffset){F.tagName=="BR"&&(T=[].indexOf.call(F.parentNode.childNodes,F),F=F.parentNode),D.tagName=="BR"&&(B=[].indexOf.call(D.parentNode.childNodes,D),D=D.parentNode);var te=document.createRange();te.setStart(F,T),te.setEnd(D,B),W.removeAllRanges(),W.addRange(te)}}else W.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(F){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:k.default.sources.API;if(typeof T=="string"&&(D=T,T=!1),N.info("setRange",F),F!=null){var B=this.rangeToNative(F);this.setNativeRange.apply(this,x(B).concat([T]))}else this.setNativeRange(null);this.update(D)}},{key:"update",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:k.default.sources.USER,T=this.lastRange,D=this.getRange(),B=s(D,2),$=B[0],W=B[1];if(this.lastRange=$,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,f.default)(T,this.lastRange)){var Q;!this.composing&&W!=null&&W.native.collapsed&&W.start.node!==this.cursor.textNode&&this.cursor.restore();var te=[k.default.events.SELECTION_CHANGE,(0,w.default)(this.lastRange),(0,w.default)(T),F];if((Q=this.emitter).emit.apply(Q,[k.default.events.EDITOR_CHANGE].concat(te)),F!==k.default.sources.SILENT){var Z;(Z=this.emitter).emit.apply(Z,te)}}}}]),z})();function P(z,H){try{H.parentNode}catch{return!1}return H instanceof Text&&(H=H.parentNode),z.contains(H)}a.Range=j,a.default=L}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=(function(){function k(S,_){for(var b=0;b<_.length;b++){var x=_[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(S,x.key,x)}}return function(S,_,b){return _&&k(S.prototype,_),b&&k(S,b),S}})(),u=function k(S,_,b){S===null&&(S=Function.prototype);var x=Object.getOwnPropertyDescriptor(S,_);if(x===void 0){var C=Object.getPrototypeOf(S);return C===null?void 0:k(C,_,b)}else{if("value"in x)return x.value;var N=x.get;return N===void 0?void 0:N.call(b)}},p=i(0),h=g(p);function g(k){return k&&k.__esModule?k:{default:k}}function w(k,S){if(!(k instanceof S))throw new TypeError("Cannot call a class as a function")}function d(k,S){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:k}function f(k,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);k.prototype=Object.create(S&&S.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(k,S):k.__proto__=S)}var m=(function(k){f(S,k);function S(){return w(this,S),d(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return s(S,[{key:"insertInto",value:function(b,x){b.children.length===0?u(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"insertInto",this).call(this,b,x):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),S})(h.default.Embed);m.blotName="break",m.tagName="BR",a.default=m}),(function(n,a,i){var s=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var k in m)m.hasOwnProperty(k)&&(f[k]=m[k])};return function(f,m){d(f,m);function k(){this.constructor=f}f.prototype=m===null?Object.create(m):(k.prototype=m.prototype,new k)}})();Object.defineProperty(a,"__esModule",{value:!0});var u=i(44),p=i(30),h=i(1),g=(function(d){s(f,d);function f(m){var k=d.call(this,m)||this;return k.build(),k}return f.prototype.appendChild=function(m){this.insertBefore(m)},f.prototype.attach=function(){d.prototype.attach.call(this),this.children.forEach(function(m){m.attach()})},f.prototype.build=function(){var m=this;this.children=new u.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(k){try{var S=w(k);m.insertBefore(S,m.children.head||void 0)}catch(_){if(_ instanceof h.ParchmentError)return;throw _}})},f.prototype.deleteAt=function(m,k){if(m===0&&k===this.length())return this.remove();this.children.forEachAt(m,k,function(S,_,b){S.deleteAt(_,b)})},f.prototype.descendant=function(m,k){var S=this.children.find(k),_=S[0],b=S[1];return m.blotName==null&&m(_)||m.blotName!=null&&_ instanceof m?[_,b]:_ instanceof f?_.descendant(m,b):[null,-1]},f.prototype.descendants=function(m,k,S){k===void 0&&(k=0),S===void 0&&(S=Number.MAX_VALUE);var _=[],b=S;return this.children.forEachAt(k,S,function(x,C,N){(m.blotName==null&&m(x)||m.blotName!=null&&x instanceof m)&&_.push(x),x instanceof f&&(_=_.concat(x.descendants(m,C,b))),b-=N}),_},f.prototype.detach=function(){this.children.forEach(function(m){m.detach()}),d.prototype.detach.call(this)},f.prototype.formatAt=function(m,k,S,_){this.children.forEachAt(m,k,function(b,x,C){b.formatAt(x,C,S,_)})},f.prototype.insertAt=function(m,k,S){var _=this.children.find(m),b=_[0],x=_[1];if(b)b.insertAt(x,k,S);else{var C=S==null?h.create("text",k):h.create(k,S);this.appendChild(C)}},f.prototype.insertBefore=function(m,k){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(S){return m instanceof S}))throw new h.ParchmentError("Cannot insert "+m.statics.blotName+" into "+this.statics.blotName);m.insertInto(this,k)},f.prototype.length=function(){return this.children.reduce(function(m,k){return m+k.length()},0)},f.prototype.moveChildren=function(m,k){this.children.forEach(function(S){m.insertBefore(S,k)})},f.prototype.optimize=function(m){if(d.prototype.optimize.call(this,m),this.children.length===0)if(this.statics.defaultChild!=null){var k=h.create(this.statics.defaultChild);this.appendChild(k),k.optimize(m)}else this.remove()},f.prototype.path=function(m,k){k===void 0&&(k=!1);var S=this.children.find(m,k),_=S[0],b=S[1],x=[[this,m]];return _ instanceof f?x.concat(_.path(b,k)):(_!=null&&x.push([_,b]),x)},f.prototype.removeChild=function(m){this.children.remove(m)},f.prototype.replace=function(m){m instanceof f&&m.moveChildren(this),d.prototype.replace.call(this,m)},f.prototype.split=function(m,k){if(k===void 0&&(k=!1),!k){if(m===0)return this;if(m===this.length())return this.next}var S=this.clone();return this.parent.insertBefore(S,this.next),this.children.forEachAt(m,this.length(),function(_,b,x){_=_.split(b,k),S.appendChild(_)}),S},f.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},f.prototype.update=function(m,k){var S=this,_=[],b=[];m.forEach(function(x){x.target===S.domNode&&x.type==="childList"&&(_.push.apply(_,x.addedNodes),b.push.apply(b,x.removedNodes))}),b.forEach(function(x){if(!(x.parentNode!=null&&x.tagName!=="IFRAME"&&document.body.compareDocumentPosition(x)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var C=h.find(x);C!=null&&(C.domNode.parentNode==null||C.domNode.parentNode===S.domNode)&&C.detach()}}),_.filter(function(x){return x.parentNode==S.domNode}).sort(function(x,C){return x===C?0:x.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(x){var C=null;x.nextSibling!=null&&(C=h.find(x.nextSibling));var N=w(x);(N.next!=C||N.next==null)&&(N.parent!=null&&N.parent.removeChild(S),S.insertBefore(N,C||void 0))})},f})(p.default);function w(d){var f=h.find(d);if(f==null)try{f=h.create(d)}catch{f=h.create(h.Scope.INLINE),[].slice.call(d.childNodes).forEach(function(k){f.domNode.appendChild(k)}),d.parentNode&&d.parentNode.replaceChild(f.domNode,d),f.attach()}return f}a.default=g}),(function(n,a,i){var s=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var k in m)m.hasOwnProperty(k)&&(f[k]=m[k])};return function(f,m){d(f,m);function k(){this.constructor=f}f.prototype=m===null?Object.create(m):(k.prototype=m.prototype,new k)}})();Object.defineProperty(a,"__esModule",{value:!0});var u=i(12),p=i(31),h=i(17),g=i(1),w=(function(d){s(f,d);function f(m){var k=d.call(this,m)||this;return k.attributes=new p.default(k.domNode),k}return f.formats=function(m){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return m.tagName.toLowerCase()},f.prototype.format=function(m,k){var S=g.query(m);S instanceof u.default?this.attributes.attribute(S,k):k&&S!=null&&(m!==this.statics.blotName||this.formats()[m]!==k)&&this.replaceWith(m,k)},f.prototype.formats=function(){var m=this.attributes.values(),k=this.statics.formats(this.domNode);return k!=null&&(m[this.statics.blotName]=k),m},f.prototype.replaceWith=function(m,k){var S=d.prototype.replaceWith.call(this,m,k);return this.attributes.copy(S),S},f.prototype.update=function(m,k){var S=this;d.prototype.update.call(this,m,k),m.some(function(_){return _.target===S.domNode&&_.type==="attributes"})&&this.attributes.build()},f.prototype.wrap=function(m,k){var S=d.prototype.wrap.call(this,m,k);return S instanceof f&&S.statics.scope===this.statics.scope&&this.attributes.move(S),S},f})(h.default);a.default=w}),(function(n,a,i){var s=this&&this.__extends||(function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,d){w.__proto__=d}||function(w,d){for(var f in d)d.hasOwnProperty(f)&&(w[f]=d[f])};return function(w,d){g(w,d);function f(){this.constructor=w}w.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}})();Object.defineProperty(a,"__esModule",{value:!0});var u=i(30),p=i(1),h=(function(g){s(w,g);function w(){return g!==null&&g.apply(this,arguments)||this}return w.value=function(d){return!0},w.prototype.index=function(d,f){return this.domNode===d||this.domNode.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(f,1):-1},w.prototype.position=function(d,f){var m=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return d>0&&(m+=1),[this.parent.domNode,m]},w.prototype.value=function(){var d;return d={},d[this.statics.blotName]=this.statics.value(this.domNode)||!0,d},w.scope=p.Scope.INLINE_BLOT,w})(u.default);a.default=h}),(function(n,a,i){var s=i(11),u=i(3),p={attributes:{compose:function(g,w,d){typeof g!="object"&&(g={}),typeof w!="object"&&(w={});var f=u(!0,{},w);d||(f=Object.keys(f).reduce(function(k,S){return f[S]!=null&&(k[S]=f[S]),k},{}));for(var m in g)g[m]!==void 0&&w[m]===void 0&&(f[m]=g[m]);return Object.keys(f).length>0?f:void 0},diff:function(g,w){typeof g!="object"&&(g={}),typeof w!="object"&&(w={});var d=Object.keys(g).concat(Object.keys(w)).reduce(function(f,m){return s(g[m],w[m])||(f[m]=w[m]===void 0?null:w[m]),f},{});return Object.keys(d).length>0?d:void 0},transform:function(g,w,d){if(typeof g!="object")return w;if(typeof w=="object"){if(!d)return w;var f=Object.keys(w).reduce(function(m,k){return g[k]===void 0&&(m[k]=w[k]),m},{});return Object.keys(f).length>0?f:void 0}}},iterator:function(g){return new h(g)},length:function(g){return typeof g.delete=="number"?g.delete:typeof g.retain=="number"?g.retain:typeof g.insert=="string"?g.insert.length:1}};function h(g){this.ops=g,this.index=0,this.offset=0}h.prototype.hasNext=function(){return this.peekLength()<1/0},h.prototype.next=function(g){g||(g=1/0);var w=this.ops[this.index];if(w){var d=this.offset,f=p.length(w);if(g>=f-d?(g=f-d,this.index+=1,this.offset=0):this.offset+=g,typeof w.delete=="number")return{delete:g};var m={};return w.attributes&&(m.attributes=w.attributes),typeof w.retain=="number"?m.retain=g:typeof w.insert=="string"?m.insert=w.insert.substr(d,g):m.insert=w.insert,m}else return{retain:1/0}},h.prototype.peek=function(){return this.ops[this.index]},h.prototype.peekLength=function(){return this.ops[this.index]?p.length(this.ops[this.index])-this.offset:1/0},h.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},h.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var g=this.offset,w=this.index,d=this.next(),f=this.ops.slice(this.index);return this.offset=g,this.index=w,[d].concat(f)}else return[]},n.exports=p}),(function(n,a){var i=(function(){function s(S,_){return _!=null&&S instanceof _}var u;try{u=Map}catch{u=function(){}}var p;try{p=Set}catch{p=function(){}}var h;try{h=Promise}catch{h=function(){}}function g(S,_,b,x,C){typeof _=="object"&&(b=_.depth,x=_.prototype,C=_.includeNonEnumerable,_=_.circular);var N=[],j=[],L=typeof Buffer<"u";typeof _>"u"&&(_=!0),typeof b>"u"&&(b=1/0);function P(z,H){if(z===null)return null;if(H===0)return z;var F,T;if(typeof z!="object")return z;if(s(z,u))F=new u;else if(s(z,p))F=new p;else if(s(z,h))F=new h(function(V,M){z.then(function(K){V(P(K,H-1))},function(K){M(P(K,H-1))})});else if(g.__isArray(z))F=[];else if(g.__isRegExp(z))F=new RegExp(z.source,k(z)),z.lastIndex&&(F.lastIndex=z.lastIndex);else if(g.__isDate(z))F=new Date(z.getTime());else{if(L&&Buffer.isBuffer(z))return Buffer.allocUnsafe?F=Buffer.allocUnsafe(z.length):F=new Buffer(z.length),z.copy(F),F;s(z,Error)?F=Object.create(z):typeof x>"u"?(T=Object.getPrototypeOf(z),F=Object.create(T)):(F=Object.create(x),T=x)}if(_){var D=N.indexOf(z);if(D!=-1)return j[D];N.push(z),j.push(F)}s(z,u)&&z.forEach(function(V,M){var K=P(M,H-1),X=P(V,H-1);F.set(K,X)}),s(z,p)&&z.forEach(function(V){var M=P(V,H-1);F.add(M)});for(var B in z){var $;T&&($=Object.getOwnPropertyDescriptor(T,B)),!($&&$.set==null)&&(F[B]=P(z[B],H-1))}if(Object.getOwnPropertySymbols)for(var W=Object.getOwnPropertySymbols(z),B=0;B<W.length;B++){var Q=W[B],te=Object.getOwnPropertyDescriptor(z,Q);te&&!te.enumerable&&!C||(F[Q]=P(z[Q],H-1),te.enumerable||Object.defineProperty(F,Q,{enumerable:!1}))}if(C)for(var Z=Object.getOwnPropertyNames(z),B=0;B<Z.length;B++){var J=Z[B],te=Object.getOwnPropertyDescriptor(z,J);te&&te.enumerable||(F[J]=P(z[J],H-1),Object.defineProperty(F,J,{enumerable:!1}))}return F}return P(S,b)}g.clonePrototype=function(_){if(_===null)return null;var b=function(){};return b.prototype=_,new b};function w(S){return Object.prototype.toString.call(S)}g.__objToStr=w;function d(S){return typeof S=="object"&&w(S)==="[object Date]"}g.__isDate=d;function f(S){return typeof S=="object"&&w(S)==="[object Array]"}g.__isArray=f;function m(S){return typeof S=="object"&&w(S)==="[object RegExp]"}g.__isRegExp=m;function k(S){var _="";return S.global&&(_+="g"),S.ignoreCase&&(_+="i"),S.multiline&&(_+="m"),_}return g.__getRegExpFlags=k,g})();typeof n=="object"&&n.exports&&(n.exports=i)}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=(function(){function F(T,D){var B=[],$=!0,W=!1,Q=void 0;try{for(var te=T[Symbol.iterator](),Z;!($=(Z=te.next()).done)&&(B.push(Z.value),!(D&&B.length===D));$=!0);}catch(J){W=!0,Q=J}finally{try{!$&&te.return&&te.return()}finally{if(W)throw Q}}return B}return function(T,D){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return F(T,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=(function(){function F(T,D){for(var B=0;B<D.length;B++){var $=D[B];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(T,$.key,$)}}return function(T,D,B){return D&&F(T.prototype,D),B&&F(T,B),T}})(),p=function F(T,D,B){T===null&&(T=Function.prototype);var $=Object.getOwnPropertyDescriptor(T,D);if($===void 0){var W=Object.getPrototypeOf(T);return W===null?void 0:F(W,D,B)}else{if("value"in $)return $.value;var Q=$.get;return Q===void 0?void 0:Q.call(B)}},h=i(0),g=N(h),w=i(8),d=N(w),f=i(4),m=N(f),k=i(16),S=N(k),_=i(13),b=N(_),x=i(25),C=N(x);function N(F){return F&&F.__esModule?F:{default:F}}function j(F,T){if(!(F instanceof T))throw new TypeError("Cannot call a class as a function")}function L(F,T){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:F}function P(F,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);F.prototype=Object.create(T&&T.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(F,T):F.__proto__=T)}function z(F){return F instanceof m.default||F instanceof f.BlockEmbed}var H=(function(F){P(T,F);function T(D,B){j(this,T);var $=L(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,D));return $.emitter=B.emitter,Array.isArray(B.whitelist)&&($.whitelist=B.whitelist.reduce(function(W,Q){return W[Q]=!0,W},{})),$.domNode.addEventListener("DOMNodeInserted",function(){}),$.optimize(),$.enable(),$}return u(T,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(B,$){var W=this.line(B),Q=s(W,2),te=Q[0],Z=Q[1],J=this.line(B+$),V=s(J,1),M=V[0];if(p(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"deleteAt",this).call(this,B,$),M!=null&&te!==M&&Z>0){if(te instanceof f.BlockEmbed||M instanceof f.BlockEmbed){this.optimize();return}if(te instanceof b.default){var K=te.newlineIndex(te.length(),!0);if(K>-1&&(te=te.split(K+1),te===M)){this.optimize();return}}else if(M instanceof b.default){var X=M.newlineIndex(0);X>-1&&M.split(X+1)}var ie=M.children.head instanceof S.default?null:M.children.head;te.moveChildren(M,ie),te.remove()}this.optimize()}},{key:"enable",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",B)}},{key:"formatAt",value:function(B,$,W,Q){this.whitelist!=null&&!this.whitelist[W]||(p(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"formatAt",this).call(this,B,$,W,Q),this.optimize())}},{key:"insertAt",value:function(B,$,W){if(!(W!=null&&this.whitelist!=null&&!this.whitelist[$])){if(B>=this.length())if(W==null||g.default.query($,g.default.Scope.BLOCK)==null){var Q=g.default.create(this.statics.defaultChild);this.appendChild(Q),W==null&&$.endsWith(` 298`)&&($=$.slice(0,-1)),Q.insertAt(0,$,W)}else{var te=g.default.create($,W);this.appendChild(te)}else p(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,B,$,W);this.optimize()}}},{key:"insertBefore",value:function(B,$){if(B.statics.scope===g.default.Scope.INLINE_BLOT){var W=g.default.create(this.statics.defaultChild);W.appendChild(B),B=W}p(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertBefore",this).call(this,B,$)}},{key:"leaf",value:function(B){return this.path(B).pop()||[null,-1]}},{key:"line",value:function(B){return B===this.length()?this.line(B-1):this.descendant(z,B)}},{key:"lines",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,W=function Q(te,Z,J){var V=[],M=J;return te.children.forEachAt(Z,J,function(K,X,ie){z(K)?V.push(K):K instanceof g.default.Container&&(V=V.concat(Q(K,X,M))),M-=ie}),V};return W(this,B,$)}},{key:"optimize",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(p(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"optimize",this).call(this,B,$),B.length>0&&this.emitter.emit(d.default.events.SCROLL_OPTIMIZE,B,$))}},{key:"path",value:function(B){return p(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"path",this).call(this,B).slice(1)}},{key:"update",value:function(B){if(this.batch!==!0){var $=d.default.sources.USER;typeof B=="string"&&($=B),Array.isArray(B)||(B=this.observer.takeRecords()),B.length>0&&this.emitter.emit(d.default.events.SCROLL_BEFORE_UPDATE,$,B),p(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"update",this).call(this,B.concat([])),B.length>0&&this.emitter.emit(d.default.events.SCROLL_UPDATE,$,B)}}}]),T})(g.default.Scroll);H.blotName="scroll",H.className="ql-editor",H.tagName="DIV",H.defaultChild="block",H.allowedChildren=[m.default,f.BlockEmbed,C.default],a.default=H}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.SHORTKEY=a.default=void 0;var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ee){return typeof ee}:function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},u=(function(){function ee(ne,ce){var ae=[],Ae=!0,Ie=!1,je=void 0;try{for(var ze=ne[Symbol.iterator](),Xe;!(Ae=(Xe=ze.next()).done)&&(ae.push(Xe.value),!(ce&&ae.length===ce));Ae=!0);}catch(ot){Ie=!0,je=ot}finally{try{!Ae&&ze.return&&ze.return()}finally{if(Ie)throw je}}return ae}return function(ne,ce){if(Array.isArray(ne))return ne;if(Symbol.iterator in Object(ne))return ee(ne,ce);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),p=(function(){function ee(ne,ce){for(var ae=0;ae<ce.length;ae++){var Ae=ce[ae];Ae.enumerable=Ae.enumerable||!1,Ae.configurable=!0,"value"in Ae&&(Ae.writable=!0),Object.defineProperty(ne,Ae.key,Ae)}}return function(ne,ce,ae){return ce&&ee(ne.prototype,ce),ae&&ee(ne,ae),ne}})(),h=i(21),g=F(h),w=i(11),d=F(w),f=i(3),m=F(f),k=i(2),S=F(k),_=i(20),b=F(_),x=i(0),C=F(x),N=i(5),j=F(N),L=i(10),P=F(L),z=i(9),H=F(z);function F(ee){return ee&&ee.__esModule?ee:{default:ee}}function T(ee,ne,ce){return ne in ee?Object.defineProperty(ee,ne,{value:ce,enumerable:!0,configurable:!0,writable:!0}):ee[ne]=ce,ee}function D(ee,ne){if(!(ee instanceof ne))throw new TypeError("Cannot call a class as a function")}function B(ee,ne){if(!ee)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne&&(typeof ne=="object"||typeof ne=="function")?ne:ee}function $(ee,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ne);ee.prototype=Object.create(ne&&ne.prototype,{constructor:{value:ee,enumerable:!1,writable:!0,configurable:!0}}),ne&&(Object.setPrototypeOf?Object.setPrototypeOf(ee,ne):ee.__proto__=ne)}var W=(0,P.default)("quill:keyboard"),Q=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",te=(function(ee){$(ne,ee),p(ne,null,[{key:"match",value:function(ae,Ae){return Ae=oe(Ae),["altKey","ctrlKey","metaKey","shiftKey"].some(function(Ie){return!!Ae[Ie]!==ae[Ie]&&Ae[Ie]!==null})?!1:Ae.key===(ae.which||ae.keyCode)}}]);function ne(ce,ae){D(this,ne);var Ae=B(this,(ne.__proto__||Object.getPrototypeOf(ne)).call(this,ce,ae));return Ae.bindings={},Object.keys(Ae.options.bindings).forEach(function(Ie){Ie==="list autofill"&&ce.scroll.whitelist!=null&&!ce.scroll.whitelist.list||Ae.options.bindings[Ie]&&Ae.addBinding(Ae.options.bindings[Ie])}),Ae.addBinding({key:ne.keys.ENTER,shiftKey:null},K),Ae.addBinding({key:ne.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(Ae.addBinding({key:ne.keys.BACKSPACE},{collapsed:!0},J),Ae.addBinding({key:ne.keys.DELETE},{collapsed:!0},V)):(Ae.addBinding({key:ne.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},J),Ae.addBinding({key:ne.keys.DELETE},{collapsed:!0,suffix:/^.?$/},V)),Ae.addBinding({key:ne.keys.BACKSPACE},{collapsed:!1},M),Ae.addBinding({key:ne.keys.DELETE},{collapsed:!1},M),Ae.addBinding({key:ne.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},J),Ae.listen(),Ae}return p(ne,[{key:"addBinding",value:function(ae){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},je=oe(ae);if(je==null||je.key==null)return W.warn("Attempted to add invalid keyboard binding",je);typeof Ae=="function"&&(Ae={handler:Ae}),typeof Ie=="function"&&(Ie={handler:Ie}),je=(0,m.default)(je,Ae,Ie),this.bindings[je.key]=this.bindings[je.key]||[],this.bindings[je.key].push(je)}},{key:"listen",value:function(){var ae=this;this.quill.root.addEventListener("keydown",function(Ae){if(!Ae.defaultPrevented){var Ie=Ae.which||Ae.keyCode,je=(ae.bindings[Ie]||[]).filter(function(vt){return ne.match(Ae,vt)});if(je.length!==0){var ze=ae.quill.getSelection();if(!(ze==null||!ae.quill.hasFocus())){var Xe=ae.quill.getLine(ze.index),ot=u(Xe,2),Ot=ot[0],bt=ot[1],ue=ae.quill.getLeaf(ze.index),ye=u(ue,2),Te=ye[0],Re=ye[1],Pe=ze.length===0?[Te,Re]:ae.quill.getLeaf(ze.index+ze.length),at=u(Pe,2),ft=at[0],dt=at[1],Bt=Te instanceof C.default.Text?Te.value().slice(0,Re):"",Ht=ft instanceof C.default.Text?ft.value().slice(dt):"",At={collapsed:ze.length===0,empty:ze.length===0&&Ot.length()<=1,format:ae.quill.getFormat(ze),offset:bt,prefix:Bt,suffix:Ht},Cr=je.some(function(vt){if(vt.collapsed!=null&&vt.collapsed!==At.collapsed||vt.empty!=null&&vt.empty!==At.empty||vt.offset!=null&&vt.offset!==At.offset)return!1;if(Array.isArray(vt.format)){if(vt.format.every(function(Kt){return At.format[Kt]==null}))return!1}else if(s(vt.format)==="object"&&!Object.keys(vt.format).every(function(Kt){return vt.format[Kt]===!0?At.format[Kt]!=null:vt.format[Kt]===!1?At.format[Kt]==null:(0,d.default)(vt.format[Kt],At.format[Kt])}))return!1;return vt.prefix!=null&&!vt.prefix.test(At.prefix)||vt.suffix!=null&&!vt.suffix.test(At.suffix)?!1:vt.handler.call(ae,ze,At)!==!0});Cr&&Ae.preventDefault()}}}})}}]),ne})(H.default);te.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},te.DEFAULTS={bindings:{bold:ie("bold"),italic:ie("italic"),underline:ie("underline"),indent:{key:te.keys.TAB,format:["blockquote","indent","list"],handler:function(ne,ce){if(ce.collapsed&&ce.offset!==0)return!0;this.quill.format("indent","+1",j.default.sources.USER)}},outdent:{key:te.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(ne,ce){if(ce.collapsed&&ce.offset!==0)return!0;this.quill.format("indent","-1",j.default.sources.USER)}},"outdent backspace":{key:te.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(ne,ce){ce.format.indent!=null?this.quill.format("indent","-1",j.default.sources.USER):ce.format.list!=null&&this.quill.format("list",!1,j.default.sources.USER)}},"indent code-block":X(!0),"outdent code-block":X(!1),"remove tab":{key:te.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(ne){this.quill.deleteText(ne.index-1,1,j.default.sources.USER)}},tab:{key:te.keys.TAB,handler:function(ne){this.quill.history.cutoff();var ce=new S.default().retain(ne.index).delete(ne.length).insert(" ");this.quill.updateContents(ce,j.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(ne.index+1,j.default.sources.SILENT)}},"list empty enter":{key:te.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(ne,ce){this.quill.format("list",!1,j.default.sources.USER),ce.format.indent&&this.quill.format("indent",!1,j.default.sources.USER)}},"checklist enter":{key:te.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(ne){var ce=this.quill.getLine(ne.index),ae=u(ce,2),Ae=ae[0],Ie=ae[1],je=(0,m.default)({},Ae.formats(),{list:"checked"}),ze=new S.default().retain(ne.index).insert(` 299`,je).retain(Ae.length()-Ie-1).retain(1,{list:"unchecked"});this.quill.updateContents(ze,j.default.sources.USER),this.quill.setSelection(ne.index+1,j.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:te.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(ne,ce){var ae=this.quill.getLine(ne.index),Ae=u(ae,2),Ie=Ae[0],je=Ae[1],ze=new S.default().retain(ne.index).insert(` 300`,ce.format).retain(Ie.length()-je-1).retain(1,{header:null});this.quill.updateContents(ze,j.default.sources.USER),this.quill.setSelection(ne.index+1,j.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(ne,ce){var ae=ce.prefix.length,Ae=this.quill.getLine(ne.index),Ie=u(Ae,2),je=Ie[0],ze=Ie[1];if(ze>ae)return!0;var Xe=void 0;switch(ce.prefix.trim()){case"[]":case"[ ]":Xe="unchecked";break;case"[x]":Xe="checked";break;case"-":case"*":Xe="bullet";break;default:Xe="ordered"}this.quill.insertText(ne.index," ",j.default.sources.USER),this.quill.history.cutoff();var ot=new S.default().retain(ne.index-ze).delete(ae+1).retain(je.length()-2-ze).retain(1,{list:Xe});this.quill.updateContents(ot,j.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(ne.index-ae,j.default.sources.SILENT)}},"code exit":{key:te.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(ne){var ce=this.quill.getLine(ne.index),ae=u(ce,2),Ae=ae[0],Ie=ae[1],je=new S.default().retain(ne.index+Ae.length()-Ie-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(je,j.default.sources.USER)}},"embed left":Z(te.keys.LEFT,!1),"embed left shift":Z(te.keys.LEFT,!0),"embed right":Z(te.keys.RIGHT,!1),"embed right shift":Z(te.keys.RIGHT,!0)}};function Z(ee,ne){var ce,ae=ee===te.keys.LEFT?"prefix":"suffix";return ce={key:ee,shiftKey:ne,altKey:null},T(ce,ae,/^$/),T(ce,"handler",function(Ie){var je=Ie.index;ee===te.keys.RIGHT&&(je+=Ie.length+1);var ze=this.quill.getLeaf(je),Xe=u(ze,1),ot=Xe[0];return ot instanceof C.default.Embed?(ee===te.keys.LEFT?ne?this.quill.setSelection(Ie.index-1,Ie.length+1,j.default.sources.USER):this.quill.setSelection(Ie.index-1,j.default.sources.USER):ne?this.quill.setSelection(Ie.index,Ie.length+1,j.default.sources.USER):this.quill.setSelection(Ie.index+Ie.length+1,j.default.sources.USER),!1):!0}),ce}function J(ee,ne){if(!(ee.index===0||this.quill.getLength()<=1)){var ce=this.quill.getLine(ee.index),ae=u(ce,1),Ae=ae[0],Ie={};if(ne.offset===0){var je=this.quill.getLine(ee.index-1),ze=u(je,1),Xe=ze[0];if(Xe!=null&&Xe.length()>1){var ot=Ae.formats(),Ot=this.quill.getFormat(ee.index-1,1);Ie=b.default.attributes.diff(ot,Ot)||{}}}var bt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(ne.prefix)?2:1;this.quill.deleteText(ee.index-bt,bt,j.default.sources.USER),Object.keys(Ie).length>0&&this.quill.formatLine(ee.index-bt,bt,Ie,j.default.sources.USER),this.quill.focus()}}function V(ee,ne){var ce=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(ne.suffix)?2:1;if(!(ee.index>=this.quill.getLength()-ce)){var ae={},Ae=0,Ie=this.quill.getLine(ee.index),je=u(Ie,1),ze=je[0];if(ne.offset>=ze.length()-1){var Xe=this.quill.getLine(ee.index+1),ot=u(Xe,1),Ot=ot[0];if(Ot){var bt=ze.formats(),ue=this.quill.getFormat(ee.index,1);ae=b.default.attributes.diff(bt,ue)||{},Ae=Ot.length()}}this.quill.deleteText(ee.index,ce,j.default.sources.USER),Object.keys(ae).length>0&&this.quill.formatLine(ee.index+Ae-1,ce,ae,j.default.sources.USER)}}function M(ee){var ne=this.quill.getLines(ee),ce={};if(ne.length>1){var ae=ne[0].formats(),Ae=ne[ne.length-1].formats();ce=b.default.attributes.diff(Ae,ae)||{}}this.quill.deleteText(ee,j.default.sources.USER),Object.keys(ce).length>0&&this.quill.formatLine(ee.index,1,ce,j.default.sources.USER),this.quill.setSelection(ee.index,j.default.sources.SILENT),this.quill.focus()}function K(ee,ne){var ce=this;ee.length>0&&this.quill.scroll.deleteAt(ee.index,ee.length);var ae=Object.keys(ne.format).reduce(function(Ae,Ie){return C.default.query(Ie,C.default.Scope.BLOCK)&&!Array.isArray(ne.format[Ie])&&(Ae[Ie]=ne.format[Ie]),Ae},{});this.quill.insertText(ee.index,` 301`,ae,j.default.sources.USER),this.quill.setSelection(ee.index+1,j.default.sources.SILENT),this.quill.focus(),Object.keys(ne.format).forEach(function(Ae){ae[Ae]==null&&(Array.isArray(ne.format[Ae])||Ae!=="link"&&ce.quill.format(Ae,ne.format[Ae],j.default.sources.USER))})}function X(ee){return{key:te.keys.TAB,shiftKey:!ee,format:{"code-block":!0},handler:function(ce){var ae=C.default.query("code-block"),Ae=ce.index,Ie=ce.length,je=this.quill.scroll.descendant(ae,Ae),ze=u(je,2),Xe=ze[0],ot=ze[1];if(Xe!=null){var Ot=this.quill.getIndex(Xe),bt=Xe.newlineIndex(ot,!0)+1,ue=Xe.newlineIndex(Ot+ot+Ie),ye=Xe.domNode.textContent.slice(bt,ue).split(` 302`);ot=0,ye.forEach(function(Te,Re){ee?(Xe.insertAt(bt+ot,ae.TAB),ot+=ae.TAB.length,Re===0?Ae+=ae.TAB.length:Ie+=ae.TAB.length):Te.startsWith(ae.TAB)&&(Xe.deleteAt(bt+ot,ae.TAB.length),ot-=ae.TAB.length,Re===0?Ae-=ae.TAB.length:Ie-=ae.TAB.length),ot+=Te.length+1}),this.quill.update(j.default.sources.USER),this.quill.setSelection(Ae,Ie,j.default.sources.SILENT)}}}}function ie(ee){return{key:ee[0].toUpperCase(),shortKey:!0,handler:function(ce,ae){this.quill.format(ee,!ae.format[ee],j.default.sources.USER)}}}function oe(ee){if(typeof ee=="string"||typeof ee=="number")return oe({key:ee});if((typeof ee>"u"?"undefined":s(ee))==="object"&&(ee=(0,g.default)(ee,!1)),typeof ee.key=="string")if(te.keys[ee.key.toUpperCase()]!=null)ee.key=te.keys[ee.key.toUpperCase()];else if(ee.key.length===1)ee.key=ee.key.toUpperCase().charCodeAt(0);else return null;return ee.shortKey&&(ee[Q]=ee.shortKey,delete ee.shortKey),ee}a.default=te,a.SHORTKEY=Q}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=(function(){function b(x,C){var N=[],j=!0,L=!1,P=void 0;try{for(var z=x[Symbol.iterator](),H;!(j=(H=z.next()).done)&&(N.push(H.value),!(C&&N.length===C));j=!0);}catch(F){L=!0,P=F}finally{try{!j&&z.return&&z.return()}finally{if(L)throw P}}return N}return function(x,C){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return b(x,C);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=function b(x,C,N){x===null&&(x=Function.prototype);var j=Object.getOwnPropertyDescriptor(x,C);if(j===void 0){var L=Object.getPrototypeOf(x);return L===null?void 0:b(L,C,N)}else{if("value"in j)return j.value;var P=j.get;return P===void 0?void 0:P.call(N)}},p=(function(){function b(x,C){for(var N=0;N<C.length;N++){var j=C[N];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(x,j.key,j)}}return function(x,C,N){return C&&b(x.prototype,C),N&&b(x,N),x}})(),h=i(0),g=f(h),w=i(7),d=f(w);function f(b){return b&&b.__esModule?b:{default:b}}function m(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function k(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:b}function S(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}var _=(function(b){S(x,b),p(x,null,[{key:"value",value:function(){}}]);function x(C,N){m(this,x);var j=k(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,C));return j.selection=N,j.textNode=document.createTextNode(x.CONTENTS),j.domNode.appendChild(j.textNode),j._length=0,j}return p(x,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(N,j){if(this._length!==0)return u(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,N,j);for(var L=this,P=0;L!=null&&L.statics.scope!==g.default.Scope.BLOCK_BLOT;)P+=L.offset(L.parent),L=L.parent;L!=null&&(this._length=x.CONTENTS.length,L.optimize(),L.formatAt(P,x.CONTENTS.length,N,j),this._length=0)}},{key:"index",value:function(N,j){return N===this.textNode?0:u(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"index",this).call(this,N,j)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){u(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var N=this.textNode,j=this.selection.getNativeRange(),L=void 0,P=void 0,z=void 0;if(j!=null&&j.start.node===N&&j.end.node===N){var H=[N,j.start.offset,j.end.offset];L=H[0],P=H[1],z=H[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==x.CONTENTS){var F=this.textNode.data.split(x.CONTENTS).join("");this.next instanceof d.default?(L=this.next.domNode,this.next.insertAt(0,F),this.textNode.data=x.CONTENTS):(this.textNode.data=F,this.parent.insertBefore(g.default.create(this.textNode),this),this.textNode=document.createTextNode(x.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),P!=null){var T=[P,z].map(function(B){return Math.max(0,Math.min(L.data.length,B-1))}),D=s(T,2);return P=D[0],z=D[1],{startNode:L,startOffset:P,endNode:L,endOffset:z}}}}},{key:"update",value:function(N,j){var L=this;if(N.some(function(z){return z.type==="characterData"&&z.target===L.textNode})){var P=this.restore();P&&(j.range=P)}}},{key:"value",value:function(){return""}}]),x})(g.default.Embed);_.blotName="cursor",_.className="ql-cursor",_.tagName="span",_.CONTENTS="\uFEFF",a.default=_}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=i(0),u=g(s),p=i(4),h=g(p);function g(k){return k&&k.__esModule?k:{default:k}}function w(k,S){if(!(k instanceof S))throw new TypeError("Cannot call a class as a function")}function d(k,S){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:k}function f(k,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);k.prototype=Object.create(S&&S.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(k,S):k.__proto__=S)}var m=(function(k){f(S,k);function S(){return w(this,S),d(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return S})(u.default.Container);m.allowedChildren=[h.default,p.BlockEmbed,m],a.default=m}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.ColorStyle=a.ColorClass=a.ColorAttributor=void 0;var s=(function(){function _(b,x){for(var C=0;C<x.length;C++){var N=x[C];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(b,N.key,N)}}return function(b,x,C){return x&&_(b.prototype,x),C&&_(b,C),b}})(),u=function _(b,x,C){b===null&&(b=Function.prototype);var N=Object.getOwnPropertyDescriptor(b,x);if(N===void 0){var j=Object.getPrototypeOf(b);return j===null?void 0:_(j,x,C)}else{if("value"in N)return N.value;var L=N.get;return L===void 0?void 0:L.call(C)}},p=i(0),h=g(p);function g(_){return _&&_.__esModule?_:{default:_}}function w(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}function d(_,b){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:_}function f(_,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);_.prototype=Object.create(b&&b.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(_,b):_.__proto__=b)}var m=(function(_){f(b,_);function b(){return w(this,b),d(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return s(b,[{key:"value",value:function(C){var N=u(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,C);return N.startsWith("rgb(")?(N=N.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+N.split(",").map(function(j){return("00"+parseInt(j).toString(16)).slice(-2)}).join("")):N}}]),b})(h.default.Attributor.Style),k=new h.default.Attributor.Class("color","ql-color",{scope:h.default.Scope.INLINE}),S=new m("color","color",{scope:h.default.Scope.INLINE});a.ColorAttributor=m,a.ColorClass=k,a.ColorStyle=S}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.sanitize=a.default=void 0;var s=(function(){function S(_,b){for(var x=0;x<b.length;x++){var C=b[x];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(_,C.key,C)}}return function(_,b,x){return b&&S(_.prototype,b),x&&S(_,x),_}})(),u=function S(_,b,x){_===null&&(_=Function.prototype);var C=Object.getOwnPropertyDescriptor(_,b);if(C===void 0){var N=Object.getPrototypeOf(_);return N===null?void 0:S(N,b,x)}else{if("value"in C)return C.value;var j=C.get;return j===void 0?void 0:j.call(x)}},p=i(6),h=g(p);function g(S){return S&&S.__esModule?S:{default:S}}function w(S,_){if(!(S instanceof _))throw new TypeError("Cannot call a class as a function")}function d(S,_){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:S}function f(S,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);S.prototype=Object.create(_&&_.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(S,_):S.__proto__=_)}var m=(function(S){f(_,S);function _(){return w(this,_),d(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return s(_,[{key:"format",value:function(x,C){if(x!==this.statics.blotName||!C)return u(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,x,C);C=this.constructor.sanitize(C),this.domNode.setAttribute("href",C)}}],[{key:"create",value:function(x){var C=u(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,x);return x=this.sanitize(x),C.setAttribute("href",x),C.setAttribute("rel","noopener noreferrer"),C.setAttribute("target","_blank"),C}},{key:"formats",value:function(x){return x.getAttribute("href")}},{key:"sanitize",value:function(x){return k(x,this.PROTOCOL_WHITELIST)?x:this.SANITIZED_URL}}]),_})(h.default);m.blotName="link",m.tagName="A",m.SANITIZED_URL="about:blank",m.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function k(S,_){var b=document.createElement("a");b.href=S;var x=b.href.slice(0,b.href.indexOf(":"));return _.indexOf(x)>-1}a.default=m,a.sanitize=k}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},u=(function(){function _(b,x){for(var C=0;C<x.length;C++){var N=x[C];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(b,N.key,N)}}return function(b,x,C){return x&&_(b.prototype,x),C&&_(b,C),b}})(),p=i(23),h=d(p),g=i(107),w=d(g);function d(_){return _&&_.__esModule?_:{default:_}}function f(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}var m=0;function k(_,b){_.setAttribute(b,_.getAttribute(b)!=="true")}var S=(function(){function _(b){var x=this;f(this,_),this.select=b,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){x.togglePicker()}),this.label.addEventListener("keydown",function(C){switch(C.keyCode){case h.default.keys.ENTER:x.togglePicker();break;case h.default.keys.ESCAPE:x.escape(),C.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return u(_,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),k(this.label,"aria-expanded"),k(this.options,"aria-hidden")}},{key:"buildItem",value:function(x){var C=this,N=document.createElement("span");return N.tabIndex="0",N.setAttribute("role","button"),N.classList.add("ql-picker-item"),x.hasAttribute("value")&&N.setAttribute("data-value",x.getAttribute("value")),x.textContent&&N.setAttribute("data-label",x.textContent),N.addEventListener("click",function(){C.selectItem(N,!0)}),N.addEventListener("keydown",function(j){switch(j.keyCode){case h.default.keys.ENTER:C.selectItem(N,!0),j.preventDefault();break;case h.default.keys.ESCAPE:C.escape(),j.preventDefault();break}}),N}},{key:"buildLabel",value:function(){var x=document.createElement("span");return x.classList.add("ql-picker-label"),x.innerHTML=w.default,x.tabIndex="0",x.setAttribute("role","button"),x.setAttribute("aria-expanded","false"),this.container.appendChild(x),x}},{key:"buildOptions",value:function(){var x=this,C=document.createElement("span");C.classList.add("ql-picker-options"),C.setAttribute("aria-hidden","true"),C.tabIndex="-1",C.id="ql-picker-options-"+m,m+=1,this.label.setAttribute("aria-controls",C.id),this.options=C,[].slice.call(this.select.options).forEach(function(N){var j=x.buildItem(N);C.appendChild(j),N.selected===!0&&x.selectItem(j)}),this.container.appendChild(C)}},{key:"buildPicker",value:function(){var x=this;[].slice.call(this.select.attributes).forEach(function(C){x.container.setAttribute(C.name,C.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var x=this;this.close(),setTimeout(function(){return x.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(x){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,N=this.container.querySelector(".ql-selected");if(x!==N&&(N?.classList.remove("ql-selected"),x!=null&&(x.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(x.parentNode.children,x),x.hasAttribute("data-value")?this.label.setAttribute("data-value",x.getAttribute("data-value")):this.label.removeAttribute("data-value"),x.hasAttribute("data-label")?this.label.setAttribute("data-label",x.getAttribute("data-label")):this.label.removeAttribute("data-label"),C))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":s(Event))==="object"){var j=document.createEvent("Event");j.initEvent("change",!0,!0),this.select.dispatchEvent(j)}this.close()}}},{key:"update",value:function(){var x=void 0;if(this.select.selectedIndex>-1){var C=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];x=this.select.options[this.select.selectedIndex],this.selectItem(C)}else this.selectItem(null);var N=x!=null&&x!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",N)}}]),_})();a.default=S}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=i(0),u=W(s),p=i(5),h=W(p),g=i(4),w=W(g),d=i(16),f=W(d),m=i(25),k=W(m),S=i(24),_=W(S),b=i(35),x=W(b),C=i(6),N=W(C),j=i(22),L=W(j),P=i(7),z=W(P),H=i(55),F=W(H),T=i(42),D=W(T),B=i(23),$=W(B);function W(Q){return Q&&Q.__esModule?Q:{default:Q}}h.default.register({"blots/block":w.default,"blots/block/embed":g.BlockEmbed,"blots/break":f.default,"blots/container":k.default,"blots/cursor":_.default,"blots/embed":x.default,"blots/inline":N.default,"blots/scroll":L.default,"blots/text":z.default,"modules/clipboard":F.default,"modules/history":D.default,"modules/keyboard":$.default}),u.default.register(w.default,f.default,_.default,N.default,L.default,z.default),a.default=h.default}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=i(1),u=(function(){function p(h){this.domNode=h,this.domNode[s.DATA_KEY]={blot:this}}return Object.defineProperty(p.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),p.create=function(h){if(this.tagName==null)throw new s.ParchmentError("Blot definition missing tagName");var g;return Array.isArray(this.tagName)?(typeof h=="string"&&(h=h.toUpperCase(),parseInt(h).toString()===h&&(h=parseInt(h))),typeof h=="number"?g=document.createElement(this.tagName[h-1]):this.tagName.indexOf(h)>-1?g=document.createElement(h):g=document.createElement(this.tagName[0])):g=document.createElement(this.tagName),this.className&&g.classList.add(this.className),g},p.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},p.prototype.clone=function(){var h=this.domNode.cloneNode(!1);return s.create(h)},p.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[s.DATA_KEY]},p.prototype.deleteAt=function(h,g){var w=this.isolate(h,g);w.remove()},p.prototype.formatAt=function(h,g,w,d){var f=this.isolate(h,g);if(s.query(w,s.Scope.BLOT)!=null&&d)f.wrap(w,d);else if(s.query(w,s.Scope.ATTRIBUTE)!=null){var m=s.create(this.statics.scope);f.wrap(m),m.format(w,d)}},p.prototype.insertAt=function(h,g,w){var d=w==null?s.create("text",g):s.create(g,w),f=this.split(h);this.parent.insertBefore(d,f)},p.prototype.insertInto=function(h,g){g===void 0&&(g=null),this.parent!=null&&this.parent.children.remove(this);var w=null;h.children.insertBefore(this,g),g!=null&&(w=g.domNode),(this.domNode.parentNode!=h.domNode||this.domNode.nextSibling!=w)&&h.domNode.insertBefore(this.domNode,w),this.parent=h,this.attach()},p.prototype.isolate=function(h,g){var w=this.split(h);return w.split(g),w},p.prototype.length=function(){return 1},p.prototype.offset=function(h){return h===void 0&&(h=this.parent),this.parent==null||this==h?0:this.parent.children.offset(this)+this.parent.offset(h)},p.prototype.optimize=function(h){this.domNode[s.DATA_KEY]!=null&&delete this.domNode[s.DATA_KEY].mutations},p.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},p.prototype.replace=function(h){h.parent!=null&&(h.parent.insertBefore(this,h.next),h.remove())},p.prototype.replaceWith=function(h,g){var w=typeof h=="string"?s.create(h,g):h;return w.replace(this),w},p.prototype.split=function(h,g){return h===0?this:this.next},p.prototype.update=function(h,g){},p.prototype.wrap=function(h,g){var w=typeof h=="string"?s.create(h,g):h;return this.parent!=null&&this.parent.insertBefore(w,this.next),w.appendChild(this),w},p.blotName="abstract",p})();a.default=u}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=i(12),u=i(32),p=i(33),h=i(1),g=(function(){function w(d){this.attributes={},this.domNode=d,this.build()}return w.prototype.attribute=function(d,f){f?d.add(this.domNode,f)&&(d.value(this.domNode)!=null?this.attributes[d.attrName]=d:delete this.attributes[d.attrName]):(d.remove(this.domNode),delete this.attributes[d.attrName])},w.prototype.build=function(){var d=this;this.attributes={};var f=s.default.keys(this.domNode),m=u.default.keys(this.domNode),k=p.default.keys(this.domNode);f.concat(m).concat(k).forEach(function(S){var _=h.query(S,h.Scope.ATTRIBUTE);_ instanceof s.default&&(d.attributes[_.attrName]=_)})},w.prototype.copy=function(d){var f=this;Object.keys(this.attributes).forEach(function(m){var k=f.attributes[m].value(f.domNode);d.format(m,k)})},w.prototype.move=function(d){var f=this;this.copy(d),Object.keys(this.attributes).forEach(function(m){f.attributes[m].remove(f.domNode)}),this.attributes={}},w.prototype.values=function(){var d=this;return Object.keys(this.attributes).reduce(function(f,m){return f[m]=d.attributes[m].value(d.domNode),f},{})},w})();a.default=g}),(function(n,a,i){var s=this&&this.__extends||(function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,d){w.__proto__=d}||function(w,d){for(var f in d)d.hasOwnProperty(f)&&(w[f]=d[f])};return function(w,d){g(w,d);function f(){this.constructor=w}w.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}})();Object.defineProperty(a,"__esModule",{value:!0});var u=i(12);function p(g,w){var d=g.getAttribute("class")||"";return d.split(/\s+/).filter(function(f){return f.indexOf(w+"-")===0})}var h=(function(g){s(w,g);function w(){return g!==null&&g.apply(this,arguments)||this}return w.keys=function(d){return(d.getAttribute("class")||"").split(/\s+/).map(function(f){return f.split("-").slice(0,-1).join("-")})},w.prototype.add=function(d,f){return this.canAdd(d,f)?(this.remove(d),d.classList.add(this.keyName+"-"+f),!0):!1},w.prototype.remove=function(d){var f=p(d,this.keyName);f.forEach(function(m){d.classList.remove(m)}),d.classList.length===0&&d.removeAttribute("class")},w.prototype.value=function(d){var f=p(d,this.keyName)[0]||"",m=f.slice(this.keyName.length+1);return this.canAdd(d,m)?m:""},w})(u.default);a.default=h}),(function(n,a,i){var s=this&&this.__extends||(function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,d){w.__proto__=d}||function(w,d){for(var f in d)d.hasOwnProperty(f)&&(w[f]=d[f])};return function(w,d){g(w,d);function f(){this.constructor=w}w.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}})();Object.defineProperty(a,"__esModule",{value:!0});var u=i(12);function p(g){var w=g.split("-"),d=w.slice(1).map(function(f){return f[0].toUpperCase()+f.slice(1)}).join("");return w[0]+d}var h=(function(g){s(w,g);function w(){return g!==null&&g.apply(this,arguments)||this}return w.keys=function(d){return(d.getAttribute("style")||"").split(";").map(function(f){var m=f.split(":");return m[0].trim()})},w.prototype.add=function(d,f){return this.canAdd(d,f)?(d.style[p(this.keyName)]=f,!0):!1},w.prototype.remove=function(d){d.style[p(this.keyName)]="",d.getAttribute("style")||d.removeAttribute("style")},w.prototype.value=function(d){var f=d.style[p(this.keyName)];return this.canAdd(d,f)?f:""},w})(u.default);a.default=h}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=(function(){function h(g,w){for(var d=0;d<w.length;d++){var f=w[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(g,f.key,f)}}return function(g,w,d){return w&&h(g.prototype,w),d&&h(g,d),g}})();function u(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}var p=(function(){function h(g,w){u(this,h),this.quill=g,this.options=w,this.modules={}}return s(h,[{key:"init",value:function(){var w=this;Object.keys(this.options.modules).forEach(function(d){w.modules[d]==null&&w.addModule(d)})}},{key:"addModule",value:function(w){var d=this.quill.constructor.import("modules/"+w);return this.modules[w]=new d(this.quill,this.options.modules[w]||{}),this.modules[w]}}]),h})();p.DEFAULTS={modules:{}},p.themes={default:p},a.default=p}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=(function(){function b(x,C){for(var N=0;N<C.length;N++){var j=C[N];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(x,j.key,j)}}return function(x,C,N){return C&&b(x.prototype,C),N&&b(x,N),x}})(),u=function b(x,C,N){x===null&&(x=Function.prototype);var j=Object.getOwnPropertyDescriptor(x,C);if(j===void 0){var L=Object.getPrototypeOf(x);return L===null?void 0:b(L,C,N)}else{if("value"in j)return j.value;var P=j.get;return P===void 0?void 0:P.call(N)}},p=i(0),h=d(p),g=i(7),w=d(g);function d(b){return b&&b.__esModule?b:{default:b}}function f(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function m(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:b}function k(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}var S="\uFEFF",_=(function(b){k(x,b);function x(C){f(this,x);var N=m(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,C));return N.contentNode=document.createElement("span"),N.contentNode.setAttribute("contenteditable",!1),[].slice.call(N.domNode.childNodes).forEach(function(j){N.contentNode.appendChild(j)}),N.leftGuard=document.createTextNode(S),N.rightGuard=document.createTextNode(S),N.domNode.appendChild(N.leftGuard),N.domNode.appendChild(N.contentNode),N.domNode.appendChild(N.rightGuard),N}return s(x,[{key:"index",value:function(N,j){return N===this.leftGuard?0:N===this.rightGuard?1:u(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"index",this).call(this,N,j)}},{key:"restore",value:function(N){var j=void 0,L=void 0,P=N.data.split(S).join("");if(N===this.leftGuard)if(this.prev instanceof w.default){var z=this.prev.length();this.prev.insertAt(z,P),j={startNode:this.prev.domNode,startOffset:z+P.length}}else L=document.createTextNode(P),this.parent.insertBefore(h.default.create(L),this),j={startNode:L,startOffset:P.length};else N===this.rightGuard&&(this.next instanceof w.default?(this.next.insertAt(0,P),j={startNode:this.next.domNode,startOffset:P.length}):(L=document.createTextNode(P),this.parent.insertBefore(h.default.create(L),this.next),j={startNode:L,startOffset:P.length}));return N.data=S,j}},{key:"update",value:function(N,j){var L=this;N.forEach(function(P){if(P.type==="characterData"&&(P.target===L.leftGuard||P.target===L.rightGuard)){var z=L.restore(P.target);z&&(j.range=z)}})}}]),x})(h.default.Embed);a.default=_}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.AlignStyle=a.AlignClass=a.AlignAttribute=void 0;var s=i(0),u=p(s);function p(f){return f&&f.__esModule?f:{default:f}}var h={scope:u.default.Scope.BLOCK,whitelist:["right","center","justify"]},g=new u.default.Attributor.Attribute("align","align",h),w=new u.default.Attributor.Class("align","ql-align",h),d=new u.default.Attributor.Style("align","text-align",h);a.AlignAttribute=g,a.AlignClass=w,a.AlignStyle=d}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.BackgroundStyle=a.BackgroundClass=void 0;var s=i(0),u=h(s),p=i(26);function h(d){return d&&d.__esModule?d:{default:d}}var g=new u.default.Attributor.Class("background","ql-bg",{scope:u.default.Scope.INLINE}),w=new p.ColorAttributor("background","background-color",{scope:u.default.Scope.INLINE});a.BackgroundClass=g,a.BackgroundStyle=w}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.DirectionStyle=a.DirectionClass=a.DirectionAttribute=void 0;var s=i(0),u=p(s);function p(f){return f&&f.__esModule?f:{default:f}}var h={scope:u.default.Scope.BLOCK,whitelist:["rtl"]},g=new u.default.Attributor.Attribute("direction","dir",h),w=new u.default.Attributor.Class("direction","ql-direction",h),d=new u.default.Attributor.Style("direction","direction",h);a.DirectionAttribute=g,a.DirectionClass=w,a.DirectionStyle=d}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.FontClass=a.FontStyle=void 0;var s=(function(){function b(x,C){for(var N=0;N<C.length;N++){var j=C[N];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(x,j.key,j)}}return function(x,C,N){return C&&b(x.prototype,C),N&&b(x,N),x}})(),u=function b(x,C,N){x===null&&(x=Function.prototype);var j=Object.getOwnPropertyDescriptor(x,C);if(j===void 0){var L=Object.getPrototypeOf(x);return L===null?void 0:b(L,C,N)}else{if("value"in j)return j.value;var P=j.get;return P===void 0?void 0:P.call(N)}},p=i(0),h=g(p);function g(b){return b&&b.__esModule?b:{default:b}}function w(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function d(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:b}function f(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}var m={scope:h.default.Scope.INLINE,whitelist:["serif","monospace"]},k=new h.default.Attributor.Class("font","ql-font",m),S=(function(b){f(x,b);function x(){return w(this,x),d(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return s(x,[{key:"value",value:function(N){return u(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"value",this).call(this,N).replace(/["']/g,"")}}]),x})(h.default.Attributor.Style),_=new S("font","font-family",m);a.FontStyle=_,a.FontClass=k}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.SizeStyle=a.SizeClass=void 0;var s=i(0),u=p(s);function p(w){return w&&w.__esModule?w:{default:w}}var h=new u.default.Attributor.Class("size","ql-size",{scope:u.default.Scope.INLINE,whitelist:["small","large","huge"]}),g=new u.default.Attributor.Style("size","font-size",{scope:u.default.Scope.INLINE,whitelist:["10px","18px","32px"]});a.SizeClass=h,a.SizeStyle=g}),(function(n,a,i){n.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.getLastChangeIndex=a.default=void 0;var s=(function(){function C(N,j){for(var L=0;L<j.length;L++){var P=j[L];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(N,P.key,P)}}return function(N,j,L){return j&&C(N.prototype,j),L&&C(N,L),N}})(),u=i(0),p=f(u),h=i(5),g=f(h),w=i(9),d=f(w);function f(C){return C&&C.__esModule?C:{default:C}}function m(C,N){if(!(C instanceof N))throw new TypeError("Cannot call a class as a function")}function k(C,N){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:C}function S(C,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);C.prototype=Object.create(N&&N.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(C,N):C.__proto__=N)}var _=(function(C){S(N,C);function N(j,L){m(this,N);var P=k(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,j,L));return P.lastRecorded=0,P.ignoreChange=!1,P.clear(),P.quill.on(g.default.events.EDITOR_CHANGE,function(z,H,F,T){z!==g.default.events.TEXT_CHANGE||P.ignoreChange||(!P.options.userOnly||T===g.default.sources.USER?P.record(H,F):P.transform(H))}),P.quill.keyboard.addBinding({key:"Z",shortKey:!0},P.undo.bind(P)),P.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},P.redo.bind(P)),/Win/i.test(navigator.platform)&&P.quill.keyboard.addBinding({key:"Y",shortKey:!0},P.redo.bind(P)),P}return s(N,[{key:"change",value:function(L,P){if(this.stack[L].length!==0){var z=this.stack[L].pop();this.stack[P].push(z),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(z[L],g.default.sources.USER),this.ignoreChange=!1;var H=x(z[L]);this.quill.setSelection(H)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(L,P){if(L.ops.length!==0){this.stack.redo=[];var z=this.quill.getContents().diff(P),H=Date.now();if(this.lastRecorded+this.options.delay>H&&this.stack.undo.length>0){var F=this.stack.undo.pop();z=z.compose(F.undo),L=F.redo.compose(L)}else this.lastRecorded=H;this.stack.undo.push({redo:L,undo:z}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(L){this.stack.undo.forEach(function(P){P.undo=L.transform(P.undo,!0),P.redo=L.transform(P.redo,!0)}),this.stack.redo.forEach(function(P){P.undo=L.transform(P.undo,!0),P.redo=L.transform(P.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),N})(d.default);_.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function b(C){var N=C.ops[C.ops.length-1];return N==null?!1:N.insert!=null?typeof N.insert=="string"&&N.insert.endsWith(` 303`):N.attributes!=null?Object.keys(N.attributes).some(function(j){return p.default.query(j,p.default.Scope.BLOCK)!=null}):!1}function x(C){var N=C.reduce(function(L,P){return L+=P.delete||0,L},0),j=C.length()-N;return b(C)&&(j-=1),j}a.default=_,a.getLastChangeIndex=x}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.BaseTooltip=void 0;var s=(function(){function K(X,ie){for(var oe=0;oe<ie.length;oe++){var ee=ie[oe];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(X,ee.key,ee)}}return function(X,ie,oe){return ie&&K(X.prototype,ie),oe&&K(X,oe),X}})(),u=function K(X,ie,oe){X===null&&(X=Function.prototype);var ee=Object.getOwnPropertyDescriptor(X,ie);if(ee===void 0){var ne=Object.getPrototypeOf(X);return ne===null?void 0:K(ne,ie,oe)}else{if("value"in ee)return ee.value;var ce=ee.get;return ce===void 0?void 0:ce.call(oe)}},p=i(3),h=H(p),g=i(2),w=H(g),d=i(8),f=H(d),m=i(23),k=H(m),S=i(34),_=H(S),b=i(59),x=H(b),C=i(60),N=H(C),j=i(28),L=H(j),P=i(61),z=H(P);function H(K){return K&&K.__esModule?K:{default:K}}function F(K,X){if(!(K instanceof X))throw new TypeError("Cannot call a class as a function")}function T(K,X){if(!K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X&&(typeof X=="object"||typeof X=="function")?X:K}function D(K,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof X);K.prototype=Object.create(X&&X.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),X&&(Object.setPrototypeOf?Object.setPrototypeOf(K,X):K.__proto__=X)}var B=[!1,"center","right","justify"],$=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],W=[!1,"serif","monospace"],Q=["1","2","3",!1],te=["small",!1,"large","huge"],Z=(function(K){D(X,K);function X(ie,oe){F(this,X);var ee=T(this,(X.__proto__||Object.getPrototypeOf(X)).call(this,ie,oe)),ne=function ce(ae){if(!document.body.contains(ie.root))return document.body.removeEventListener("click",ce);ee.tooltip!=null&&!ee.tooltip.root.contains(ae.target)&&document.activeElement!==ee.tooltip.textbox&&!ee.quill.hasFocus()&&ee.tooltip.hide(),ee.pickers!=null&&ee.pickers.forEach(function(Ae){Ae.container.contains(ae.target)||Ae.close()})};return ie.emitter.listenDOM("click",document.body,ne),ee}return s(X,[{key:"addModule",value:function(oe){var ee=u(X.prototype.__proto__||Object.getPrototypeOf(X.prototype),"addModule",this).call(this,oe);return oe==="toolbar"&&this.extendToolbar(ee),ee}},{key:"buildButtons",value:function(oe,ee){oe.forEach(function(ne){var ce=ne.getAttribute("class")||"";ce.split(/\s+/).forEach(function(ae){if(ae.startsWith("ql-")&&(ae=ae.slice(3),ee[ae]!=null))if(ae==="direction")ne.innerHTML=ee[ae][""]+ee[ae].rtl;else if(typeof ee[ae]=="string")ne.innerHTML=ee[ae];else{var Ae=ne.value||"";Ae!=null&&ee[ae][Ae]&&(ne.innerHTML=ee[ae][Ae])}})})}},{key:"buildPickers",value:function(oe,ee){var ne=this;this.pickers=oe.map(function(ae){if(ae.classList.contains("ql-align"))return ae.querySelector("option")==null&&M(ae,B),new N.default(ae,ee.align);if(ae.classList.contains("ql-background")||ae.classList.contains("ql-color")){var Ae=ae.classList.contains("ql-background")?"background":"color";return ae.querySelector("option")==null&&M(ae,$,Ae==="background"?"#ffffff":"#000000"),new x.default(ae,ee[Ae])}else return ae.querySelector("option")==null&&(ae.classList.contains("ql-font")?M(ae,W):ae.classList.contains("ql-header")?M(ae,Q):ae.classList.contains("ql-size")&&M(ae,te)),new L.default(ae)});var ce=function(){ne.pickers.forEach(function(Ae){Ae.update()})};this.quill.on(f.default.events.EDITOR_CHANGE,ce)}}]),X})(_.default);Z.DEFAULTS=(0,h.default)(!0,{},_.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var X=this,ie=this.container.querySelector("input.ql-image[type=file]");ie==null&&(ie=document.createElement("input"),ie.setAttribute("type","file"),ie.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),ie.classList.add("ql-image"),ie.addEventListener("change",function(){if(ie.files!=null&&ie.files[0]!=null){var oe=new FileReader;oe.onload=function(ee){var ne=X.quill.getSelection(!0);X.quill.updateContents(new w.default().retain(ne.index).delete(ne.length).insert({image:ee.target.result}),f.default.sources.USER),X.quill.setSelection(ne.index+1,f.default.sources.SILENT),ie.value=""},oe.readAsDataURL(ie.files[0])}}),this.container.appendChild(ie)),ie.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var J=(function(K){D(X,K);function X(ie,oe){F(this,X);var ee=T(this,(X.__proto__||Object.getPrototypeOf(X)).call(this,ie,oe));return ee.textbox=ee.root.querySelector('input[type="text"]'),ee.listen(),ee}return s(X,[{key:"listen",value:function(){var oe=this;this.textbox.addEventListener("keydown",function(ee){k.default.match(ee,"enter")?(oe.save(),ee.preventDefault()):k.default.match(ee,"escape")&&(oe.cancel(),ee.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),ee!=null?this.textbox.value=ee:oe!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+oe)||""),this.root.setAttribute("data-mode",oe)}},{key:"restoreFocus",value:function(){var oe=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=oe}},{key:"save",value:function(){var oe=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var ee=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",oe,f.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",oe,f.default.sources.USER)),this.quill.root.scrollTop=ee;break}case"video":oe=V(oe);case"formula":{if(!oe)break;var ne=this.quill.getSelection(!0);if(ne!=null){var ce=ne.index+ne.length;this.quill.insertEmbed(ce,this.root.getAttribute("data-mode"),oe,f.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(ce+1," ",f.default.sources.USER),this.quill.setSelection(ce+2,f.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),X})(z.default);function V(K){var X=K.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||K.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return X?(X[1]||"https")+"://www.youtube.com/embed/"+X[2]+"?showinfo=0":(X=K.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(X[1]||"https")+"://player.vimeo.com/video/"+X[2]+"/":K}function M(K,X){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;X.forEach(function(oe){var ee=document.createElement("option");oe===ie?ee.setAttribute("selected","selected"):ee.setAttribute("value",oe),K.appendChild(ee)})}a.BaseTooltip=J,a.default=Z}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=(function(){function u(){this.head=this.tail=null,this.length=0}return u.prototype.append=function(){for(var p=[],h=0;h<arguments.length;h++)p[h]=arguments[h];this.insertBefore(p[0],null),p.length>1&&this.append.apply(this,p.slice(1))},u.prototype.contains=function(p){for(var h,g=this.iterator();h=g();)if(h===p)return!0;return!1},u.prototype.insertBefore=function(p,h){p&&(p.next=h,h!=null?(p.prev=h.prev,h.prev!=null&&(h.prev.next=p),h.prev=p,h===this.head&&(this.head=p)):this.tail!=null?(this.tail.next=p,p.prev=this.tail,this.tail=p):(p.prev=null,this.head=this.tail=p),this.length+=1)},u.prototype.offset=function(p){for(var h=0,g=this.head;g!=null;){if(g===p)return h;h+=g.length(),g=g.next}return-1},u.prototype.remove=function(p){this.contains(p)&&(p.prev!=null&&(p.prev.next=p.next),p.next!=null&&(p.next.prev=p.prev),p===this.head&&(this.head=p.next),p===this.tail&&(this.tail=p.prev),this.length-=1)},u.prototype.iterator=function(p){return p===void 0&&(p=this.head),function(){var h=p;return p!=null&&(p=p.next),h}},u.prototype.find=function(p,h){h===void 0&&(h=!1);for(var g,w=this.iterator();g=w();){var d=g.length();if(p<d||h&&p===d&&(g.next==null||g.next.length()!==0))return[g,p];p-=d}return[null,0]},u.prototype.forEach=function(p){for(var h,g=this.iterator();h=g();)p(h)},u.prototype.forEachAt=function(p,h,g){if(!(h<=0))for(var w=this.find(p),d=w[0],f=w[1],m,k=p-f,S=this.iterator(d);(m=S())&&k<p+h;){var _=m.length();p>k?g(m,p-k,Math.min(h,k+_-p)):g(m,0,Math.min(_,p+h-k)),k+=_}},u.prototype.map=function(p){return this.reduce(function(h,g){return h.push(p(g)),h},[])},u.prototype.reduce=function(p,h){for(var g,w=this.iterator();g=w();)h=p(h,g);return h},u})();a.default=s}),(function(n,a,i){var s=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var k in m)m.hasOwnProperty(k)&&(f[k]=m[k])};return function(f,m){d(f,m);function k(){this.constructor=f}f.prototype=m===null?Object.create(m):(k.prototype=m.prototype,new k)}})();Object.defineProperty(a,"__esModule",{value:!0});var u=i(17),p=i(1),h={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},g=100,w=(function(d){s(f,d);function f(m){var k=d.call(this,m)||this;return k.scroll=k,k.observer=new MutationObserver(function(S){k.update(S)}),k.observer.observe(k.domNode,h),k.attach(),k}return f.prototype.detach=function(){d.prototype.detach.call(this),this.observer.disconnect()},f.prototype.deleteAt=function(m,k){this.update(),m===0&&k===this.length()?this.children.forEach(function(S){S.remove()}):d.prototype.deleteAt.call(this,m,k)},f.prototype.formatAt=function(m,k,S,_){this.update(),d.prototype.formatAt.call(this,m,k,S,_)},f.prototype.insertAt=function(m,k,S){this.update(),d.prototype.insertAt.call(this,m,k,S)},f.prototype.optimize=function(m,k){var S=this;m===void 0&&(m=[]),k===void 0&&(k={}),d.prototype.optimize.call(this,k);for(var _=[].slice.call(this.observer.takeRecords());_.length>0;)m.push(_.pop());for(var b=function(j,L){L===void 0&&(L=!0),!(j==null||j===S)&&j.domNode.parentNode!=null&&(j.domNode[p.DATA_KEY].mutations==null&&(j.domNode[p.DATA_KEY].mutations=[]),L&&b(j.parent))},x=function(j){j.domNode[p.DATA_KEY]==null||j.domNode[p.DATA_KEY].mutations==null||(j instanceof u.default&&j.children.forEach(x),j.optimize(k))},C=m,N=0;C.length>0;N+=1){if(N>=g)throw new Error("[Parchment] Maximum optimize iterations reached");for(C.forEach(function(j){var L=p.find(j.target,!0);L!=null&&(L.domNode===j.target&&(j.type==="childList"?(b(p.find(j.previousSibling,!1)),[].forEach.call(j.addedNodes,function(P){var z=p.find(P,!1);b(z,!1),z instanceof u.default&&z.children.forEach(function(H){b(H,!1)})})):j.type==="attributes"&&b(L.prev)),b(L))}),this.children.forEach(x),C=[].slice.call(this.observer.takeRecords()),_=C.slice();_.length>0;)m.push(_.pop())}},f.prototype.update=function(m,k){var S=this;k===void 0&&(k={}),m=m||this.observer.takeRecords(),m.map(function(_){var b=p.find(_.target,!0);return b==null?null:b.domNode[p.DATA_KEY].mutations==null?(b.domNode[p.DATA_KEY].mutations=[_],b):(b.domNode[p.DATA_KEY].mutations.push(_),null)}).forEach(function(_){_==null||_===S||_.domNode[p.DATA_KEY]==null||_.update(_.domNode[p.DATA_KEY].mutations||[],k)}),this.domNode[p.DATA_KEY].mutations!=null&&d.prototype.update.call(this,this.domNode[p.DATA_KEY].mutations,k),this.optimize(m,k)},f.blotName="scroll",f.defaultChild="block",f.scope=p.Scope.BLOCK_BLOT,f.tagName="DIV",f})(u.default);a.default=w}),(function(n,a,i){var s=this&&this.__extends||(function(){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var m in f)f.hasOwnProperty(m)&&(d[m]=f[m])};return function(d,f){w(d,f);function m(){this.constructor=d}d.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})();Object.defineProperty(a,"__esModule",{value:!0});var u=i(18),p=i(1);function h(w,d){if(Object.keys(w).length!==Object.keys(d).length)return!1;for(var f in w)if(w[f]!==d[f])return!1;return!0}var g=(function(w){s(d,w);function d(){return w!==null&&w.apply(this,arguments)||this}return d.formats=function(f){if(f.tagName!==d.tagName)return w.formats.call(this,f)},d.prototype.format=function(f,m){var k=this;f===this.statics.blotName&&!m?(this.children.forEach(function(S){S instanceof u.default||(S=S.wrap(d.blotName,!0)),k.attributes.copy(S)}),this.unwrap()):w.prototype.format.call(this,f,m)},d.prototype.formatAt=function(f,m,k,S){if(this.formats()[k]!=null||p.query(k,p.Scope.ATTRIBUTE)){var _=this.isolate(f,m);_.format(k,S)}else w.prototype.formatAt.call(this,f,m,k,S)},d.prototype.optimize=function(f){w.prototype.optimize.call(this,f);var m=this.formats();if(Object.keys(m).length===0)return this.unwrap();var k=this.next;k instanceof d&&k.prev===this&&h(m,k.formats())&&(k.moveChildren(this),k.remove())},d.blotName="inline",d.scope=p.Scope.INLINE_BLOT,d.tagName="SPAN",d})(u.default);a.default=g}),(function(n,a,i){var s=this&&this.__extends||(function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,d){w.__proto__=d}||function(w,d){for(var f in d)d.hasOwnProperty(f)&&(w[f]=d[f])};return function(w,d){g(w,d);function f(){this.constructor=w}w.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}})();Object.defineProperty(a,"__esModule",{value:!0});var u=i(18),p=i(1),h=(function(g){s(w,g);function w(){return g!==null&&g.apply(this,arguments)||this}return w.formats=function(d){var f=p.query(w.blotName).tagName;if(d.tagName!==f)return g.formats.call(this,d)},w.prototype.format=function(d,f){p.query(d,p.Scope.BLOCK)!=null&&(d===this.statics.blotName&&!f?this.replaceWith(w.blotName):g.prototype.format.call(this,d,f))},w.prototype.formatAt=function(d,f,m,k){p.query(m,p.Scope.BLOCK)!=null?this.format(m,k):g.prototype.formatAt.call(this,d,f,m,k)},w.prototype.insertAt=function(d,f,m){if(m==null||p.query(f,p.Scope.INLINE)!=null)g.prototype.insertAt.call(this,d,f,m);else{var k=this.split(d),S=p.create(f,m);k.parent.insertBefore(S,k)}},w.prototype.update=function(d,f){navigator.userAgent.match(/Trident/)?this.build():g.prototype.update.call(this,d,f)},w.blotName="block",w.scope=p.Scope.BLOCK_BLOT,w.tagName="P",w})(u.default);a.default=h}),(function(n,a,i){var s=this&&this.__extends||(function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,w){g.__proto__=w}||function(g,w){for(var d in w)w.hasOwnProperty(d)&&(g[d]=w[d])};return function(g,w){h(g,w);function d(){this.constructor=g}g.prototype=w===null?Object.create(w):(d.prototype=w.prototype,new d)}})();Object.defineProperty(a,"__esModule",{value:!0});var u=i(19),p=(function(h){s(g,h);function g(){return h!==null&&h.apply(this,arguments)||this}return g.formats=function(w){},g.prototype.format=function(w,d){h.prototype.formatAt.call(this,0,this.length(),w,d)},g.prototype.formatAt=function(w,d,f,m){w===0&&d===this.length()?this.format(f,m):h.prototype.formatAt.call(this,w,d,f,m)},g.prototype.formats=function(){return this.statics.formats(this.domNode)},g})(u.default);a.default=p}),(function(n,a,i){var s=this&&this.__extends||(function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,d){w.__proto__=d}||function(w,d){for(var f in d)d.hasOwnProperty(f)&&(w[f]=d[f])};return function(w,d){g(w,d);function f(){this.constructor=w}w.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}})();Object.defineProperty(a,"__esModule",{value:!0});var u=i(19),p=i(1),h=(function(g){s(w,g);function w(d){var f=g.call(this,d)||this;return f.text=f.statics.value(f.domNode),f}return w.create=function(d){return document.createTextNode(d)},w.value=function(d){var f=d.data;return f.normalize&&(f=f.normalize()),f},w.prototype.deleteAt=function(d,f){this.domNode.data=this.text=this.text.slice(0,d)+this.text.slice(d+f)},w.prototype.index=function(d,f){return this.domNode===d?f:-1},w.prototype.insertAt=function(d,f,m){m==null?(this.text=this.text.slice(0,d)+f+this.text.slice(d),this.domNode.data=this.text):g.prototype.insertAt.call(this,d,f,m)},w.prototype.length=function(){return this.text.length},w.prototype.optimize=function(d){g.prototype.optimize.call(this,d),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof w&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},w.prototype.position=function(d,f){return[this.domNode,d]},w.prototype.split=function(d,f){if(f===void 0&&(f=!1),!f){if(d===0)return this;if(d===this.length())return this.next}var m=p.create(this.domNode.splitText(d));return this.parent.insertBefore(m,this.next),this.text=this.statics.value(this.domNode),m},w.prototype.update=function(d,f){var m=this;d.some(function(k){return k.type==="characterData"&&k.target===m.domNode})&&(this.text=this.statics.value(this.domNode))},w.prototype.value=function(){return this.text},w.blotName="text",w.scope=p.Scope.INLINE_BLOT,w})(u.default);a.default=h}),(function(n,a,i){var s=document.createElement("div");if(s.classList.toggle("test-class",!1),s.classList.contains("test-class")){var u=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(p,h){return arguments.length>1&&!this.contains(p)==!h?h:u.call(this,p)}}String.prototype.startsWith||(String.prototype.startsWith=function(p,h){return h=h||0,this.substr(h,p.length)===p}),String.prototype.endsWith||(String.prototype.endsWith=function(p,h){var g=this.toString();(typeof h!="number"||!isFinite(h)||Math.floor(h)!==h||h>g.length)&&(h=g.length),h-=p.length;var w=g.indexOf(p,h);return w!==-1&&w===h}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(h){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof h!="function")throw new TypeError("predicate must be a function");for(var g=Object(this),w=g.length>>>0,d=arguments[1],f,m=0;m<w;m++)if(f=g[m],h.call(d,f,m,g))return f}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(n,a){var i=-1,s=1,u=0;function p(N,j,L){if(N==j)return N?[[u,N]]:[];(L<0||N.length<L)&&(L=null);var P=d(N,j),z=N.substring(0,P);N=N.substring(P),j=j.substring(P),P=f(N,j);var H=N.substring(N.length-P);N=N.substring(0,N.length-P),j=j.substring(0,j.length-P);var F=h(N,j);return z&&F.unshift([u,z]),H&&F.push([u,H]),k(F),L!=null&&(F=b(F,L)),F=x(F),F}function h(N,j){var L;if(!N)return[[s,j]];if(!j)return[[i,N]];var P=N.length>j.length?N:j,z=N.length>j.length?j:N,H=P.indexOf(z);if(H!=-1)return L=[[s,P.substring(0,H)],[u,z],[s,P.substring(H+z.length)]],N.length>j.length&&(L[0][0]=L[2][0]=i),L;if(z.length==1)return[[i,N],[s,j]];var F=m(N,j);if(F){var T=F[0],D=F[1],B=F[2],$=F[3],W=F[4],Q=p(T,B),te=p(D,$);return Q.concat([[u,W]],te)}return g(N,j)}function g(N,j){for(var L=N.length,P=j.length,z=Math.ceil((L+P)/2),H=z,F=2*z,T=new Array(F),D=new Array(F),B=0;B<F;B++)T[B]=-1,D[B]=-1;T[H+1]=0,D[H+1]=0;for(var $=L-P,W=$%2!=0,Q=0,te=0,Z=0,J=0,V=0;V<z;V++){for(var M=-V+Q;M<=V-te;M+=2){var K=H+M,X;M==-V||M!=V&&T[K-1]<T[K+1]?X=T[K+1]:X=T[K-1]+1;for(var ie=X-M;X<L&&ie<P&&N.charAt(X)==j.charAt(ie);)X++,ie++;if(T[K]=X,X>L)te+=2;else if(ie>P)Q+=2;else if(W){var oe=H+$-M;if(oe>=0&&oe<F&&D[oe]!=-1){var ee=L-D[oe];if(X>=ee)return w(N,j,X,ie)}}}for(var ne=-V+Z;ne<=V-J;ne+=2){var oe=H+ne,ee;ne==-V||ne!=V&&D[oe-1]<D[oe+1]?ee=D[oe+1]:ee=D[oe-1]+1;for(var ce=ee-ne;ee<L&&ce<P&&N.charAt(L-ee-1)==j.charAt(P-ce-1);)ee++,ce++;if(D[oe]=ee,ee>L)J+=2;else if(ce>P)Z+=2;else if(!W){var K=H+$-ne;if(K>=0&&K<F&&T[K]!=-1){var X=T[K],ie=H+X-K;if(ee=L-ee,X>=ee)return w(N,j,X,ie)}}}}return[[i,N],[s,j]]}function w(N,j,L,P){var z=N.substring(0,L),H=j.substring(0,P),F=N.substring(L),T=j.substring(P),D=p(z,H),B=p(F,T);return D.concat(B)}function d(N,j){if(!N||!j||N.charAt(0)!=j.charAt(0))return 0;for(var L=0,P=Math.min(N.length,j.length),z=P,H=0;L<z;)N.substring(H,z)==j.substring(H,z)?(L=z,H=L):P=z,z=Math.floor((P-L)/2+L);return z}function f(N,j){if(!N||!j||N.charAt(N.length-1)!=j.charAt(j.length-1))return 0;for(var L=0,P=Math.min(N.length,j.length),z=P,H=0;L<z;)N.substring(N.length-z,N.length-H)==j.substring(j.length-z,j.length-H)?(L=z,H=L):P=z,z=Math.floor((P-L)/2+L);return z}function m(N,j){var L=N.length>j.length?N:j,P=N.length>j.length?j:N;if(L.length<4||P.length*2<L.length)return null;function z(te,Z,J){for(var V=te.substring(J,J+Math.floor(te.length/4)),M=-1,K="",X,ie,oe,ee;(M=Z.indexOf(V,M+1))!=-1;){var ne=d(te.substring(J),Z.substring(M)),ce=f(te.substring(0,J),Z.substring(0,M));K.length<ce+ne&&(K=Z.substring(M-ce,M)+Z.substring(M,M+ne),X=te.substring(0,J-ce),ie=te.substring(J+ne),oe=Z.substring(0,M-ce),ee=Z.substring(M+ne))}return K.length*2>=te.length?[X,ie,oe,ee,K]:null}var H=z(L,P,Math.ceil(L.length/4)),F=z(L,P,Math.ceil(L.length/2)),T;if(!H&&!F)return null;F?H?T=H[4].length>F[4].length?H:F:T=F:T=H;var D,B,$,W;N.length>j.length?(D=T[0],B=T[1],$=T[2],W=T[3]):($=T[0],W=T[1],D=T[2],B=T[3]);var Q=T[4];return[D,B,$,W,Q]}function k(N){N.push([u,""]);for(var j=0,L=0,P=0,z="",H="",F;j<N.length;)switch(N[j][0]){case s:P++,H+=N[j][1],j++;break;case i:L++,z+=N[j][1],j++;break;case u:L+P>1?(L!==0&&P!==0&&(F=d(H,z),F!==0&&(j-L-P>0&&N[j-L-P-1][0]==u?N[j-L-P-1][1]+=H.substring(0,F):(N.splice(0,0,[u,H.substring(0,F)]),j++),H=H.substring(F),z=z.substring(F)),F=f(H,z),F!==0&&(N[j][1]=H.substring(H.length-F)+N[j][1],H=H.substring(0,H.length-F),z=z.substring(0,z.length-F))),L===0?N.splice(j-P,L+P,[s,H]):P===0?N.splice(j-L,L+P,[i,z]):N.splice(j-L-P,L+P,[i,z],[s,H]),j=j-L-P+(L?1:0)+(P?1:0)+1):j!==0&&N[j-1][0]==u?(N[j-1][1]+=N[j][1],N.splice(j,1)):j++,P=0,L=0,z="",H="";break}N[N.length-1][1]===""&&N.pop();var T=!1;for(j=1;j<N.length-1;)N[j-1][0]==u&&N[j+1][0]==u&&(N[j][1].substring(N[j][1].length-N[j-1][1].length)==N[j-1][1]?(N[j][1]=N[j-1][1]+N[j][1].substring(0,N[j][1].length-N[j-1][1].length),N[j+1][1]=N[j-1][1]+N[j+1][1],N.splice(j-1,1),T=!0):N[j][1].substring(0,N[j+1][1].length)==N[j+1][1]&&(N[j-1][1]+=N[j+1][1],N[j][1]=N[j][1].substring(N[j+1][1].length)+N[j+1][1],N.splice(j+1,1),T=!0)),j++;T&&k(N)}var S=p;S.INSERT=s,S.DELETE=i,S.EQUAL=u,n.exports=S;function _(N,j){if(j===0)return[u,N];for(var L=0,P=0;P<N.length;P++){var z=N[P];if(z[0]===i||z[0]===u){var H=L+z[1].length;if(j===H)return[P+1,N];if(j<H){N=N.slice();var F=j-L,T=[z[0],z[1].slice(0,F)],D=[z[0],z[1].slice(F)];return N.splice(P,1,T,D),[P+1,N]}else L=H}}throw new Error("cursor_pos is out of bounds!")}function b(N,j){var L=_(N,j),P=L[1],z=L[0],H=P[z],F=P[z+1];if(H==null)return N;if(H[0]!==u)return N;if(F!=null&&H[1]+F[1]===F[1]+H[1])return P.splice(z,2,F,H),C(P,z,2);if(F!=null&&F[1].indexOf(H[1])===0){P.splice(z,2,[F[0],H[1]],[0,H[1]]);var T=F[1].slice(H[1].length);return T.length>0&&P.splice(z+2,0,[F[0],T]),C(P,z,3)}else return N}function x(N){for(var j=!1,L=function(F){return F.charCodeAt(0)>=56320&&F.charCodeAt(0)<=57343},P=function(F){return F.charCodeAt(F.length-1)>=55296&&F.charCodeAt(F.length-1)<=56319},z=2;z<N.length;z+=1)N[z-2][0]===u&&P(N[z-2][1])&&N[z-1][0]===i&&L(N[z-1][1])&&N[z][0]===s&&L(N[z][1])&&(j=!0,N[z-1][1]=N[z-2][1].slice(-1)+N[z-1][1],N[z][1]=N[z-2][1].slice(-1)+N[z][1],N[z-2][1]=N[z-2][1].slice(0,-1));if(!j)return N;for(var H=[],z=0;z<N.length;z+=1)N[z][1].length>0&&H.push(N[z]);return H}function C(N,j,L){for(var P=j+L-1;P>=0&&P>=j-1;P--)if(P+1<N.length){var z=N[P],H=N[P+1];z[0]===H[1]&&N.splice(P,2,[z[0],z[1]+H[1]])}return N}}),(function(n,a){a=n.exports=typeof Object.keys=="function"?Object.keys:i,a.shim=i;function i(s){var u=[];for(var p in s)u.push(p);return u}}),(function(n,a){var i=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";a=n.exports=i?s:u,a.supported=s;function s(p){return Object.prototype.toString.call(p)=="[object Arguments]"}a.unsupported=u;function u(p){return p&&typeof p=="object"&&typeof p.length=="number"&&Object.prototype.hasOwnProperty.call(p,"callee")&&!Object.prototype.propertyIsEnumerable.call(p,"callee")||!1}}),(function(n,a){var i=Object.prototype.hasOwnProperty,s="~";function u(){}Object.create&&(u.prototype=Object.create(null),new u().__proto__||(s=!1));function p(g,w,d){this.fn=g,this.context=w,this.once=d||!1}function h(){this._events=new u,this._eventsCount=0}h.prototype.eventNames=function(){var w=[],d,f;if(this._eventsCount===0)return w;for(f in d=this._events)i.call(d,f)&&w.push(s?f.slice(1):f);return Object.getOwnPropertySymbols?w.concat(Object.getOwnPropertySymbols(d)):w},h.prototype.listeners=function(w,d){var f=s?s+w:w,m=this._events[f];if(d)return!!m;if(!m)return[];if(m.fn)return[m.fn];for(var k=0,S=m.length,_=new Array(S);k<S;k++)_[k]=m[k].fn;return _},h.prototype.emit=function(w,d,f,m,k,S){var _=s?s+w:w;if(!this._events[_])return!1;var b=this._events[_],x=arguments.length,C,N;if(b.fn){switch(b.once&&this.removeListener(w,b.fn,void 0,!0),x){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,d),!0;case 3:return b.fn.call(b.context,d,f),!0;case 4:return b.fn.call(b.context,d,f,m),!0;case 5:return b.fn.call(b.context,d,f,m,k),!0;case 6:return b.fn.call(b.context,d,f,m,k,S),!0}for(N=1,C=new Array(x-1);N<x;N++)C[N-1]=arguments[N];b.fn.apply(b.context,C)}else{var j=b.length,L;for(N=0;N<j;N++)switch(b[N].once&&this.removeListener(w,b[N].fn,void 0,!0),x){case 1:b[N].fn.call(b[N].context);break;case 2:b[N].fn.call(b[N].context,d);break;case 3:b[N].fn.call(b[N].context,d,f);break;case 4:b[N].fn.call(b[N].context,d,f,m);break;default:if(!C)for(L=1,C=new Array(x-1);L<x;L++)C[L-1]=arguments[L];b[N].fn.apply(b[N].context,C)}}return!0},h.prototype.on=function(w,d,f){var m=new p(d,f||this),k=s?s+w:w;return this._events[k]?this._events[k].fn?this._events[k]=[this._events[k],m]:this._events[k].push(m):(this._events[k]=m,this._eventsCount++),this},h.prototype.once=function(w,d,f){var m=new p(d,f||this,!0),k=s?s+w:w;return this._events[k]?this._events[k].fn?this._events[k]=[this._events[k],m]:this._events[k].push(m):(this._events[k]=m,this._eventsCount++),this},h.prototype.removeListener=function(w,d,f,m){var k=s?s+w:w;if(!this._events[k])return this;if(!d)return--this._eventsCount===0?this._events=new u:delete this._events[k],this;var S=this._events[k];if(S.fn)S.fn===d&&(!m||S.once)&&(!f||S.context===f)&&(--this._eventsCount===0?this._events=new u:delete this._events[k]);else{for(var _=0,b=[],x=S.length;_<x;_++)(S[_].fn!==d||m&&!S[_].once||f&&S[_].context!==f)&&b.push(S[_]);b.length?this._events[k]=b.length===1?b[0]:b:--this._eventsCount===0?this._events=new u:delete this._events[k]}return this},h.prototype.removeAllListeners=function(w){var d;return w?(d=s?s+w:w,this._events[d]&&(--this._eventsCount===0?this._events=new u:delete this._events[d])):(this._events=new u,this._eventsCount=0),this},h.prototype.off=h.prototype.removeListener,h.prototype.addListener=h.prototype.on,h.prototype.setMaxListeners=function(){return this},h.prefixed=s,h.EventEmitter=h,typeof n<"u"&&(n.exports=h)}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.matchText=a.matchSpacing=a.matchNewline=a.matchBlot=a.matchAttributor=a.default=void 0;var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ue){return typeof ue}:function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},u=(function(){function ue(ye,Te){var Re=[],Pe=!0,at=!1,ft=void 0;try{for(var dt=ye[Symbol.iterator](),Bt;!(Pe=(Bt=dt.next()).done)&&(Re.push(Bt.value),!(Te&&Re.length===Te));Pe=!0);}catch(Ht){at=!0,ft=Ht}finally{try{!Pe&&dt.return&&dt.return()}finally{if(at)throw ft}}return Re}return function(ye,Te){if(Array.isArray(ye))return ye;if(Symbol.iterator in Object(ye))return ue(ye,Te);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),p=(function(){function ue(ye,Te){for(var Re=0;Re<Te.length;Re++){var Pe=Te[Re];Pe.enumerable=Pe.enumerable||!1,Pe.configurable=!0,"value"in Pe&&(Pe.writable=!0),Object.defineProperty(ye,Pe.key,Pe)}}return function(ye,Te,Re){return Te&&ue(ye.prototype,Te),Re&&ue(ye,Re),ye}})(),h=i(3),g=D(h),w=i(2),d=D(w),f=i(0),m=D(f),k=i(5),S=D(k),_=i(10),b=D(_),x=i(9),C=D(x),N=i(36),j=i(37),L=i(13),P=D(L),z=i(26),H=i(38),F=i(39),T=i(40);function D(ue){return ue&&ue.__esModule?ue:{default:ue}}function B(ue,ye,Te){return ye in ue?Object.defineProperty(ue,ye,{value:Te,enumerable:!0,configurable:!0,writable:!0}):ue[ye]=Te,ue}function $(ue,ye){if(!(ue instanceof ye))throw new TypeError("Cannot call a class as a function")}function W(ue,ye){if(!ue)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye&&(typeof ye=="object"||typeof ye=="function")?ye:ue}function Q(ue,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ye);ue.prototype=Object.create(ye&&ye.prototype,{constructor:{value:ue,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(ue,ye):ue.__proto__=ye)}var te=(0,b.default)("quill:clipboard"),Z="__ql-matcher",J=[[Node.TEXT_NODE,bt],[Node.TEXT_NODE,Xe],["br",Ie],[Node.ELEMENT_NODE,Xe],[Node.ELEMENT_NODE,Ae],[Node.ELEMENT_NODE,ot],[Node.ELEMENT_NODE,ae],[Node.ELEMENT_NODE,Ot],["li",ze],["b",ce.bind(ce,"bold")],["i",ce.bind(ce,"italic")],["style",je]],V=[N.AlignAttribute,H.DirectionAttribute].reduce(function(ue,ye){return ue[ye.keyName]=ye,ue},{}),M=[N.AlignStyle,j.BackgroundStyle,z.ColorStyle,H.DirectionStyle,F.FontStyle,T.SizeStyle].reduce(function(ue,ye){return ue[ye.keyName]=ye,ue},{}),K=(function(ue){Q(ye,ue);function ye(Te,Re){$(this,ye);var Pe=W(this,(ye.__proto__||Object.getPrototypeOf(ye)).call(this,Te,Re));return Pe.quill.root.addEventListener("paste",Pe.onPaste.bind(Pe)),Pe.container=Pe.quill.addContainer("ql-clipboard"),Pe.container.setAttribute("contenteditable",!0),Pe.container.setAttribute("tabindex",-1),Pe.matchers=[],J.concat(Pe.options.matchers).forEach(function(at){var ft=u(at,2),dt=ft[0],Bt=ft[1];!Re.matchVisual&&Bt===ot||Pe.addMatcher(dt,Bt)}),Pe}return p(ye,[{key:"addMatcher",value:function(Re,Pe){this.matchers.push([Re,Pe])}},{key:"convert",value:function(Re){if(typeof Re=="string")return this.container.innerHTML=Re.replace(/\>\r?\n +\</g,"><"),this.convert();var Pe=this.quill.getFormat(this.quill.selection.savedRange.index);if(Pe[P.default.blotName]){var at=this.container.innerText;return this.container.innerHTML="",new d.default().insert(at,B({},P.default.blotName,Pe[P.default.blotName]))}var ft=this.prepareMatching(),dt=u(ft,2),Bt=dt[0],Ht=dt[1],At=ne(this.container,Bt,Ht);return oe(At,` 304`)&&At.ops[At.ops.length-1].attributes==null&&(At=At.compose(new d.default().retain(At.length()-1).delete(1))),te.log("convert",this.container.innerHTML,At),this.container.innerHTML="",At}},{key:"dangerouslyPasteHTML",value:function(Re,Pe){var at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:S.default.sources.API;if(typeof Re=="string")this.quill.setContents(this.convert(Re),Pe),this.quill.setSelection(0,S.default.sources.SILENT);else{var ft=this.convert(Pe);this.quill.updateContents(new d.default().retain(Re).concat(ft),at),this.quill.setSelection(Re+ft.length(),S.default.sources.SILENT)}}},{key:"onPaste",value:function(Re){var Pe=this;if(!(Re.defaultPrevented||!this.quill.isEnabled())){var at=this.quill.getSelection(),ft=new d.default().retain(at.index),dt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(S.default.sources.SILENT),setTimeout(function(){ft=ft.concat(Pe.convert()).delete(at.length),Pe.quill.updateContents(ft,S.default.sources.USER),Pe.quill.setSelection(ft.length()-at.length,S.default.sources.SILENT),Pe.quill.scrollingContainer.scrollTop=dt,Pe.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Re=this,Pe=[],at=[];return this.matchers.forEach(function(ft){var dt=u(ft,2),Bt=dt[0],Ht=dt[1];switch(Bt){case Node.TEXT_NODE:at.push(Ht);break;case Node.ELEMENT_NODE:Pe.push(Ht);break;default:[].forEach.call(Re.container.querySelectorAll(Bt),function(At){At[Z]=At[Z]||[],At[Z].push(Ht)});break}}),[Pe,at]}}]),ye})(C.default);K.DEFAULTS={matchers:[],matchVisual:!0};function X(ue,ye,Te){return(typeof ye>"u"?"undefined":s(ye))==="object"?Object.keys(ye).reduce(function(Re,Pe){return X(Re,Pe,ye[Pe])},ue):ue.reduce(function(Re,Pe){return Pe.attributes&&Pe.attributes[ye]?Re.push(Pe):Re.insert(Pe.insert,(0,g.default)({},B({},ye,Te),Pe.attributes))},new d.default)}function ie(ue){if(ue.nodeType!==Node.ELEMENT_NODE)return{};var ye="__ql-computed-style";return ue[ye]||(ue[ye]=window.getComputedStyle(ue))}function oe(ue,ye){for(var Te="",Re=ue.ops.length-1;Re>=0&&Te.length<ye.length;--Re){var Pe=ue.ops[Re];if(typeof Pe.insert!="string")break;Te=Pe.insert+Te}return Te.slice(-1*ye.length)===ye}function ee(ue){if(ue.childNodes.length===0)return!1;var ye=ie(ue);return["block","list-item"].indexOf(ye.display)>-1}function ne(ue,ye,Te){return ue.nodeType===ue.TEXT_NODE?Te.reduce(function(Re,Pe){return Pe(ue,Re)},new d.default):ue.nodeType===ue.ELEMENT_NODE?[].reduce.call(ue.childNodes||[],function(Re,Pe){var at=ne(Pe,ye,Te);return Pe.nodeType===ue.ELEMENT_NODE&&(at=ye.reduce(function(ft,dt){return dt(Pe,ft)},at),at=(Pe[Z]||[]).reduce(function(ft,dt){return dt(Pe,ft)},at)),Re.concat(at)},new d.default):new d.default}function ce(ue,ye,Te){return X(Te,ue,!0)}function ae(ue,ye){var Te=m.default.Attributor.Attribute.keys(ue),Re=m.default.Attributor.Class.keys(ue),Pe=m.default.Attributor.Style.keys(ue),at={};return Te.concat(Re).concat(Pe).forEach(function(ft){var dt=m.default.query(ft,m.default.Scope.ATTRIBUTE);dt!=null&&(at[dt.attrName]=dt.value(ue),at[dt.attrName])||(dt=V[ft],dt!=null&&(dt.attrName===ft||dt.keyName===ft)&&(at[dt.attrName]=dt.value(ue)||void 0),dt=M[ft],dt!=null&&(dt.attrName===ft||dt.keyName===ft)&&(dt=M[ft],at[dt.attrName]=dt.value(ue)||void 0))}),Object.keys(at).length>0&&(ye=X(ye,at)),ye}function Ae(ue,ye){var Te=m.default.query(ue);if(Te==null)return ye;if(Te.prototype instanceof m.default.Embed){var Re={},Pe=Te.value(ue);Pe!=null&&(Re[Te.blotName]=Pe,ye=new d.default().insert(Re,Te.formats(ue)))}else typeof Te.formats=="function"&&(ye=X(ye,Te.blotName,Te.formats(ue)));return ye}function Ie(ue,ye){return oe(ye,` 305`)||ye.insert(` 306`),ye}function je(){return new d.default}function ze(ue,ye){var Te=m.default.query(ue);if(Te==null||Te.blotName!=="list-item"||!oe(ye,` 307`))return ye;for(var Re=-1,Pe=ue.parentNode;!Pe.classList.contains("ql-clipboard");)(m.default.query(Pe)||{}).blotName==="list"&&(Re+=1),Pe=Pe.parentNode;return Re<=0?ye:ye.compose(new d.default().retain(ye.length()-1).retain(1,{indent:Re}))}function Xe(ue,ye){return oe(ye,` 308`)||(ee(ue)||ye.length()>0&&ue.nextSibling&&ee(ue.nextSibling))&&ye.insert(` 309`),ye}function ot(ue,ye){if(ee(ue)&&ue.nextElementSibling!=null&&!oe(ye,` 310 311`)){var Te=ue.offsetHeight+parseFloat(ie(ue).marginTop)+parseFloat(ie(ue).marginBottom);ue.nextElementSibling.offsetTop>ue.offsetTop+Te*1.5&&ye.insert(` 312`)}return ye}function Ot(ue,ye){var Te={},Re=ue.style||{};return Re.fontStyle&&ie(ue).fontStyle==="italic"&&(Te.italic=!0),Re.fontWeight&&(ie(ue).fontWeight.startsWith("bold")||parseInt(ie(ue).fontWeight)>=700)&&(Te.bold=!0),Object.keys(Te).length>0&&(ye=X(ye,Te)),parseFloat(Re.textIndent||0)>0&&(ye=new d.default().insert(" ").concat(ye)),ye}function bt(ue,ye){var Te=ue.data;if(ue.parentNode.tagName==="O:P")return ye.insert(Te.trim());if(Te.trim().length===0&&ue.parentNode.classList.contains("ql-clipboard"))return ye;if(!ie(ue.parentNode).whiteSpace.startsWith("pre")){var Re=function(at,ft){return ft=ft.replace(/[^\u00a0]/g,""),ft.length<1&&at?" ":ft};Te=Te.replace(/\r\n/g," ").replace(/\n/g," "),Te=Te.replace(/\s\s+/g,Re.bind(Re,!0)),(ue.previousSibling==null&&ee(ue.parentNode)||ue.previousSibling!=null&&ee(ue.previousSibling))&&(Te=Te.replace(/^\s+/,Re.bind(Re,!1))),(ue.nextSibling==null&&ee(ue.parentNode)||ue.nextSibling!=null&&ee(ue.nextSibling))&&(Te=Te.replace(/\s+$/,Re.bind(Re,!1)))}return ye.insert(Te)}a.default=K,a.matchAttributor=ae,a.matchBlot=Ae,a.matchNewline=Xe,a.matchSpacing=ot,a.matchText=bt}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=(function(){function k(S,_){for(var b=0;b<_.length;b++){var x=_[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(S,x.key,x)}}return function(S,_,b){return _&&k(S.prototype,_),b&&k(S,b),S}})(),u=function k(S,_,b){S===null&&(S=Function.prototype);var x=Object.getOwnPropertyDescriptor(S,_);if(x===void 0){var C=Object.getPrototypeOf(S);return C===null?void 0:k(C,_,b)}else{if("value"in x)return x.value;var N=x.get;return N===void 0?void 0:N.call(b)}},p=i(6),h=g(p);function g(k){return k&&k.__esModule?k:{default:k}}function w(k,S){if(!(k instanceof S))throw new TypeError("Cannot call a class as a function")}function d(k,S){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:k}function f(k,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);k.prototype=Object.create(S&&S.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(k,S):k.__proto__=S)}var m=(function(k){f(S,k);function S(){return w(this,S),d(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return s(S,[{key:"optimize",value:function(b){u(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"optimize",this).call(this,b),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return u(S.__proto__||Object.getPrototypeOf(S),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),S})(h.default);m.blotName="bold",m.tagName=["STRONG","B"],a.default=m}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.addControls=a.default=void 0;var s=(function(){function T(D,B){var $=[],W=!0,Q=!1,te=void 0;try{for(var Z=D[Symbol.iterator](),J;!(W=(J=Z.next()).done)&&($.push(J.value),!(B&&$.length===B));W=!0);}catch(V){Q=!0,te=V}finally{try{!W&&Z.return&&Z.return()}finally{if(Q)throw te}}return $}return function(D,B){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return T(D,B);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=(function(){function T(D,B){for(var $=0;$<B.length;$++){var W=B[$];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(D,W.key,W)}}return function(D,B,$){return B&&T(D.prototype,B),$&&T(D,$),D}})(),p=i(2),h=b(p),g=i(0),w=b(g),d=i(5),f=b(d),m=i(10),k=b(m),S=i(9),_=b(S);function b(T){return T&&T.__esModule?T:{default:T}}function x(T,D,B){return D in T?Object.defineProperty(T,D,{value:B,enumerable:!0,configurable:!0,writable:!0}):T[D]=B,T}function C(T,D){if(!(T instanceof D))throw new TypeError("Cannot call a class as a function")}function N(T,D){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:T}function j(T,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);T.prototype=Object.create(D&&D.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(T,D):T.__proto__=D)}var L=(0,k.default)("quill:toolbar"),P=(function(T){j(D,T);function D(B,$){C(this,D);var W=N(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,B,$));if(Array.isArray(W.options.container)){var Q=document.createElement("div");H(Q,W.options.container),B.container.parentNode.insertBefore(Q,B.container),W.container=Q}else typeof W.options.container=="string"?W.container=document.querySelector(W.options.container):W.container=W.options.container;if(!(W.container instanceof HTMLElement)){var te;return te=L.error("Container required for toolbar",W.options),N(W,te)}return W.container.classList.add("ql-toolbar"),W.controls=[],W.handlers={},Object.keys(W.options.handlers).forEach(function(Z){W.addHandler(Z,W.options.handlers[Z])}),[].forEach.call(W.container.querySelectorAll("button, select"),function(Z){W.attach(Z)}),W.quill.on(f.default.events.EDITOR_CHANGE,function(Z,J){Z===f.default.events.SELECTION_CHANGE&&W.update(J)}),W.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){var Z=W.quill.selection.getRange(),J=s(Z,1),V=J[0];W.update(V)}),W}return u(D,[{key:"addHandler",value:function($,W){this.handlers[$]=W}},{key:"attach",value:function($){var W=this,Q=[].find.call($.classList,function(Z){return Z.indexOf("ql-")===0});if(Q){if(Q=Q.slice(3),$.tagName==="BUTTON"&&$.setAttribute("type","button"),this.handlers[Q]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Q]==null){L.warn("ignoring attaching to disabled format",Q,$);return}if(w.default.query(Q)==null){L.warn("ignoring attaching to nonexistent format",Q,$);return}}var te=$.tagName==="SELECT"?"change":"click";$.addEventListener(te,function(Z){var J=void 0;if($.tagName==="SELECT"){if($.selectedIndex<0)return;var V=$.options[$.selectedIndex];V.hasAttribute("selected")?J=!1:J=V.value||!1}else $.classList.contains("ql-active")?J=!1:J=$.value||!$.hasAttribute("value"),Z.preventDefault();W.quill.focus();var M=W.quill.selection.getRange(),K=s(M,1),X=K[0];if(W.handlers[Q]!=null)W.handlers[Q].call(W,J);else if(w.default.query(Q).prototype instanceof w.default.Embed){if(J=prompt("Enter "+Q),!J)return;W.quill.updateContents(new h.default().retain(X.index).delete(X.length).insert(x({},Q,J)),f.default.sources.USER)}else W.quill.format(Q,J,f.default.sources.USER);W.update(X)}),this.controls.push([Q,$])}}},{key:"update",value:function($){var W=$==null?{}:this.quill.getFormat($);this.controls.forEach(function(Q){var te=s(Q,2),Z=te[0],J=te[1];if(J.tagName==="SELECT"){var V=void 0;if($==null)V=null;else if(W[Z]==null)V=J.querySelector("option[selected]");else if(!Array.isArray(W[Z])){var M=W[Z];typeof M=="string"&&(M=M.replace(/\"/g,'\\"')),V=J.querySelector('option[value="'+M+'"]')}V==null?(J.value="",J.selectedIndex=-1):V.selected=!0}else if($==null)J.classList.remove("ql-active");else if(J.hasAttribute("value")){var K=W[Z]===J.getAttribute("value")||W[Z]!=null&&W[Z].toString()===J.getAttribute("value")||W[Z]==null&&!J.getAttribute("value");J.classList.toggle("ql-active",K)}else J.classList.toggle("ql-active",W[Z]!=null)})}}]),D})(_.default);P.DEFAULTS={};function z(T,D,B){var $=document.createElement("button");$.setAttribute("type","button"),$.classList.add("ql-"+D),B!=null&&($.value=B),T.appendChild($)}function H(T,D){Array.isArray(D[0])||(D=[D]),D.forEach(function(B){var $=document.createElement("span");$.classList.add("ql-formats"),B.forEach(function(W){if(typeof W=="string")z($,W);else{var Q=Object.keys(W)[0],te=W[Q];Array.isArray(te)?F($,Q,te):z($,Q,te)}}),T.appendChild($)})}function F(T,D,B){var $=document.createElement("select");$.classList.add("ql-"+D),B.forEach(function(W){var Q=document.createElement("option");W!==!1?Q.setAttribute("value",W):Q.setAttribute("selected","selected"),$.appendChild(Q)}),T.appendChild($)}P.DEFAULTS={container:null,handlers:{clean:function(){var D=this,B=this.quill.getSelection();if(B!=null)if(B.length==0){var $=this.quill.getFormat();Object.keys($).forEach(function(W){w.default.query(W,w.default.Scope.INLINE)!=null&&D.quill.format(W,!1)})}else this.quill.removeFormat(B,f.default.sources.USER)},direction:function(D){var B=this.quill.getFormat().align;D==="rtl"&&B==null?this.quill.format("align","right",f.default.sources.USER):!D&&B==="right"&&this.quill.format("align",!1,f.default.sources.USER),this.quill.format("direction",D,f.default.sources.USER)},indent:function(D){var B=this.quill.getSelection(),$=this.quill.getFormat(B),W=parseInt($.indent||0);if(D==="+1"||D==="-1"){var Q=D==="+1"?1:-1;$.direction==="rtl"&&(Q*=-1),this.quill.format("indent",W+Q,f.default.sources.USER)}},link:function(D){D===!0&&(D=prompt("Enter link URL:")),this.quill.format("link",D,f.default.sources.USER)},list:function(D){var B=this.quill.getSelection(),$=this.quill.getFormat(B);D==="check"?$.list==="checked"||$.list==="unchecked"?this.quill.format("list",!1,f.default.sources.USER):this.quill.format("list","unchecked",f.default.sources.USER):this.quill.format("list",D,f.default.sources.USER)}}},a.default=P,a.addControls=H}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=(function(){function k(S,_){for(var b=0;b<_.length;b++){var x=_[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(S,x.key,x)}}return function(S,_,b){return _&&k(S.prototype,_),b&&k(S,b),S}})(),u=function k(S,_,b){S===null&&(S=Function.prototype);var x=Object.getOwnPropertyDescriptor(S,_);if(x===void 0){var C=Object.getPrototypeOf(S);return C===null?void 0:k(C,_,b)}else{if("value"in x)return x.value;var N=x.get;return N===void 0?void 0:N.call(b)}},p=i(28),h=g(p);function g(k){return k&&k.__esModule?k:{default:k}}function w(k,S){if(!(k instanceof S))throw new TypeError("Cannot call a class as a function")}function d(k,S){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:k}function f(k,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);k.prototype=Object.create(S&&S.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(k,S):k.__proto__=S)}var m=(function(k){f(S,k);function S(_,b){w(this,S);var x=d(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,_));return x.label.innerHTML=b,x.container.classList.add("ql-color-picker"),[].slice.call(x.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(C){C.classList.add("ql-primary")}),x}return s(S,[{key:"buildItem",value:function(b){var x=u(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"buildItem",this).call(this,b);return x.style.backgroundColor=b.getAttribute("value")||"",x}},{key:"selectItem",value:function(b,x){u(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"selectItem",this).call(this,b,x);var C=this.label.querySelector(".ql-color-label"),N=b&&b.getAttribute("data-value")||"";C&&(C.tagName==="line"?C.style.stroke=N:C.style.fill=N)}}]),S})(h.default);a.default=m}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=(function(){function k(S,_){for(var b=0;b<_.length;b++){var x=_[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(S,x.key,x)}}return function(S,_,b){return _&&k(S.prototype,_),b&&k(S,b),S}})(),u=function k(S,_,b){S===null&&(S=Function.prototype);var x=Object.getOwnPropertyDescriptor(S,_);if(x===void 0){var C=Object.getPrototypeOf(S);return C===null?void 0:k(C,_,b)}else{if("value"in x)return x.value;var N=x.get;return N===void 0?void 0:N.call(b)}},p=i(28),h=g(p);function g(k){return k&&k.__esModule?k:{default:k}}function w(k,S){if(!(k instanceof S))throw new TypeError("Cannot call a class as a function")}function d(k,S){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:k}function f(k,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);k.prototype=Object.create(S&&S.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(k,S):k.__proto__=S)}var m=(function(k){f(S,k);function S(_,b){w(this,S);var x=d(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,_));return x.container.classList.add("ql-icon-picker"),[].forEach.call(x.container.querySelectorAll(".ql-picker-item"),function(C){C.innerHTML=b[C.getAttribute("data-value")||""]}),x.defaultItem=x.container.querySelector(".ql-selected"),x.selectItem(x.defaultItem),x}return s(S,[{key:"selectItem",value:function(b,x){u(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"selectItem",this).call(this,b,x),b=b||this.defaultItem,this.label.innerHTML=b.innerHTML}}]),S})(h.default);a.default=m}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=(function(){function h(g,w){for(var d=0;d<w.length;d++){var f=w[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(g,f.key,f)}}return function(g,w,d){return w&&h(g.prototype,w),d&&h(g,d),g}})();function u(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}var p=(function(){function h(g,w){var d=this;u(this,h),this.quill=g,this.boundsContainer=w||document.body,this.root=g.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){d.root.style.marginTop=-1*d.quill.root.scrollTop+"px"}),this.hide()}return s(h,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(w){var d=w.left+w.width/2-this.root.offsetWidth/2,f=w.bottom+this.quill.root.scrollTop;this.root.style.left=d+"px",this.root.style.top=f+"px",this.root.classList.remove("ql-flip");var m=this.boundsContainer.getBoundingClientRect(),k=this.root.getBoundingClientRect(),S=0;if(k.right>m.right&&(S=m.right-k.right,this.root.style.left=d+S+"px"),k.left<m.left&&(S=m.left-k.left,this.root.style.left=d+S+"px"),k.bottom>m.bottom){var _=k.bottom-k.top,b=w.bottom-w.top+_;this.root.style.top=f-b+"px",this.root.classList.add("ql-flip")}return S}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),h})();a.default=p}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=(function(){function F(T,D){var B=[],$=!0,W=!1,Q=void 0;try{for(var te=T[Symbol.iterator](),Z;!($=(Z=te.next()).done)&&(B.push(Z.value),!(D&&B.length===D));$=!0);}catch(J){W=!0,Q=J}finally{try{!$&&te.return&&te.return()}finally{if(W)throw Q}}return B}return function(T,D){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return F(T,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=function F(T,D,B){T===null&&(T=Function.prototype);var $=Object.getOwnPropertyDescriptor(T,D);if($===void 0){var W=Object.getPrototypeOf(T);return W===null?void 0:F(W,D,B)}else{if("value"in $)return $.value;var Q=$.get;return Q===void 0?void 0:Q.call(B)}},p=(function(){function F(T,D){for(var B=0;B<D.length;B++){var $=D[B];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(T,$.key,$)}}return function(T,D,B){return D&&F(T.prototype,D),B&&F(T,B),T}})(),h=i(3),g=C(h),w=i(8),d=C(w),f=i(43),m=C(f),k=i(27),S=C(k),_=i(15),b=i(41),x=C(b);function C(F){return F&&F.__esModule?F:{default:F}}function N(F,T){if(!(F instanceof T))throw new TypeError("Cannot call a class as a function")}function j(F,T){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:F}function L(F,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);F.prototype=Object.create(T&&T.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(F,T):F.__proto__=T)}var P=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],z=(function(F){L(T,F);function T(D,B){N(this,T),B.modules.toolbar!=null&&B.modules.toolbar.container==null&&(B.modules.toolbar.container=P);var $=j(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,D,B));return $.quill.container.classList.add("ql-snow"),$}return p(T,[{key:"extendToolbar",value:function(B){B.container.classList.add("ql-snow"),this.buildButtons([].slice.call(B.container.querySelectorAll("button")),x.default),this.buildPickers([].slice.call(B.container.querySelectorAll("select")),x.default),this.tooltip=new H(this.quill,this.options.bounds),B.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function($,W){B.handlers.link.call(B,!W.format.link)})}}]),T})(m.default);z.DEFAULTS=(0,g.default)(!0,{},m.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(T){if(T){var D=this.quill.getSelection();if(D==null||D.length==0)return;var B=this.quill.getText(D);/^\S+@\S+\.\S+$/.test(B)&&B.indexOf("mailto:")!==0&&(B="mailto:"+B);var $=this.quill.theme.tooltip;$.edit("link",B)}else this.quill.format("link",!1)}}}}});var H=(function(F){L(T,F);function T(D,B){N(this,T);var $=j(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,D,B));return $.preview=$.root.querySelector("a.ql-preview"),$}return p(T,[{key:"listen",value:function(){var B=this;u(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function($){B.root.classList.contains("ql-editing")?B.save():B.edit("link",B.preview.textContent),$.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function($){if(B.linkRange!=null){var W=B.linkRange;B.restoreFocus(),B.quill.formatText(W,"link",!1,d.default.sources.USER),delete B.linkRange}$.preventDefault(),B.hide()}),this.quill.on(d.default.events.SELECTION_CHANGE,function($,W,Q){if($!=null){if($.length===0&&Q===d.default.sources.USER){var te=B.quill.scroll.descendant(S.default,$.index),Z=s(te,2),J=Z[0],V=Z[1];if(J!=null){B.linkRange=new _.Range($.index-V,J.length());var M=S.default.formats(J.domNode);B.preview.textContent=M,B.preview.setAttribute("href",M),B.show(),B.position(B.quill.getBounds(B.linkRange));return}}else delete B.linkRange;B.hide()}})}},{key:"show",value:function(){u(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),T})(f.BaseTooltip);H.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),a.default=z}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=i(29),u=Pe(s),p=i(36),h=i(38),g=i(64),w=i(65),d=Pe(w),f=i(66),m=Pe(f),k=i(67),S=Pe(k),_=i(37),b=i(26),x=i(39),C=i(40),N=i(56),j=Pe(N),L=i(68),P=Pe(L),z=i(27),H=Pe(z),F=i(69),T=Pe(F),D=i(70),B=Pe(D),$=i(71),W=Pe($),Q=i(72),te=Pe(Q),Z=i(73),J=Pe(Z),V=i(13),M=Pe(V),K=i(74),X=Pe(K),ie=i(75),oe=Pe(ie),ee=i(57),ne=Pe(ee),ce=i(41),ae=Pe(ce),Ae=i(28),Ie=Pe(Ae),je=i(59),ze=Pe(je),Xe=i(60),ot=Pe(Xe),Ot=i(61),bt=Pe(Ot),ue=i(108),ye=Pe(ue),Te=i(62),Re=Pe(Te);function Pe(at){return at&&at.__esModule?at:{default:at}}u.default.register({"attributors/attribute/direction":h.DirectionAttribute,"attributors/class/align":p.AlignClass,"attributors/class/background":_.BackgroundClass,"attributors/class/color":b.ColorClass,"attributors/class/direction":h.DirectionClass,"attributors/class/font":x.FontClass,"attributors/class/size":C.SizeClass,"attributors/style/align":p.AlignStyle,"attributors/style/background":_.BackgroundStyle,"attributors/style/color":b.ColorStyle,"attributors/style/direction":h.DirectionStyle,"attributors/style/font":x.FontStyle,"attributors/style/size":C.SizeStyle},!0),u.default.register({"formats/align":p.AlignClass,"formats/direction":h.DirectionClass,"formats/indent":g.IndentClass,"formats/background":_.BackgroundStyle,"formats/color":b.ColorStyle,"formats/font":x.FontClass,"formats/size":C.SizeClass,"formats/blockquote":d.default,"formats/code-block":M.default,"formats/header":m.default,"formats/list":S.default,"formats/bold":j.default,"formats/code":V.Code,"formats/italic":P.default,"formats/link":H.default,"formats/script":T.default,"formats/strike":B.default,"formats/underline":W.default,"formats/image":te.default,"formats/video":J.default,"formats/list/item":k.ListItem,"modules/formula":X.default,"modules/syntax":oe.default,"modules/toolbar":ne.default,"themes/bubble":ye.default,"themes/snow":Re.default,"ui/icons":ae.default,"ui/picker":Ie.default,"ui/icon-picker":ot.default,"ui/color-picker":ze.default,"ui/tooltip":bt.default},!0),a.default=u.default}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.IndentClass=void 0;var s=(function(){function S(_,b){for(var x=0;x<b.length;x++){var C=b[x];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(_,C.key,C)}}return function(_,b,x){return b&&S(_.prototype,b),x&&S(_,x),_}})(),u=function S(_,b,x){_===null&&(_=Function.prototype);var C=Object.getOwnPropertyDescriptor(_,b);if(C===void 0){var N=Object.getPrototypeOf(_);return N===null?void 0:S(N,b,x)}else{if("value"in C)return C.value;var j=C.get;return j===void 0?void 0:j.call(x)}},p=i(0),h=g(p);function g(S){return S&&S.__esModule?S:{default:S}}function w(S,_){if(!(S instanceof _))throw new TypeError("Cannot call a class as a function")}function d(S,_){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:S}function f(S,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);S.prototype=Object.create(_&&_.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(S,_):S.__proto__=_)}var m=(function(S){f(_,S);function _(){return w(this,_),d(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return s(_,[{key:"add",value:function(x,C){if(C==="+1"||C==="-1"){var N=this.value(x)||0;C=C==="+1"?N+1:N-1}return C===0?(this.remove(x),!0):u(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"add",this).call(this,x,C)}},{key:"canAdd",value:function(x,C){return u(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"canAdd",this).call(this,x,C)||u(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"canAdd",this).call(this,x,parseInt(C))}},{key:"value",value:function(x){return parseInt(u(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"value",this).call(this,x))||void 0}}]),_})(h.default.Attributor.Class),k=new m("indent","ql-indent",{scope:h.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});a.IndentClass=k}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=i(4),u=p(s);function p(f){return f&&f.__esModule?f:{default:f}}function h(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function g(f,m){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:f}function w(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(f,m):f.__proto__=m)}var d=(function(f){w(m,f);function m(){return h(this,m),g(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m})(u.default);d.blotName="blockquote",d.tagName="blockquote",a.default=d}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=(function(){function m(k,S){for(var _=0;_<S.length;_++){var b=S[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(k,b.key,b)}}return function(k,S,_){return S&&m(k.prototype,S),_&&m(k,_),k}})(),u=i(4),p=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function g(m,k){if(!(m instanceof k))throw new TypeError("Cannot call a class as a function")}function w(m,k){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:m}function d(m,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);m.prototype=Object.create(k&&k.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(m,k):m.__proto__=k)}var f=(function(m){d(k,m);function k(){return g(this,k),w(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return s(k,null,[{key:"formats",value:function(_){return this.tagName.indexOf(_.tagName)+1}}]),k})(p.default);f.blotName="header",f.tagName=["H1","H2","H3","H4","H5","H6"],a.default=f}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.ListItem=void 0;var s=(function(){function N(j,L){for(var P=0;P<L.length;P++){var z=L[P];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(j,z.key,z)}}return function(j,L,P){return L&&N(j.prototype,L),P&&N(j,P),j}})(),u=function N(j,L,P){j===null&&(j=Function.prototype);var z=Object.getOwnPropertyDescriptor(j,L);if(z===void 0){var H=Object.getPrototypeOf(j);return H===null?void 0:N(H,L,P)}else{if("value"in z)return z.value;var F=z.get;return F===void 0?void 0:F.call(P)}},p=i(0),h=m(p),g=i(4),w=m(g),d=i(25),f=m(d);function m(N){return N&&N.__esModule?N:{default:N}}function k(N,j,L){return j in N?Object.defineProperty(N,j,{value:L,enumerable:!0,configurable:!0,writable:!0}):N[j]=L,N}function S(N,j){if(!(N instanceof j))throw new TypeError("Cannot call a class as a function")}function _(N,j){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:N}function b(N,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);N.prototype=Object.create(j&&j.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(N,j):N.__proto__=j)}var x=(function(N){b(j,N);function j(){return S(this,j),_(this,(j.__proto__||Object.getPrototypeOf(j)).apply(this,arguments))}return s(j,[{key:"format",value:function(P,z){P===C.blotName&&!z?this.replaceWith(h.default.create(this.statics.scope)):u(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"format",this).call(this,P,z)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():u(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(P,z){return this.parent.isolate(this.offset(this.parent),this.length()),P===this.parent.statics.blotName?(this.parent.replaceWith(P,z),this):(this.parent.unwrap(),u(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"replaceWith",this).call(this,P,z))}}],[{key:"formats",value:function(P){return P.tagName===this.tagName?void 0:u(j.__proto__||Object.getPrototypeOf(j),"formats",this).call(this,P)}}]),j})(w.default);x.blotName="list-item",x.tagName="LI";var C=(function(N){b(j,N),s(j,null,[{key:"create",value:function(P){var z=P==="ordered"?"OL":"UL",H=u(j.__proto__||Object.getPrototypeOf(j),"create",this).call(this,z);return(P==="checked"||P==="unchecked")&&H.setAttribute("data-checked",P==="checked"),H}},{key:"formats",value:function(P){if(P.tagName==="OL")return"ordered";if(P.tagName==="UL")return P.hasAttribute("data-checked")?P.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function j(L){S(this,j);var P=_(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,L)),z=function(F){if(F.target.parentNode===L){var T=P.statics.formats(L),D=h.default.find(F.target);T==="checked"?D.format("list","unchecked"):T==="unchecked"&&D.format("list","checked")}};return L.addEventListener("touchstart",z),L.addEventListener("mousedown",z),P}return s(j,[{key:"format",value:function(P,z){this.children.length>0&&this.children.tail.format(P,z)}},{key:"formats",value:function(){return k({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(P,z){if(P instanceof x)u(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"insertBefore",this).call(this,P,z);else{var H=z==null?this.length():z.offset(this),F=this.split(H);F.parent.insertBefore(P,F)}}},{key:"optimize",value:function(P){u(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"optimize",this).call(this,P);var z=this.next;z!=null&&z.prev===this&&z.statics.blotName===this.statics.blotName&&z.domNode.tagName===this.domNode.tagName&&z.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(z.moveChildren(this),z.remove())}},{key:"replace",value:function(P){if(P.statics.blotName!==this.statics.blotName){var z=h.default.create(this.statics.defaultChild);P.moveChildren(z),this.appendChild(z)}u(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"replace",this).call(this,P)}}]),j})(f.default);C.blotName="list",C.scope=h.default.Scope.BLOCK_BLOT,C.tagName=["OL","UL"],C.defaultChild="list-item",C.allowedChildren=[x],a.ListItem=x,a.default=C}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=i(56),u=p(s);function p(f){return f&&f.__esModule?f:{default:f}}function h(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function g(f,m){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:f}function w(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(f,m):f.__proto__=m)}var d=(function(f){w(m,f);function m(){return h(this,m),g(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m})(u.default);d.blotName="italic",d.tagName=["EM","I"],a.default=d}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=(function(){function k(S,_){for(var b=0;b<_.length;b++){var x=_[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(S,x.key,x)}}return function(S,_,b){return _&&k(S.prototype,_),b&&k(S,b),S}})(),u=function k(S,_,b){S===null&&(S=Function.prototype);var x=Object.getOwnPropertyDescriptor(S,_);if(x===void 0){var C=Object.getPrototypeOf(S);return C===null?void 0:k(C,_,b)}else{if("value"in x)return x.value;var N=x.get;return N===void 0?void 0:N.call(b)}},p=i(6),h=g(p);function g(k){return k&&k.__esModule?k:{default:k}}function w(k,S){if(!(k instanceof S))throw new TypeError("Cannot call a class as a function")}function d(k,S){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:k}function f(k,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);k.prototype=Object.create(S&&S.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(k,S):k.__proto__=S)}var m=(function(k){f(S,k);function S(){return w(this,S),d(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return s(S,null,[{key:"create",value:function(b){return b==="super"?document.createElement("sup"):b==="sub"?document.createElement("sub"):u(S.__proto__||Object.getPrototypeOf(S),"create",this).call(this,b)}},{key:"formats",value:function(b){if(b.tagName==="SUB")return"sub";if(b.tagName==="SUP")return"super"}}]),S})(h.default);m.blotName="script",m.tagName=["SUB","SUP"],a.default=m}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=i(6),u=p(s);function p(f){return f&&f.__esModule?f:{default:f}}function h(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function g(f,m){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:f}function w(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(f,m):f.__proto__=m)}var d=(function(f){w(m,f);function m(){return h(this,m),g(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m})(u.default);d.blotName="strike",d.tagName="S",a.default=d}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=i(6),u=p(s);function p(f){return f&&f.__esModule?f:{default:f}}function h(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function g(f,m){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:f}function w(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(f,m):f.__proto__=m)}var d=(function(f){w(m,f);function m(){return h(this,m),g(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m})(u.default);d.blotName="underline",d.tagName="U",a.default=d}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=(function(){function _(b,x){for(var C=0;C<x.length;C++){var N=x[C];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(b,N.key,N)}}return function(b,x,C){return x&&_(b.prototype,x),C&&_(b,C),b}})(),u=function _(b,x,C){b===null&&(b=Function.prototype);var N=Object.getOwnPropertyDescriptor(b,x);if(N===void 0){var j=Object.getPrototypeOf(b);return j===null?void 0:_(j,x,C)}else{if("value"in N)return N.value;var L=N.get;return L===void 0?void 0:L.call(C)}},p=i(0),h=w(p),g=i(27);function w(_){return _&&_.__esModule?_:{default:_}}function d(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}function f(_,b){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:_}function m(_,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);_.prototype=Object.create(b&&b.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(_,b):_.__proto__=b)}var k=["alt","height","width"],S=(function(_){m(b,_);function b(){return d(this,b),f(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return s(b,[{key:"format",value:function(C,N){k.indexOf(C)>-1?N?this.domNode.setAttribute(C,N):this.domNode.removeAttribute(C):u(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,C,N)}}],[{key:"create",value:function(C){var N=u(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,C);return typeof C=="string"&&N.setAttribute("src",this.sanitize(C)),N}},{key:"formats",value:function(C){return k.reduce(function(N,j){return C.hasAttribute(j)&&(N[j]=C.getAttribute(j)),N},{})}},{key:"match",value:function(C){return/\.(jpe?g|gif|png)$/.test(C)||/^data:image\/.+;base64/.test(C)}},{key:"sanitize",value:function(C){return(0,g.sanitize)(C,["http","https","data"])?C:"//:0"}},{key:"value",value:function(C){return C.getAttribute("src")}}]),b})(h.default.Embed);S.blotName="image",S.tagName="IMG",a.default=S}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var s=(function(){function _(b,x){for(var C=0;C<x.length;C++){var N=x[C];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(b,N.key,N)}}return function(b,x,C){return x&&_(b.prototype,x),C&&_(b,C),b}})(),u=function _(b,x,C){b===null&&(b=Function.prototype);var N=Object.getOwnPropertyDescriptor(b,x);if(N===void 0){var j=Object.getPrototypeOf(b);return j===null?void 0:_(j,x,C)}else{if("value"in N)return N.value;var L=N.get;return L===void 0?void 0:L.call(C)}},p=i(4),h=i(27),g=w(h);function w(_){return _&&_.__esModule?_:{default:_}}function d(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}function f(_,b){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:_}function m(_,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);_.prototype=Object.create(b&&b.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(_,b):_.__proto__=b)}var k=["height","width"],S=(function(_){m(b,_);function b(){return d(this,b),f(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return s(b,[{key:"format",value:function(C,N){k.indexOf(C)>-1?N?this.domNode.setAttribute(C,N):this.domNode.removeAttribute(C):u(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,C,N)}}],[{key:"create",value:function(C){var N=u(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,C);return N.setAttribute("frameborder","0"),N.setAttribute("allowfullscreen",!0),N.setAttribute("src",this.sanitize(C)),N}},{key:"formats",value:function(C){return k.reduce(function(N,j){return C.hasAttribute(j)&&(N[j]=C.getAttribute(j)),N},{})}},{key:"sanitize",value:function(C){return g.default.sanitize(C)}},{key:"value",value:function(C){return C.getAttribute("src")}}]),b})(p.BlockEmbed);S.blotName="video",S.className="ql-video",S.tagName="IFRAME",a.default=S}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.FormulaBlot=void 0;var s=(function(){function C(N,j){for(var L=0;L<j.length;L++){var P=j[L];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(N,P.key,P)}}return function(N,j,L){return j&&C(N.prototype,j),L&&C(N,L),N}})(),u=function C(N,j,L){N===null&&(N=Function.prototype);var P=Object.getOwnPropertyDescriptor(N,j);if(P===void 0){var z=Object.getPrototypeOf(N);return z===null?void 0:C(z,j,L)}else{if("value"in P)return P.value;var H=P.get;return H===void 0?void 0:H.call(L)}},p=i(35),h=m(p),g=i(5),w=m(g),d=i(9),f=m(d);function m(C){return C&&C.__esModule?C:{default:C}}function k(C,N){if(!(C instanceof N))throw new TypeError("Cannot call a class as a function")}function S(C,N){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:C}function _(C,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);C.prototype=Object.create(N&&N.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(C,N):C.__proto__=N)}var b=(function(C){_(N,C);function N(){return k(this,N),S(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return s(N,null,[{key:"create",value:function(L){var P=u(N.__proto__||Object.getPrototypeOf(N),"create",this).call(this,L);return typeof L=="string"&&(window.katex.render(L,P,{throwOnError:!1,errorColor:"#f00"}),P.setAttribute("data-value",L)),P}},{key:"value",value:function(L){return L.getAttribute("data-value")}}]),N})(h.default);b.blotName="formula",b.className="ql-formula",b.tagName="SPAN";var x=(function(C){_(N,C),s(N,null,[{key:"register",value:function(){w.default.register(b,!0)}}]);function N(){k(this,N);var j=S(this,(N.__proto__||Object.getPrototypeOf(N)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return j}return N})(f.default);a.FormulaBlot=b,a.default=x}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.CodeToken=a.CodeBlock=void 0;var s=(function(){function L(P,z){for(var H=0;H<z.length;H++){var F=z[H];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(P,F.key,F)}}return function(P,z,H){return z&&L(P.prototype,z),H&&L(P,H),P}})(),u=function L(P,z,H){P===null&&(P=Function.prototype);var F=Object.getOwnPropertyDescriptor(P,z);if(F===void 0){var T=Object.getPrototypeOf(P);return T===null?void 0:L(T,z,H)}else{if("value"in F)return F.value;var D=F.get;return D===void 0?void 0:D.call(H)}},p=i(0),h=S(p),g=i(5),w=S(g),d=i(9),f=S(d),m=i(13),k=S(m);function S(L){return L&&L.__esModule?L:{default:L}}function _(L,P){if(!(L instanceof P))throw new TypeError("Cannot call a class as a function")}function b(L,P){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:L}function x(L,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);L.prototype=Object.create(P&&P.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(L,P):L.__proto__=P)}var C=(function(L){x(P,L);function P(){return _(this,P),b(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return s(P,[{key:"replaceWith",value:function(H){this.domNode.textContent=this.domNode.textContent,this.attach(),u(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replaceWith",this).call(this,H)}},{key:"highlight",value:function(H){var F=this.domNode.textContent;this.cachedText!==F&&((F.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=H(F),this.domNode.normalize(),this.attach()),this.cachedText=F)}}]),P})(k.default);C.className="ql-syntax";var N=new h.default.Attributor.Class("token","hljs",{scope:h.default.Scope.INLINE}),j=(function(L){x(P,L),s(P,null,[{key:"register",value:function(){w.default.register(N,!0),w.default.register(C,!0)}}]);function P(z,H){_(this,P);var F=b(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,z,H));if(typeof F.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var T=null;return F.quill.on(w.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(T),T=setTimeout(function(){F.highlight(),T=null},F.options.interval)}),F.highlight(),F}return s(P,[{key:"highlight",value:function(){var H=this;if(!this.quill.selection.composing){this.quill.update(w.default.sources.USER);var F=this.quill.getSelection();
312this.quill.scroll.descendants(C).forEach(function(T){T.highlight(H.options.highlight)}),this.quill.update(w.default.sources.SILENT),F!=null&&this.quill.setSelection(F,w.default.sources.SILENT)}}}]),P})(f.default);j.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(L){var P=window.hljs.highlightAuto(L);return P.value}})(),interval:1e3},a.CodeBlock=C,a.CodeToken=N,a.default=j}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(n,a){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line>
312 <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(n,a){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(n,a){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(n,a){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(n,a){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a.default=a.BubbleTooltip=void 0;var s=function P(z,H,F){z===null&&(z=Function.prototype);var T=Object.getOwnPropertyDescriptor(z,H);if(T===void 0){var D=Object.getPrototypeOf(z);return D===null?void 0:P(D,H,F)}else{if("value"in T)return T.value;var B=T.get;return B===void 0?void 0:B.call(F)}},u=(function(){function P(z,H){for(var F=0;F<H.length;F++){var T=H[F];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(z,T.key,T)}}return function(z,H,F){return H&&P(z.prototype,H),F&&P(z,F),z}})(),p=i(3),h=_(p),g=i(8),w=_(g),d=i(43),f=_(d),m=i(15),k=i(41),S=_(k);function _(P){return P&&P.__esModule?P:{default:P}}function b(P,z){if(!(P instanceof z))throw new TypeError("Cannot call a class as a function")}function x(P,z){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z&&(typeof z=="object"||typeof z=="function")?z:P}function C(P,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof z);P.prototype=Object.create(z&&z.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf(P,z):P.__proto__=z)}var N=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],j=(function(P){C(z,P);function z(H,F){b(this,z),F.modules.toolbar!=null&&F.modules.toolbar.container==null&&(F.modules.toolbar.container=N);var T=x(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,H,F));return T.quill.container.classList.add("ql-bubble"),T}return u(z,[{key:"extendToolbar",value:function(F){this.tooltip=new L(this.quill,this.options.bounds),this.tooltip.root.appendChild(F.container),this.buildButtons([].slice.call(F.container.querySelectorAll("button")),S.default),this.buildPickers([].slice.call(F.container.querySelectorAll("select")),S.default)}}]),z})(f.default);j.DEFAULTS=(0,h.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(z){z?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var L=(function(P){C(z,P);function z(H,F){b(this,z);var T=x(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,H,F));return T.quill.on(w.default.events.EDITOR_CHANGE,function(D,B,$,W){if(D===w.default.events.SELECTION_CHANGE)if(B!=null&&B.length>0&&W===w.default.sources.USER){T.show(),T.root.style.left="0px",T.root.style.width="",T.root.style.width=T.root.offsetWidth+"px";var Q=T.quill.getLines(B.index,B.length);if(Q.length===1)T.position(T.quill.getBounds(B));else{var te=Q[Q.length-1],Z=T.quill.getIndex(te),J=Math.min(te.length()-1,B.index+B.length-Z),V=T.quill.getBounds(new m.Range(Z,J));T.position(V)}}else document.activeElement!==T.textbox&&T.quill.hasFocus()&&T.hide()}),T}return u(z,[{key:"listen",value:function(){var F=this;s(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){F.root.classList.remove("ql-editing")}),this.quill.on(w.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!F.root.classList.contains("ql-hidden")){var T=F.quill.getSelection();T!=null&&F.position(F.quill.getBounds(T))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(F){var T=s(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"position",this).call(this,F),D=this.root.querySelector(".ql-tooltip-arrow");if(D.style.marginLeft="",T===0)return T;D.style.marginLeft=-1*T-D.offsetWidth/2+"px"}}]),z})(d.BaseTooltip);L.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),a.BubbleTooltip=L,a.default=j}),(function(n,a,i){n.exports=i(63)})]).default})})(Vc)),Vc.exports}var oo,lb;
vendor: 5,539 bytes, line 312
312function YT(){if(lb)return oo;lb=1;var e=oo&&oo.__extends||(function(){var w=function(d,f){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,k){m.__proto__=k}||function(m,k){for(var S in k)k.hasOwnProperty(S)&&(m[S]=k[S])},w(d,f)};return function(d,f){w(d,f);function m(){this.constructor=d}d.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})(),o=oo&&oo.__assign||function(){return o=Object.assign||function(w){for(var d,f=1,m=arguments.length;f<m;f++){d=arguments[f];for(var k in d)Object.prototype.hasOwnProperty.call(d,k)&&(w[k]=d[k])}return w},o.apply(this,arguments)},n=oo&&oo.__spreadArrays||function(){for(var w=0,d=0,f=arguments.length;d<f;d++)w+=arguments[d].length;for(var m=Array(w),k=0,d=0;d<f;d++)for(var S=arguments[d],_=0,b=S.length;_<b;_++,k++)m[k]=S[_];return m},a=oo&&oo.__importDefault||function(w){return w&&w.__esModule?w:{default:w}},i=a(hd()),s=a(Fm()),u=a(WT()),p=a(GT()),h=(function(w){e(d,w);function d(f){var m=w.call(this,f)||this;m.dirtyProps=["modules","formats","bounds","theme","children"],m.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],m.state={generation:0},m.selection=null,m.onEditorChange=function(S,_,b,x){var C,N,j,L;S==="text-change"?(N=(C=m).onEditorChangeText)===null||N===void 0||N.call(C,m.editor.root.innerHTML,_,x,m.unprivilegedEditor):S==="selection-change"&&((L=(j=m).onEditorChangeSelection)===null||L===void 0||L.call(j,_,x,m.unprivilegedEditor))};var k=m.isControlled()?f.value:f.defaultValue;return m.value=k??"",m}return d.prototype.validateProps=function(f){var m;if(i.default.Children.count(f.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(i.default.Children.count(f.children)){var k=i.default.Children.only(f.children);if(((m=k)===null||m===void 0?void 0:m.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&f.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},d.prototype.shouldComponentUpdate=function(f,m){var k=this,S;if(this.validateProps(f),!this.editor||this.state.generation!==m.generation)return!0;if("value"in f){var _=this.getEditorContents(),b=(S=f.value,S??"");this.isEqualValue(b,_)||this.setEditorContents(this.editor,b)}return f.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,f.readOnly),n(this.cleanProps,this.dirtyProps).some(function(x){return!u.default(f[x],k.props[x])})},d.prototype.shouldComponentRegenerate=function(f){var m=this;return this.dirtyProps.some(function(k){return!u.default(f[k],m.props[k])})},d.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},d.prototype.componentWillUnmount=function(){this.destroyEditor()},d.prototype.componentDidUpdate=function(f,m){var k=this;if(this.editor&&this.shouldComponentRegenerate(f)){var S=this.editor.getContents(),_=this.editor.getSelection();this.regenerationSnapshot={delta:S,selection:_},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==m.generation){var b=this.regenerationSnapshot,S=b.delta,x=b.selection;delete this.regenerationSnapshot,this.instantiateEditor();var C=this.editor;C.setContents(S),g(function(){return k.setEditorSelection(C,x)})}},d.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},d.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},d.prototype.isControlled=function(){return"value"in this.props},d.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},d.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},d.prototype.createEditor=function(f,m){var k=new p.default(f,m);return m.tabIndex!=null&&this.setEditorTabIndex(k,m.tabIndex),this.hookEditor(k),k},d.prototype.hookEditor=function(f){this.unprivilegedEditor=this.makeUnprivilegedEditor(f),f.on("editor-change",this.onEditorChange)},d.prototype.unhookEditor=function(f){f.off("editor-change",this.onEditorChange)},d.prototype.getEditorContents=function(){return this.value},d.prototype.getEditorSelection=function(){return this.selection},d.prototype.isDelta=function(f){return f&&f.ops},d.prototype.isEqualValue=function(f,m){return this.isDelta(f)&&this.isDelta(m)?u.default(f.ops,m.ops):u.default(f,m)},d.prototype.setEditorContents=function(f,m){var k=this;this.value=m;var S=this.getEditorSelection();typeof m=="string"?f.setContents(f.clipboard.convert(m)):f.setContents(m),g(function(){return k.setEditorSelection(f,S)})},d.prototype.setEditorSelection=function(f,m){if(this.selection=m,m){var k=f.getLength();m.index=Math.max(0,Math.min(m.index,k-1)),m.length=Math.max(0,Math.min(m.length,k-1-m.index)),f.setSelection(m)}},d.prototype.setEditorTabIndex=function(f,m){var k,S;!((S=(k=f)===null||k===void 0?void 0:k.scroll)===null||S===void 0)&&S.domNo
312de&&(f.scroll.domNode.tabIndex=m)},d.prototype.setEditorReadOnly=function(f,m){m?f.disable():f.enable()},d.prototype.makeUnprivilegedEditor=function(f){var m=f;return{getHTML:function(){return m.root.innerHTML},getLength:m.getLength.bind(m),getText:m.getText.bind(m),getContents:m.getContents.bind(m),getSelection:m.getSelection.bind(m),getBounds:m.getBounds.bind(m)}},d.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var f=s.default.findDOMNode(this.editingArea);if(!f)throw new Error("Cannot find element for editing area");if(f.nodeType===3)throw new Error("Editing area cannot be a text node");return f},d.prototype.renderEditingArea=function(){var f=this,m=this.props,k=m.children,S=m.preserveWhitespace,_=this.state.generation,b={key:_,ref:function(x){f.editingArea=x}};return i.default.Children.count(k)?i.default.cloneElement(i.default.Children.only(k),b):S?i.default.createElement("pre",o({},b)):i.default.createElement("div",o({},b))},d.prototype.render=function(){var f;return i.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(f=this.props.className,f??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},d.prototype.onEditorChangeText=function(f,m,k,S){var _,b;if(this.editor){var x=this.isDelta(this.value)?S.getContents():S.getHTML();x!==this.getEditorContents()&&(this.lastDeltaChangeSet=m,this.value=x,(b=(_=this.props).onChange)===null||b===void 0||b.call(_,f,m,k,S))}},d.prototype.onEditorChangeSelection=function(f,m,k){var S,_,b,x,C,N;if(this.editor){var j=this.getEditorSelection(),L=!j&&f,P=j&&!f;u.default(f,j)||(this.selection=f,(_=(S=this.props).onChangeSelection)===null||_===void 0||_.call(S,f,m,k),L?(x=(b=this.props).onFocus)===null||x===void 0||x.call(b,f,m,k):P&&((N=(C=this.props).onBlur)===null||N===void 0||N.call(C,j,m,k)))}},d.prototype.focus=function(){this.editor&&this.editor.focus()},d.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},d.displayName="React Quill",d.Quill=p.default,d.defaultProps={theme:"snow",modules:{},readOnly:!1},d})(i.default.Component);function g(w){Promise.resolve().then(w)}return oo=h,oo}var ZT=YT();const QT=uu(ZT),XT=`<h2>About the Project</h2> 313<p>Prompt-Brush 2.0 is a web-based drawing application featuring a realistic brush drawing tool that creates organic, variable-thickness strokes mimicking real brush behavior with black ink on a warm beige artboard background.</p> 314 315<h2>Features</h2> 316<ul> 317<li>500x700px portrait canvas with warm beige (#f4efe9) background</li> 318<li>Speed-sensitive brush with natural texture and grain</li> 319<li>Email functionality to send artwork as PNG attachments</li> 320<li>Community gallery with admin approval system</li> 321<li>User submission system for prompt-based artwork</li> 322<li>Dark/light mode toggle</li> 323<li>Minimalistic icon-based navigation</li> 324</ul> 325 326<h2>Brush Engine</h2> 327<p>The brush engine uses advanced techniques including speed-sensitive line weight, multiple overlapping circles for natural texture, and random micro-variations to create authentic brush grain with darker cores and lighter semi-transparent edges.</p> 328 329<h2>How It Works</h2> 330<ol> 331<li>Browse available prompts from the gallery</li> 332<li>Select a prompt that inspires you</li> 333<li>Create your artwork using the brush tool</li> 334<li>Submit your work for admin approval</li> 335<li>Once approved, your artwork appears in the public gallery</li> 336</ol> 337 338<h2>Design Philosophy</h2> 339<p>Prompt-Brush 2.0 embraces a minimalistic design with a focus on the creative process. The interface stays out of your way, letting you concentrate on your art while providing all the tools you need for expressive brush work.</p>`,Em={bookTitle:"Prompt-Brush 1.0",bookDescription:"Get the original book:",amazonUrl:"https://www.amazon.com/Prompt-Brush-1-0-Drawing-Prompts-Illustrations/dp/B0DJXC29W8",bookshopUrl:"https://bookshop.org/p/books/prompt-brush-1-0-500-drawing-prompts-for-daily-practice-and-wild-illustrations-hyder-jaffrey/21703254",barnesNobleUrl:"https://www.barnesandnoble.com/w/prompt-brush-10-hyder-jaffrey/1146466982",projectDescription:"500 Drawing Prompts for Daily Practice and Wild Illustrations",sidebarContent:XT},vg="site_content";function ub(){try{const e=localStorage.getItem(vg);if(e)return{...Em,...JSON.parse(e)}}catch(e){console.error("Error loading site content:",e)}return Em}function JT(e){try{localStorage.setItem(vg,JSON.stringify(e))}catch(o){throw console.error("Error saving site content:",o),o}}function eO(){const[e,o]=O.useState(ub()),[n,a]=O.useState(!1),[i,s]=O.useState(!1),u=(w,d)=>{o(f=>({...f,[w]:d})),a(!0)},p=async()=>{s(!0);try{JT(e),a(!1),st.success("Content saved successfully!"),console.log("Saved content:",e),console.log("localStorage after save:",localStorage.getItem(vg)),window.dispatchEvent(new CustomEvent("siteContentUpdated")),console.log("Dispatched siteContentUpdated event")}catch(w){st.error("Failed to save content"),console.error(w)}finally{s(!1)}},h=()=>{confirm("Reset all content to defaults? This cannot be undone.")&&(o(Em),a(!0),st.success("Content reset to defaults"))},g=()=>{o(ub()),a(!1),st.success("Content reloaded")};return c.jsx("div",{className:"container mx-auto px-4 py-12 max-w-4xl",children:c.jsxs("div",{className:"space-y-8",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-[15px] font-medium",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Site Content Management"}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs(Rt,{size:"sm",variant:"ghost",onClick:g,disabled:i,children:[c.jsx(oE,{className:"w-4 h-4 mr-2"}),"Reload"]}),c.jsx(Rt,{size:"sm",variant:"outline",onClick:h,disabled:i,children:"Reset to Defaults"})]})]}),c.jsxs("div",{className:"space-y-6 p-6 bg-card border border-border rounded-lg",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(n1,{className:"w-5 h-5 text-muted-foreground"}),c.jsx("h2",{className:"text-[14px] font-medium",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Book Information"})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"text-[12px] text-muted-foreground",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Book Title"}),c.jsx(Dr,{value:e.bookTitle,onChange:w=>u("bookTitle",w.target.value),placeholder:"Enter book title",className:"text-[13px]",style:{fontFamily:"FK Grotesk Mono, monospace"}})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"text-[12px] text-muted-foreground",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Book Description"}),c.jsx(Dr,{value:e.bookDescription,onChange:w=>u("bookDescription",w.target.value),placeholder:"Enter description",className:"text-[13px]",style:{fontFamily:"FK Grotesk Mono, monospace"}})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"text-[12px] text-muted-foreground",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Amazon URL"}),c.jsx(Dr,{type:"url",value:e.amazonUrl,onChange:w=>u("amazonUrl",w.target.value),placeholder:"https://amazon.com/...",className:"text-[11px]",style:{fontFamily:"FK Grotesk Mono, monospace"}})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"text-[12px] text-muted-foreground",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Bookshop.org URL"}),c.jsx(Dr,{type:"url",value:e.bookshopUrl,onChange:w=>u("bookshopUrl",w.target.value),placeholder:"https://bookshop.org/...",className:"text-[11px]",style:{fontFamily:"FK Grotesk Mono, monospace"}})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"text-[12px] text-muted-foreground",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Barnes & Noble URL"}),c.jsx(Dr,{type:"url",value:e.barnesNobleUrl,onChange:w=>u("barnesNobleUrl",w.target.value),placeholder:"https://barnesandnoble.com/...",className:"text-[11px]",style:{fontFamily:"FK Grotesk Mono, monospace"}})]})]})]}),c.jsxs("div",{className:"space-y-6 p-6 bg-card border border-border rounded-lg",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(UN,{className:"w-5 h-5 text-muted-foreground"}),c.jsx("h2",{className:"text-[14px] font-medium",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Project Information"})]}),c.jsx("div",{className:"space-y-4",children:c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"text-[12px] text-muted-foreground",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Project Description"}),c.jsx(Dr,{value:e.projectDescription,onChange:w=>u("projectDescription",w.target.value),placeholder:"Brief project description",className:"text-[13px]",style:{fontFamily:"FK Grotesk Mono, monospace"}})]})})]}),c.jsxs("div",{className:"space-y-6 p-6 bg-card border border-border rounded-lg",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(LN,{className:"w-5 h-5 text-muted-foreground"}),c.jsx("h2",{className:"text-[14px] font-medium",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"About Sidebar Content"})]}),c.jsx("div",{className:"space-y-4",children:c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"text-[12px] text-muted-foreground",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Sidebar Content (WYSIWYG Editor)"}),c.jsx("div",{className:"text-[11px] text-muted-foreground mb-2",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Format your content exactly as you want it to appear in the sidebar. Use the toolbar to add headings, lists, bold, italic, etc."}),c.jsx("div",{className:"border border-border rounded-md overflow-hidden bg-background",children:c.jsx(QT,{theme:"snow",value:e.sidebarContent,onChange:w=>u("sidebarContent",w),modules:{toolbar:[[{header:[1,2,3,!1]}],["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],[{align:[]}],["link"],["clean"]]},style:{minHeight:"400px"}})})]})})]}),c.jsxs("div",{className:"flex justify-end gap-3 pt-4",children:[n&&c.jsx("div",{className:"text-[12px] text-yellow-500 flex items-center",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Unsaved changes"}),c.jsxs(Rt,{onClick:p,disabled:!n||i,className:"min-w-32",children:[c.jsx(iE,{className:"w-4 h-4 mr-2"}),i?"Saving...":"Save Changes"]})]}),c.jsxs("div",{className:"p-6 bg-accent/10 border border-border rounded-lg",children:[c.jsx("h3",{className:"text-[13px] font-medium mb-4",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Preview"}),c.jsxs("div",{className:"space-y-3 text-[12px]",style:{fontFamily:"FK Grotesk Mono, monospace"},children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Title: "}),c.jsx("span",{className:"text-foreground",children:e.bookTitle})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"Description: "}),c.jsx("span",{className:"text-foreground",children:e.bookDescription})]}),c.jsxs("div",{className:"space-y-1 pt-2",children:[c.jsx("div",{className:"text-muted-foreground",children:"Book Links:"}),c.jsxs("div",{className:"pl-4 space-y-1",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"⢠Amazon: "}),c.jsx("span",{className:"text-foreground break-all",children:e.amazonUrl})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"⢠Bookshop: "}),c.jsx("span",{className:"text-foreground break-all",children:e.bookshopUrl})]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-muted-foreground",children:"⢠B&N: "}),c.jsx("span",{className:"text-foreground break-all",children:e.barnesNobleUrl})]})]})]})]})]}),c.jsx("div",{className:"text-[11px] text-muted-foreground italic p-4 bg-accent/5 border border-border rounded-lg",style:{fontFamily:"FK Grotesk Mono, monospace"},children:"Note: Changes will be reflected immediately after saving. The book information popup will update automatically."})]})})}const gu={story:[1080,1920],post:[1080,1350],landscape:[1920,1080]},Xx="#f5f5f5",cb="#f4efe9",Jx="#1a1a1a",e2="#777777",tO="#e5e5e5",t2="#1a1a1a",r2="#f2f0ed",n2="#999999",rO="#3a3a3a",o2="#000000",nO="#262626",a2="#555555",Nn="'Delcan Mono', monospace",Ns="'FK Grotesk Mono', monospace";async function bg(){await Promise.all([document.fonts.load(`54px ${Nn}`),document.fonts.load(`34px ${Ns}`)])}function oO(e){return new Promise((o,n)=>{const a=new Image;e.startsWith("data:")||(a.crossOrigin="anonymous"),a.onload=()=>o(a),a.onerror=()=>n(new Error("Could not load the drawing image")),a.src=e})}function ql(e,o,n,a,i,s){const u=[...o].map(g=>e.measureText(g).width),p=u.reduce((g,w)=>g+w,0)+i*(o.length-1);let h=s!==void 0?s-p/2:n;
339return[...o].forEach((g,w)=>{e.fillText(g,h,a),h+=u[w]+i}),p}function em(e,o,n){const a=o.split(/\s+/),i=[];let s="";for(const u of a){const p=(s+" "+u).trim();e.measureText(p).width<=n?s=p:(s&&i.push(s),s=u)}return s&&i.push(s),i}function i2(e,o,n,a){const i=document.createElement("canvas");i.width=i.height=o;const s=i.getContext("2d");return s.fillStyle=a,s.beginPath(),s.arc(o/2,o/2,n,0,Math.PI*2),s.fill(),e.createPattern(i,"repeat")}function tm(e,o,n,a,i,s,u,p){e.fillStyle=i2(e,s,u,p),e.fillRect(o,n,a,i),e.strokeStyle=a2,e.lineWidth=2.5,e.strokeRect(o,n,a,i)}const Ti=[[9,4.4],[9,3.5],[10,3],[10,2.4],[11,2],[11,1.6]];function s2(e,o){return new Promise((n,a)=>{e.toBlob(i=>{if(!i)return a(new Error("Export failed (canvas could not encode)"));const s=document.createElement("a");s.href=URL.createObjectURL(i),s.download=o,s.click(),URL.revokeObjectURL(s.href),n()},"image/png")})}function aO(e,o,n,a,i){e.save(),e.strokeStyle=i,e.lineWidth=Math.max(2,a*.085),e.lineCap="round";const s=o+a/2;e.beginPath(),e.arc(s,n+a*.3,a*.19,0,Math.PI*2),e.stroke(),e.beginPath(),e.arc(s,n+a*1.02,a*.4,Math.PI*1.2,Math.PI*1.8),e.stroke(),e.restore()}async function l2(e,o,n,a={}){const{header:i=!1}=a;await bg();const[s,u]=gu[o],p=n==="black",h=n==="dark"||p,g=n==="poster"&&o==="story",w=p?o2:h?t2:Xx,d=h?r2:Jx,f=h?n2:e2,m=p?nO:h?rO:tO,k=72,S=e.imageUrl||e.imageData||"";if(!S)throw new Error("This artwork has no image to export");const _=await oO(S),b=document.createElement("canvas");b.width=s,b.height=u;const x=b.getContext("2d");x.fillStyle=w,x.fillRect(0,0,s,u),x.textBaseline="top";const C=o==="story",N=C?250:k,j=C?310:k,L=30,P=(F,T)=>{e.artistName&&(aO(x,F,T-2,L,f),x.fillStyle=f,x.font=`26px ${Ns}`,ql(x,e.artistName.toUpperCase(),F+L+14,T,4))},z=g?56:64,H=g?70:80;if(o==="landscape"){x.font=`34px ${Nn}`;const $="prompt: ",W=x.measureText($).width,Q=em(x,e.promptText||"Untitled",1400-W);let te=50;Q.forEach((ee,ne)=>{const ce=x.measureText(ee).width+(ne===0?W:0);let ae=Math.round((s-ce)/2);ne===0&&(x.fillStyle=f,x.fillText($,ae,te),ae+=W),x.fillStyle=d,x.fillText(ee,ae,te),te+=44});const Z=te+6,J=u-86-Z,V=Math.round(J*5/7),M=Math.round((s-V)/2);p||(x.strokeStyle=m,x.lineWidth=2,x.strokeRect(M-2,Z-2,V+4,J+4)),x.fillStyle=cb,x.fillRect(M,Z,V,J);const K=Math.min(V/_.width,J/_.height),X=_.width*K,ie=_.height*K;x.drawImage(_,M+(V-X)/2,Z+(J-ie)/2,X,ie);const oe=u-40-L;if(P(64,oe),i){x.fillStyle=f,x.font=`28px ${Nn}`;const ee="Prompt-Brush.com";x.fillText(ee,s-64-x.measureText(ee).width,oe+2)}}else if(g){const F=Math.round(_.height/_.width*s);x.drawImage(_,0,0,s,F),x.font=`${z}px ${Nn}`;const T=em(x,e.promptText||"Untitled",s-2*k);let D=F+70;x.fillStyle=d;for(const B of T)x.fillText(B,k,D),D+=H;P(k,D+16),i&&(x.fillStyle=d,x.font=`40px ${Nn}`,x.fillText("Prompt-Brush 2.0",k,u-j-40))}else{let F=C?N:k;if(C&&i){x.fillStyle=d,x.font=`40px ${Nn}`,x.fillText("Prompt-Brush 2.0",k,N);const M="Prompt-Brush.com";x.fillText(M,s-k-x.measureText(M).width,N),F=N+96}const D=60+2*H+18+40;let B=Math.max(400,u-j-F-D);const $=Math.min(s-2*k,Math.round(B*5/7));B=Math.round($*7/5);const W=Math.round((s-$)/2);x.font=`${z}px ${Nn}`;const Q=em(x,e.promptText||"Untitled",$);x.strokeStyle=m,x.lineWidth=2,x.strokeRect(W-2,F-2,$+4,B+4),x.fillStyle=cb,x.fillRect(W,F,$,B);const te=Math.min($/_.width,B/_.height),Z=_.width*te,J=_.height*te;x.drawImage(_,W+($-Z)/2,F+(B-J)/2,Z,J);let V=F+B+60;x.fillStyle=d,x.font=`${z}px ${Nn}`;for(const M of Q)x.fillText(M,W,V),V+=H;P(W,V+18)}return b}async function iO(e,o,n,a={}){const i=await l2(e,o,n,a),s=e.promptNumber?`-${String(e.promptNumber).padStart(4,"0")}`:"";await s2(i,`prompt-brush${s}-${o}-${n}.png`)}function u2(e,o,n,a,i={}){const{header:s=!1,progress:u=1}=i,{kind:p,title:h,items:g,footnote:w}=o,[d,f]=gu[n],m=a==="dark"||a==="black",k=a==="black"?o2:m?t2:Xx,S=m?r2:Jx,_=m?n2:e2,b=1-Math.pow(1-Math.min(1,Math.max(0,u)),3),x=72;e.fillStyle=k,e.fillRect(0,0,d,f),e.textBaseline="top";const C=n==="story",N=n==="landscape",j=C?250:x,P=f-(C?310:x)-34;let z=j;if(s){e.fillStyle=S,e.font=`40px ${Nn}`,e.fillText("Prompt-Brush 2.0",x,j);const $="Prompt-Brush.com";e.fillText($,d-x-e.measureText($).width,j),z=j+(N?88:112)}e.fillStyle=S,e.font=`48px ${Nn}`,e.fillText(h,x,z);
339const H=z+(N?80:98),F=P-60,T=g.length,D=Math.max(...g.map($=>$.count),1),B=$=>String(Math.round($*b));if(p==="donut"){const $=g.reduce((ee,ne)=>ee+ne.count,0)||1,W=N?Math.min(230,Math.floor((F-H)/2)-10):C?270:230,Q=Math.round(W*.59),te=N?x+110+W:d/2,Z=N?Math.round((H+F)/2):H+W;let J=0;g.forEach((ee,ne)=>{const ce=J/$;J+=ee.count;const ae=Math.min(J/$,b);if(ae<=ce)return;const Ae=-Math.PI/2+ce*Math.PI*2,Ie=-Math.PI/2+ae*Math.PI*2,[je,ze]=Ti[ne%Ti.length];e.beginPath(),e.arc(te,Z,W,Ae,Ie),e.arc(te,Z,Q,Ie,Ae,!0),e.closePath(),e.fillStyle=i2(e,je,ze,S),e.fill(),e.strokeStyle=a2,e.lineWidth=2.5,e.stroke()});const V=C?74:66,M=C?36:34,K=N?te+W+120:x,X=K+330,ie=d-x-130-X,oe=N?Math.round(Z-T*V/2+8):Z+W+(C?80:60);g.forEach((ee,ne)=>{const ce=oe+ne*V;e.fillStyle=_,e.font=`26px ${Ns}`,ql(e,ee.label.toUpperCase(),K,ce+8,2);const[ae,Ae]=Ti[ne%Ti.length];tm(e,X,ce,Math.max(26,Math.round(ie*ee.count*b/D)),M,ae,Ae,S),e.fillStyle=S,e.font=`${C?46:44}px ${Nn}`,e.fillText(B(ee.count),X+ie+34,ce-6)})}else if(p==="columns"){const $=(d-2*x)/T,W=Math.min(N?180:150,$-28),Q=F-46,te=Q-H-70,[Z,J]=Ti[2];g.forEach((V,M)=>{const K=Math.max(14,Math.round(te*V.count*b/D)),X=x+$*M+$/2,ie=Math.round(X-W/2);tm(e,ie,Q-K,W,K,Z,J,S);const oe=B(V.count);e.fillStyle=S,e.font=`${C?42:40}px ${Nn}`,e.fillText(oe,X-e.measureText(oe).width/2,Q-K-52),e.fillStyle=_,e.font=`24px ${Ns}`,ql(e,V.label.toUpperCase(),0,Q+14,3,X)})}else{const $=N?Math.min(92,Math.floor((F-H-10)/Math.max(1,T))):C?104:92,W=N?Math.min(36,Math.round($*.42)):C?40:36,te=x+400,Z=d-x-130-te,J=H+10;g.forEach((V,M)=>{const K=J+M*$,X=V.label.length>22?V.label.slice(0,21)+"â¦":V.label;e.fillStyle=_,e.font=`26px ${Ns}`,ql(e,X.toUpperCase(),x,K+8,3);const[ie,oe]=Ti[M%Ti.length];tm(e,te,K,Math.max(26,Math.round(Z*V.count*b/D)),W,ie,oe,S),e.fillStyle=S,e.font=`${C?46:44}px ${Nn}`,e.fillText(B(V.count),te+Z+34,K-4)})}e.fillStyle=_,e.font=`26px ${Ns}`,ql(e,w.toUpperCase(),x,P,3)}async function sO(e,o,n,a={}){await bg();const[i,s]=gu[o],u=document.createElement("canvas");u.width=i,u.height=s,u2(u.getContext("2d"),e,o,n,a),await s2(u,`prompt-brush-${e.slug}-${o}-${n}.png`)}async function lO(){await bg()}var xg=(e,o,n)=>{if(!o.has(e))throw TypeError("Cannot "+n)},ge=(e,o,n)=>(xg(e,o,"read from private field"),n?n.call(e):o.get(e)),Nt=(e,o,n)=>{if(o.has(e))throw TypeError("Cannot add the same private member more than once");o instanceof WeakSet?o.add(e):o.set(e,n)},Mr=(e,o,n,a)=>(xg(e,o,"write to private field"),o.set(e,n),n),uO=(e,o,n,a)=>({set _(i){Mr(e,o,i)},get _(){return ge(e,o,a)}}),Tt=(e,o,n)=>(xg(e,o,"access private method"),n),Dt=new Uint8Array(8),Bo=new DataView(Dt.buffer),Er=e=>[(e%256+256)%256],zt=e=>(Bo.setUint16(0,e,!1),[Dt[0],Dt[1]]),cO=e=>(Bo.setInt16(0,e,!1),[Dt[0],Dt[1]]),c2=e=>(Bo.setUint32(0,e,!1),[Dt[1],Dt[2],Dt[3]]),et=e=>(Bo.setUint32(0,e,!1),[Dt[0],Dt[1],Dt[2],Dt[3]]),dO=e=>(Bo.setInt32(0,e,!1),[Dt[0],Dt[1],Dt[2],Dt[3]]),qi=e=>(Bo.setUint32(0,Math.floor(e/2**32),!1),Bo.setUint32(4,e,!1),[Dt[0],Dt[1],Dt[2],Dt[3],Dt[4],Dt[5],Dt[6],Dt[7]]),kg=e=>(Bo.setInt16(0,2**8*e,!1),[Dt[0],Dt[1]]),Mo=e=>(Bo.setInt32(0,2**16*e,!1),[Dt[0],Dt[1],Dt[2],Dt[3]]),rm=e=>(Bo.setInt32(0,2**30*e,!1),[Dt[0],Dt[1],Dt[2],Dt[3]]),Bn=(e,o=!1)=>{let n=Array(e.length).fill(null).map((a,i)=>e.charCodeAt(i));return o&&n.push(0),n},ld=e=>e&&e[e.length-1],Sg=e=>{let o;for(let n of e)(!o||n.presentationTimestamp>o.presentationTimestamp)&&(o=n);return o},Fo=(e,o,n=!0)=>{let a=e*o;return n?Math.round(a):a},d2=e=>{let o=e*(Math.PI/180),n=Math.cos(o),a=Math.sin(o);return[n,a,0,-a,n,0,0,0,1]},f2=d2(0),p2=e=>[Mo(e[0]),Mo(e[1]),rm(e[2]),Mo(e[3]),Mo(e[4]),rm(e[5]),Mo(e[6]),Mo(e[7]),rm(e[8])],Wl=e=>!e||typeof e!="object"?e:Array.isArray(e)?e.map(Wl):Object.fromEntries(Object.entries(e).map(([o,n])=>[o,Wl(n)])),Ms=e=>e>=0&&e<2**32,vr=(e,o,n)=>({type:e,contents:o&&new Uint8Array(o.flat(10)),children:n}),Xt=(e,o,n,a,i)=>vr(e,[Er(o),c2(n),a??[]],i),fO=e=>{let o=512;return e.fragmented?vr("ftyp",[Bn("iso5"),et(o),Bn("iso5"),Bn("iso6"),Bn("mp41")]):vr("ftyp",[Bn("isom"),et(o),Bn("isom"),e.holdsAvc?Bn("avc1"):[],Bn("mp41")])},Cm=e=>({type:"mdat",largeSize:e}),pO=e=>({type:"free",size:e}),Gc=(e,o,n=!1)=>vr("moov",null,[hO(o,e),...e.map(a=>mO(a,o)),n?WO(e):null]),hO=(e,o)=>{let n=Fo(Math.max(0,...o.filter(u=>u.samples.length>0).map(u=>{const p=Sg(u.samples);return p.presentationTimestamp+p.duration})),Tm),a=Math.max(...o.map(u=>u.id))+1,i=!Ms(e)||!Ms(n),s=i?qi:et;return Xt("mvhd",+i,0,[s(e),s(e),et(Tm),s(n),Mo(1),kg(1),Array(10).fill(0),p2(f2),Array(24).fill(0),et(a)])},mO=(e,o)=>vr("trak",null,[gO(e,o),yO(e,o)]),gO=(e,o)=>{let n=Sg(e.samples),a=Fo(n?n.presentationTimestamp+n.duration:0,Tm),i=!Ms(o)||!Ms(a),s=i?qi:et,u;return e.info.type==="video"?u=typeof e.info.rotation=="number"?d2(e.info.rotation):e.info.rotation:u=f2,Xt("tkhd",+i,3,[s(o),s(o),et(e.id),et(0),s(a),Array(8).fill(0),zt(0),zt(0),kg
339(e.info.type==="audio"?1:0),zt(0),p2(u),Mo(e.info.type==="video"?e.info.width:0),Mo(e.info.type==="video"?e.info.height:0)])},yO=(e,o)=>vr("mdia",null,[wO(e,o),vO(e.info.type==="video"?"vide":"soun"),bO(e)]),wO=(e,o)=>{let n=Sg(e.samples),a=Fo(n?n.presentationTimestamp+n.duration:0,e.timescale),i=!Ms(o)||!Ms(a),s=i?qi:et;return Xt("mdhd",+i,0,[s(o),s(o),et(e.timescale),s(a),zt(21956),zt(0)])},vO=e=>Xt("hdlr",0,0,[Bn("mhlr"),Bn(e),et(0),et(0),et(0),Bn("mp4-muxer-hdlr",!0)]),bO=e=>vr("minf",null,[e.info.type==="video"?xO():kO(),SO(),EO(e)]),xO=()=>Xt("vmhd",0,1,[zt(0),zt(0),zt(0),zt(0)]),kO=()=>Xt("smhd",0,0,[zt(0),zt(0)]),SO=()=>vr("dinf",null,[_O()]),_O=()=>Xt("dref",0,0,[et(1)],[NO()]),NO=()=>Xt("url ",0,1),EO=e=>{const o=e.compositionTimeOffsetTable.length>1||e.compositionTimeOffsetTable.some(n=>n.sampleCompositionTimeOffset!==0);return vr("stbl",null,[CO(e),BO(e),qO(e),$O(e),UO(e),HO(e),o?KO(e):null])},CO=e=>Xt("stsd",0,0,[et(1)],[e.info.type==="video"?AO(rP[e.info.codec],e):LO(oP[e.info.codec],e)]),AO=(e,o)=>vr(e,[Array(6).fill(0),zt(1),zt(0),zt(0),Array(12).fill(0),zt(o.info.width),zt(o.info.height),et(4718592),et(4718592),et(0),zt(1),Array(32).fill(0),zt(24),cO(65535)],[nP[o.info.codec](o),o.info.decoderConfig.colorSpace?PO(o):null]),jO={bt709:1,bt470bg:5,smpte170m:6},TO={bt709:1,smpte170m:6,"iec61966-2-1":13},OO={rgb:0,bt709:1,bt470bg:5,smpte170m:6},PO=e=>vr("colr",[Bn("nclx"),zt(jO[e.info.decoderConfig.colorSpace.primaries]),zt(TO[e.info.decoderConfig.colorSpace.transfer]),zt(OO[e.info.decoderConfig.colorSpace.matrix]),Er((e.info.decoderConfig.colorSpace.fullRange?1:0)<<7)]),RO=e=>e.info.decoderConfig&&vr("avcC",[...new Uint8Array(e.info.decoderConfig.description)]),DO=e=>e.info.decoderConfig&&vr("hvcC",[...new Uint8Array(e.info.decoderConfig.description)]),MO=e=>{if(!e.info.decoderConfig)return null;let o=e.info.decoderConfig;if(!o.colorSpace)throw new Error("'colorSpace' is required in the decoder config for VP9.");let n=o.codec.split("."),a=Number(n[1]),i=Number(n[2]),p=(Number(n[3])<<4)+(0<<1)+Number(o.colorSpace.fullRange);return Xt("vpcC",1,0,[Er(a),Er(i),Er(p),Er(2),Er(2),Er(2),zt(0)])},IO=()=>{let n=(1<<7)+1;return vr("av1C",[n,0,0,0])},LO=(e,o)=>vr(e,[Array(6).fill(0),zt(1),zt(0),zt(0),et(0),zt(o.info.numberOfChannels),zt(16),zt(0),zt(0),Mo(o.info.sampleRate)],[aP[o.info.codec](o)]),FO=e=>{let o=new Uint8Array(e.info.decoderConfig.description);return Xt("esds",0,0,[et(58753152),Er(32+o.byteLength),zt(1),Er(0),et(75530368),Er(18+o.byteLength),Er(64),Er(21),c2(0),et(130071),et(130071),et(92307584),Er(o.byteLength),...o,et(109084800),Er(1),Er(2)])},zO=e=>{let o=3840,n=0;const a=e.info.decoderConfig?.description;if(a){if(a.byteLength<18)throw new TypeError("Invalid decoder description provided for Opus; must be at least 18 bytes long.");const i=ArrayBuffer.isView(a)?new DataView(a.buffer,a.byteOffset,a.byteLength):new DataView(a);o=i.getUint16(10,!0),n=i.getInt16(14,!0)}return vr("dOps",[Er(0),Er(e.info.numberOfChannels),zt(o),et(e.info.sampleRate),kg(n),Er(0)])},BO=e=>Xt("stts",0,0,[et(e.timeToSampleTable.length),e.timeToSampleTable.map(o=>[et(o.sampleCount),et(o.sampleDelta)])]),qO=e=>{if(e.samples.every(n=>n.type==="key"))return null;let o=[...e.samples.entries()].filter(([,n])=>n.type==="key");return Xt("stss",0,0,[et(o.length),o.map(([n])=>et(n+1))])},$O=e=>Xt("stsc",0,0,[et(e.compactlyCodedChunkTable.length),e.compactlyCodedChunkTable.map(o=>[et(o.firstChunk),et(o.samplesPerChunk),et(1)])]),UO=e=>Xt("stsz",0,0,[et(0),et(e.samples.length),e.samples.map(o=>et(o.size))]),HO=e=>e.finalizedChunks.length>0&&ld(e.finalizedChunks).offset>=2**32?Xt("co64",0,0,[et(e.finalizedChunks.length),e.finalizedChunks.map(o=>qi(o.offset))]):Xt("stco",0,0,[et(e.finalizedChunks.length),e.finalizedChunks.map(o=>et(o.offset))]),KO=e=>Xt("ctts",0,0,[et(e.compositionTimeOffsetTable.length),e.compositionTimeOffsetTable.map(o=>[et(o.sampleCount),et(o.sampleCompositionTimeOffset)])]),WO=e=>vr("mvex",null,e.map(VO)),VO=e=>Xt("trex",0,0,[et(e.id),et(1),et(0),et(0),et(0)]),db=(e,o)=>vr("moof",null,[GO(e),...o.map(YO)]),GO=e=>Xt("mfhd",0,0,[et(e)]),h2=e=>{let o=0,n=0,a=0,i=0,s=e.type==="delta";return n|=+s,s?o|=1:o|=2,o<<24|n<<16|a<<8|i},YO=e=>vr("traf",null,[ZO(e),QO(e),XO(e)]),ZO=e=>{let o=0;o|=8,o|=16,o|=32,o|=131072;let n=e.currentChunk.samples[1]??e.currentChunk.samples[0],a={duration:n.timescaleUnitsToNextSample,size:n.size,flags:h2(n)};return Xt("tfhd",0,o,[et(e.id),et(a.duration),et(a.size),et(a.flags)])},QO=e=>Xt("tfdt",1,0,[qi(Fo(e.currentChunk.startTimestamp,e.timescale))]),XO=e=>{let o=e.currentChunk.samples.map(S=>S.timescaleUnitsToNextSample),n=e.currentChunk.samples.map(S=>S.size),a=e.currentChunk.samples.map(h2),i=e.currentChunk.samples.map(S=>Fo(S.presentationTimestamp-S.decodeTimestamp,e.timescale)),s=new Set(o),u=new Set(n),p=new Set(a
339),h=new Set(i),g=p.size===2&&a[0]!==a[1],w=s.size>1,d=u.size>1,f=!g&&p.size>1,m=h.size>1||[...h].some(S=>S!==0),k=0;return k|=1,k|=4*+g,k|=256*+w,k|=512*+d,k|=1024*+f,k|=2048*+m,Xt("trun",1,k,[et(e.currentChunk.samples.length),et(e.currentChunk.offset-e.currentChunk.moofOffset||0),g?et(a[0]):[],e.currentChunk.samples.map((S,_)=>[w?et(o[_]):[],d?et(n[_]):[],f?et(a[_]):[],m?dO(i[_]):[]])])},JO=e=>vr("mfra",null,[...e.map(eP),tP()]),eP=(e,o)=>Xt("tfra",1,0,[et(e.id),et(63),et(e.finalizedChunks.length),e.finalizedChunks.map(a=>[qi(Fo(a.startTimestamp,e.timescale)),qi(a.moofOffset),et(o+1),et(1),et(1)])]),tP=()=>Xt("mfro",0,0,[et(0)]),rP={avc:"avc1",hevc:"hvc1",vp9:"vp09",av1:"av01"},nP={avc:RO,hevc:DO,vp9:MO,av1:IO},oP={aac:"mp4a",opus:"Opus"},aP={aac:FO,opus:zO},qd=class{},m2=class extends qd{constructor(){super(...arguments),this.buffer=null}},g2=class extends qd{constructor(e){if(super(),this.options=e,typeof e!="object")throw new TypeError("StreamTarget requires an options object to be passed to its constructor.");if(e.onData){if(typeof e.onData!="function")throw new TypeError("options.onData, when provided, must be a function.");if(e.onData.length<2)throw new TypeError("options.onData, when provided, must be a function that takes in at least two arguments (data and position). Ignoring the position argument, which specifies the byte offset at which the data is to be written, can lead to broken outputs.")}if(e.chunked!==void 0&&typeof e.chunked!="boolean")throw new TypeError("options.chunked, when provided, must be a boolean.");if(e.chunkSize!==void 0&&(!Number.isInteger(e.chunkSize)||e.chunkSize<1024))throw new TypeError("options.chunkSize, when provided, must be an integer and not smaller than 1024.")}},iP=class extends qd{constructor(e,o){if(super(),this.stream=e,this.options=o,!(e instanceof FileSystemWritableFileStream))throw new TypeError("FileSystemWritableFileStreamTarget requires a FileSystemWritableFileStream instance.");if(o!==void 0&&typeof o!="object")throw new TypeError("FileSystemWritableFileStreamTarget's options, when provided, must be an object.");if(o&&o.chunkSize!==void 0&&(!Number.isInteger(o.chunkSize)||o.chunkSize<=0))throw new TypeError("options.chunkSize, when provided, must be a positive integer")}},Oi,_s,y2=class{constructor(){this.pos=0,Nt(this,Oi,new Uint8Array(8)),Nt(this,_s,new DataView(ge(this,Oi).buffer)),this.offsets=new WeakMap}seek(e){this.pos=e}writeU32(e){ge(this,_s).setUint32(0,e,!1),this.write(ge(this,Oi).subarray(0,4))}writeU64(e){ge(this,_s).setUint32(0,Math.floor(e/2**32),!1),ge(this,_s).setUint32(4,e,!1),this.write(ge(this,Oi).subarray(0,8))}writeAscii(e){for(let o=0;o<e.length;o++)ge(this,_s).setUint8(o%8,e.charCodeAt(o)),o%8===7&&this.write(ge(this,Oi));e.length%8!==0&&this.write(ge(this,Oi).subarray(0,e.length%8))}writeBox(e){if(this.offsets.set(e,this.pos),e.contents&&!e.children)this.writeBoxHeader(e,e.size??e.contents.byteLength+8),this.write(e.contents);else{let o=this.pos;if(this.writeBoxHeader(e,0),e.contents&&this.write(e.contents),e.children)for(let i of e.children)i&&this.writeBox(i);let n=this.pos,a=e.size??n-o;this.seek(o),this.writeBoxHeader(e,a),this.seek(n)}}writeBoxHeader(e,o){this.writeU32(e.largeSize?1:o),this.writeAscii(e.type),e.largeSize&&this.writeU64(o)}measureBoxHeader(e){return 8+(e.largeSize?8:0)}patchBox(e){let o=this.pos;this.seek(this.offsets.get(e)),this.writeBox(e),this.seek(o)}measureBox(e){if(e.contents&&!e.children)return this.measureBoxHeader(e)+e.contents.byteLength;{let o=this.measureBoxHeader(e);if(e.contents&&(o+=e.contents.byteLength),e.children)for(let n of e.children)n&&(o+=this.measureBox(n));return o}}};Oi=new WeakMap;_s=new WeakMap;var Yc,Ii,lu,$l,Zc,Am,sP=class extends y2{constructor(e){super(),Nt(this,Zc),Nt(this,Yc,void 0),Nt(this,Ii,new ArrayBuffer(2**16)),Nt(this,lu,new Uint8Array(ge(this,Ii))),Nt(this,$l,0),Mr(this,Yc,e)}write(e){Tt(this,Zc,Am).call(this,this.pos+e.byteLength),ge(this,lu).set(e,this.pos),this.pos+=e.byteLength,Mr(this,$l,Math.max(ge(this,$l),this.pos))}finalize(){Tt(this,Zc,Am).call(this,this.pos),ge(this,Yc).buffer=ge(this,Ii).slice(0,Math.max(ge(this,$l),this.pos))}};Yc=new WeakMap;Ii=new WeakMap;lu=new WeakMap;$l=new WeakMap;Zc=new WeakSet;Am=function(e){let o=ge(this,Ii).byteLength;for(;o<e;)o*=2;if(o===ge(this,Ii).byteLength)return;let n=new ArrayBuffer(o),a=new Uint8Array(n);a.set(ge(this,lu),0),Mr(this,Ii,n),Mr(this,lu,a)};var lP=2**24,uP=2,Vl,Pi,Ul,ha,Cn,ud,jm,_g,w2,Ng,v2,Gl,cd,Eg=class extends y2{constructor(e){super(),Nt(this,ud),Nt(this,_g),Nt(this,Ng),Nt(this,Gl),Nt(this,Vl,void 0),Nt(this,Pi,[]),Nt(this,Ul,void 0),Nt(this,ha,void 0),Nt(this,Cn,[]),Mr(this,Vl,e),Mr(this,Ul,e.options?.chunked??!1),Mr(this,ha,e.options?.chunkSize??lP)}write(e){ge(this,Pi).push({data:e.slice(),start:this.pos}),this.pos+=e.byteLength}flush(){if(ge(this,Pi).length===0)return;let e=[],o=[...ge(this,Pi)].sort((n,a)=>n.start-a.start);e.push({start:o[0].start,size:o[0].data.byteLength});for(let n=1;n<o.length;n++){let a=e[e.length-1],i=o[n];i.start<=a.start+a.size?a.size=Math.max(a.size,i.start+i.data.byteLength-a.start):e.push({start:i.start,size:i.data.byteLength})}for(let n of e){n.data=new Uint8Array(n.size);for(let a of ge(this,Pi))n.start<=a.start&&a.start<n.start+n.size&&n.data.set(a.data,a.start-n.start);
339ge(this,Ul)?(Tt(this,ud,jm).call(this,n.data,n.start),Tt(this,Gl,cd).call(this)):ge(this,Vl).options.onData?.(n.data,n.start)}ge(this,Pi).length=0}finalize(){ge(this,Ul)&&Tt(this,Gl,cd).call(this,!0)}};Vl=new WeakMap;Pi=new WeakMap;Ul=new WeakMap;ha=new WeakMap;Cn=new WeakMap;ud=new WeakSet;jm=function(e,o){let n=ge(this,Cn).findIndex(p=>p.start<=o&&o<p.start+ge(this,ha));n===-1&&(n=Tt(this,Ng,v2).call(this,o));let a=ge(this,Cn)[n],i=o-a.start,s=e.subarray(0,Math.min(ge(this,ha)-i,e.byteLength));a.data.set(s,i);let u={start:i,end:i+s.byteLength};if(Tt(this,_g,w2).call(this,a,u),a.written[0].start===0&&a.written[0].end===ge(this,ha)&&(a.shouldFlush=!0),ge(this,Cn).length>uP){for(let p=0;p<ge(this,Cn).length-1;p++)ge(this,Cn)[p].shouldFlush=!0;Tt(this,Gl,cd).call(this)}s.byteLength<e.byteLength&&Tt(this,ud,jm).call(this,e.subarray(s.byteLength),o+s.byteLength)};_g=new WeakSet;w2=function(e,o){let n=0,a=e.written.length-1,i=-1;for(;n<=a;){let s=Math.floor(n+(a-n+1)/2);e.written[s].start<=o.start?(n=s+1,i=s):a=s-1}for(e.written.splice(i+1,0,o),(i===-1||e.written[i].end<o.start)&&i++;i<e.written.length-1&&e.written[i].end>=e.written[i+1].start;)e.written[i].end=Math.max(e.written[i].end,e.written[i+1].end),e.written.splice(i+1,1)};Ng=new WeakSet;v2=function(e){let n={start:Math.floor(e/ge(this,ha))*ge(this,ha),data:new Uint8Array(ge(this,ha)),written:[],shouldFlush:!1};return ge(this,Cn).push(n),ge(this,Cn).sort((a,i)=>a.start-i.start),ge(this,Cn).indexOf(n)};Gl=new WeakSet;cd=function(e=!1){for(let o=0;o<ge(this,Cn).length;o++){let n=ge(this,Cn)[o];if(!(!n.shouldFlush&&!e)){for(let a of n.written)ge(this,Vl).options.onData?.(n.data.subarray(a.start,a.end),n.start+a.start);ge(this,Cn).splice(o--,1)}}};var cP=class extends Eg{constructor(e){super(new g2({onData:(o,n)=>e.stream.write({type:"write",data:o,position:n}),chunked:!0,chunkSize:e.options?.chunkSize}))}},Tm=1e3,dP=["avc","hevc","vp9","av1"],fP=["aac","opus"],pP=2082844800,hP=["strict","offset","cross-track-offset"],lt,ht,dd,_n,$r,Rr,Es,Os,Cg,Ri,Di,Yl,Om,b2,Pm,x2,Ag,k2,Rm,S2,jg,_2,Qc,Dm,Ro,la,Tg,N2,Zl,fd,pd,Og,Is,yu,Xc,Mm,mP=class{constructor(e){if(Nt(this,Om),Nt(this,Pm),Nt(this,Ag),Nt(this,Rm),Nt(this,jg),Nt(this,Qc),Nt(this,Ro),Nt(this,Tg),Nt(this,Zl),Nt(this,pd),Nt(this,Is),Nt(this,Xc),Nt(this,lt,void 0),Nt(this,ht,void 0),Nt(this,dd,void 0),Nt(this,_n,void 0),Nt(this,$r,null),Nt(this,Rr,null),Nt(this,Es,Math.floor(Date.now()/1e3)+pP),Nt(this,Os,[]),Nt(this,Cg,1),Nt(this,Ri,[]),Nt(this,Di,[]),Nt(this,Yl,!1),Tt(this,Om,b2).call(this,e),e.video=Wl(e.video),e.audio=Wl(e.audio),e.fastStart=Wl(e.fastStart),this.target=e.target,Mr(this,lt,{firstTimestampBehavior:"strict",...e}),e.target instanceof m2)Mr(this,ht,new sP(e.target));else if(e.target instanceof g2)Mr(this,ht,new Eg(e.target));else if(e.target instanceof iP)Mr(this,ht,new cP(e.target));else throw new Error(`Invalid target: ${e.target}`);Tt(this,Rm,S2).call(this),Tt(this,Pm,x2).call(this)}addVideoChunk(e,o,n,a){if(!(e instanceof EncodedVideoChunk))throw new TypeError("addVideoChunk's first argument (sample) must be of type EncodedVideoChunk.");if(o&&typeof o!="object")throw new TypeError("addVideoChunk's second argument (meta), when provided, must be an object.");if(n!==void 0&&(!Number.isFinite(n)||n<0))throw new TypeError("addVideoChunk's third argument (timestamp), when provided, must be a non-negative real number.");if(a!==void 0&&!Number.isFinite(a))throw new TypeError("addVideoChunk's fourth argument (compositionTimeOffset), when provided, must be a real number.");let i=new Uint8Array(e.byteLength);e.copyTo(i),this.addVideoChunkRaw(i,e.type,n??e.timestamp,e.duration,o,a)}addVideoChunkRaw(e,o,n,a,i,s){if(!(e instanceof Uint8Array))throw new TypeError("addVideoChunkRaw's first argument (data) must be an instance of Uint8Array.");if(o!=="key"&&o!=="delta")throw new TypeError("addVideoChunkRaw's second argument (type) must be either 'key' or 'delta'.");if(!Number.isFinite(n)||n<0)throw new TypeError("addVideoChunkRaw's third argument (timestamp) must be a non-negative real number.");if(!Number.isFinite(a)||a<0)throw new TypeError("addVideoChunkRaw's fourth argument (duration) must be a non-negative real number.");if(i&&typeof i!="object")throw new TypeError("addVideoChunkRaw's fifth argument (meta), when provided, must be an object.");if(s!==void 0&&!Number.isFinite(s))throw new TypeError("addVideoChunkRaw's sixth argument (compositionTimeOffset), when provided, must be a real number.");if(Tt(this,Xc,Mm).call(this),!ge(this,lt).video)throw new Error("No video track declared.");
339if(typeof ge(this,lt).fastStart=="object"&&ge(this,$r).samples.length===ge(this,lt).fastStart.expectedVideoChunks)throw new Error(`Cannot add more video chunks than specified in 'fastStart' (${ge(this,lt).fastStart.expectedVideoChunks}).`);let u=Tt(this,Qc,Dm).call(this,ge(this,$r),e,o,n,a,i,s);if(ge(this,lt).fastStart==="fragmented"&&ge(this,Rr)){for(;ge(this,Di).length>0&&ge(this,Di)[0].decodeTimestamp<=u.decodeTimestamp;){let p=ge(this,Di).shift();Tt(this,Ro,la).call(this,ge(this,Rr),p)}u.decodeTimestamp<=ge(this,Rr).lastDecodeTimestamp?Tt(this,Ro,la).call(this,ge(this,$r),u):ge(this,Ri).push(u)}else Tt(this,Ro,la).call(this,ge(this,$r),u)}addAudioChunk(e,o,n){if(!(e instanceof EncodedAudioChunk))throw new TypeError("addAudioChunk's first argument (sample) must be of type EncodedAudioChunk.");if(o&&typeof o!="object")throw new TypeError("addAudioChunk's second argument (meta), when provided, must be an object.");if(n!==void 0&&(!Number.isFinite(n)||n<0))throw new TypeError("addAudioChunk's third argument (timestamp), when provided, must be a non-negative real number.");let a=new Uint8Array(e.byteLength);e.copyTo(a),this.addAudioChunkRaw(a,e.type,n??e.timestamp,e.duration,o)}addAudioChunkRaw(e,o,n,a,i){if(!(e instanceof Uint8Array))throw new TypeError("addAudioChunkRaw's first argument (data) must be an instance of Uint8Array.");if(o!=="key"&&o!=="delta")throw new TypeError("addAudioChunkRaw's second argument (type) must be either 'key' or 'delta'.");if(!Number.isFinite(n)||n<0)throw new TypeError("addAudioChunkRaw's third argument (timestamp) must be a non-negative real number.");if(!Number.isFinite(a)||a<0)throw new TypeError("addAudioChunkRaw's fourth argument (duration) must be a non-negative real number.");if(i&&typeof i!="object")throw new TypeError("addAudioChunkRaw's fifth argument (meta), when provided, must be an object.");if(Tt(this,Xc,Mm).call(this),!ge(this,lt).audio)throw new Error("No audio track declared.");if(typeof ge(this,lt).fastStart=="object"&&ge(this,Rr).samples.length===ge(this,lt).fastStart.expectedAudioChunks)throw new Error(`Cannot add more audio chunks than specified in 'fastStart' (${ge(this,lt).fastStart.expectedAudioChunks}).`);let s=Tt(this,Qc,Dm).call(this,ge(this,Rr),e,o,n,a,i);if(ge(this,lt).fastStart==="fragmented"&&ge(this,$r)){for(;ge(this,Ri).length>0&&ge(this,Ri)[0].decodeTimestamp<=s.decodeTimestamp;){let u=ge(this,Ri).shift();Tt(this,Ro,la).call(this,ge(this,$r),u)}s.decodeTimestamp<=ge(this,$r).lastDecodeTimestamp?Tt(this,Ro,la).call(this,ge(this,Rr),s):ge(this,Di).push(s)}else Tt(this,Ro,la).call(this,ge(this,Rr),s)}finalize(){if(ge(this,Yl))throw new Error("Cannot finalize a muxer more than once.");if(ge(this,lt).fastStart==="fragmented"){for(let o of ge(this,Ri))Tt(this,Ro,la).call(this,ge(this,$r),o);for(let o of ge(this,Di))Tt(this,Ro,la).call(this,ge(this,Rr),o);Tt(this,pd,Og).call(this,!1)}else ge(this,$r)&&Tt(this,Zl,fd).call(this,ge(this,$r)),ge(this,Rr)&&Tt(this,Zl,fd).call(this,ge(this,Rr));let e=[ge(this,$r),ge(this,Rr)].filter(Boolean);if(ge(this,lt).fastStart==="in-memory"){let o;for(let a=0;a<2;a++){let i=Gc(e,ge(this,Es)),s=ge(this,ht).measureBox(i);o=ge(this,ht).measureBox(ge(this,_n));let u=ge(this,ht).pos+s+o;for(let p of ge(this,Os)){p.offset=u;for(let{data:h}of p.samples)u+=h.byteLength,o+=h.byteLength}if(u<2**32)break;o>=2**32&&(ge(this,_n).largeSize=!0)}let n=Gc(e,ge(this,Es));ge(this,ht).writeBox(n),ge(this,_n).size=o,ge(this,ht).writeBox(ge(this,_n));for(let a of ge(this,Os))for(let i of a.samples)ge(this,ht).write(i.data),i.data=null}else if(ge(this,lt).fastStart==="fragmented"){let o=ge(this,ht).pos,n=JO(e);ge(this,ht).writeBox(n);let a=ge(this,ht).pos-o;ge(this,ht).seek(ge(this,ht).pos-4),ge(this,ht).writeU32(a)}else{let o=ge(this,ht).offsets.get(ge(this,_n)),n=ge(this,ht).pos-o;ge(this,_n).size=n,ge(this,_n).largeSize=n>=2**32,ge(this,ht).patchBox(ge(this,_n));let a=Gc(e,ge(this,Es));if(typeof ge(this,lt).fastStart=="object"){ge(this,ht).seek(ge(this,dd)),ge(this,ht).writeBox(a);let i=o-ge(this,ht).pos;ge(this,ht).writeBox(pO(i))}else ge(this,ht).writeBox(a)}Tt(this,Is,yu).call(this),ge(this,ht).finalize(),Mr(this,Yl,!0)}};lt=new WeakMap;ht=new WeakMap;dd=new WeakMap;_n=new WeakMap;$r=new WeakMap;Rr=new WeakMap;Es=new WeakMap;Os=new WeakMap;Cg=new WeakMap;Ri=new WeakMap;Di=new WeakMap;Yl=new WeakMap;Om=new WeakSet;b2=function(e){if(typeof e!="object")throw new TypeError("The muxer requires an options object to be passed to its constructor.");if(!(e.target instanceof qd))throw new TypeError("The target must be provided and an instance of Target.");if(e.video){if(!dP.includes(e.video.codec))throw new TypeError(`Unsupported video codec: ${e.video.codec}`);if(!Number.isInteger(e.video.width)||e.video.width<=0)throw new TypeError(`Invalid video width: ${e.video.width}. Must be a positive integer.`);if(!Number.isInteger(e.video.height)||e.video.height<=0)throw new TypeError(`Invalid video height: ${e.video.height}. Must be a positive integer.`);const o=e.video.rotation;if(typeof o=="number"&&![0,90,180,270].includes(o))throw new TypeError(`Invalid video rotation: ${o}. Has to be 0, 90, 180 or 270.`);if(Array.isArray(o)&&(o.length!==9||o.some(n=>typeof n!="number")))throw new TypeError(`Invalid video transformation matrix: ${o.join()}`);if(e.video.frameRate!==void 0&&(!Number.isInteger(e.video.frameRate)||e.video.frameRate<=0))throw new TypeError(`Invalid video frame rate: ${e.video.frameRate}. Must be a positive integer.`)}if(e.audio){if(!fP.includes(e.audio.codec))throw new TypeError(`Unsupported audio codec: ${e.audio.codec}`);if(!Number.isInteger(e.audio.numberOfChannels)||e.audio.numberOfChannels<=0)throw new TypeError(`Invalid number of audio channels: ${e.audio.numberOfChannels}. Must be a positive integer.`);if(!Number.isInteger(e.audio.sampleRate)||e.audio.sampleRate<=0)throw new TypeError(`Invalid audio sample rate: ${e.audio.sampleRate}. Must be a positive integer.`)}if(e.firstTimestampBehavior&&!hP.includes(e.firstTimestampBehavior))throw new TypeError(`Invalid first timestamp behavior: ${e.firstTimestampBehavior}`);if(typeof e.fastStart=="object"){if(e.video){if(e.fastStart.expectedVideoChunks===void 0)throw new TypeError("'fastStart' is an object but is missing property 'expectedVideoChunks'.");if(!Number.isInteger(e.fastStart.expectedVideoChunks)||e.fastStart.expectedVideoChunks<0)throw new TypeError("'expectedVideoChunks' must be a non-negative integer.")}if(e.audio){if(e.fastStart.expectedAudioChunks===void 0)throw new TypeError("'fastStart' is an object but is missing property 'expectedAudioChunks'.");if(!Number.isInteger(e.fastStart.expectedAudioChunks)||e.fastStart.expectedAudioChunks<0)throw new TypeError("'expectedAudioChunks' must be a non-negative integer.")}}else if(![!1,"in-memory","fragmented"].includes(e.fastStart))throw new TypeError("'fastStart' option must be false, 'in-memory', 'fragmented' or an object.");if(e.minFragmentDuration!==void 0&&(!Number.isFinite(e.minFragmentDuration)||e.minFragmentDuration<0))throw new TypeError("'minFragmentDuration' must be a non-negative number.")};Pm=new WeakSet;x2=function(){if(ge(this,ht).writeBox(fO({holdsAvc:ge(this,lt).video?.codec==="avc",fragmented:ge(this,lt).fastStart==="fragmented"})),Mr(this,dd,ge(this,ht).pos),ge(this,lt).fastStart==="in-memory")Mr(this,_n,Cm(!1));else if(ge(this,lt).fastStart!=="fragmented"){if(typeof ge(this,lt).fastStart=="object"){let e=Tt(this,Ag,k2).call(this);ge(this,ht).seek(ge(this,ht).pos+e)}Mr(this,_n,Cm(!0)),ge(this,ht).writeBox(ge(this,_n))}Tt(this,Is,yu).call(this)};Ag=new WeakSet;k2=function(){if(typeof ge(this,lt).fastStart!="object")return;let e=0,o=[ge(this,lt).fastStart.expectedVideoChunks,ge(this,lt).fastStart.expectedAudioChunks];for(let n of o)n&&(e+=8*Math.ceil(2/3*n),e+=4*n,e+=12*Math.ceil(2/3*n),e+=4*n,e+=8*n);return e+=4096,e};Rm=new WeakSet;S2=function(){if(ge(this,lt).video&&Mr(this,$r,{id:1,info:{type:"video",codec:ge(this,lt).video.codec,width:ge(this,lt).video.width,height:ge(this,lt).video.height,rotation:ge(this,lt).video.rotation??0,decoderConfig:null},timescale:ge(this,lt).video.frameRate??57600,samples:[],finalizedChunks:[],currentChunk:null,firstDecodeTimestamp:void 0,lastDecodeTimestamp:-1,timeToSampleTable:[],compositionTimeOffsetTable:[],lastTimescaleUnits:null,lastSample:null,compactlyCodedChunkTable:[]}),ge(this,lt).audio&&(Mr(this,Rr,{id:ge(this,lt).video?2:1,info:{type:"audio",codec:ge(this,lt).audio.codec,numberOfChannels:ge(this,lt).audio.numberOfChannels,sampleRate:ge(this,lt).audio.sampleRate,decoderConfig:null},timescale:ge(this,lt).audio.sampleRate,samples:[],finalizedChunks:[],currentChunk:null,firstDecodeTimestamp:void 0,lastDecodeTimestamp:-1,timeToSampleTable:[],compositionTimeOffsetTable:[],lastTimescaleUnits:null,lastSample:null,compactlyCodedChunkTable:[]}),ge(this,lt).audio.codec==="aac")){let e=Tt(this,jg,_2).call(this,2,ge(this,lt).audio.sampleRate,ge(this,lt).audio.numberOfChannels);ge(this,Rr).info.decoderConfig={codec:ge(this,lt).audio.codec,description:e,numberOfChannels:ge(this,lt).audio.numberOfChannels,sampleRate:ge(this,lt).audio.sampleRate}}};
339jg=new WeakSet;_2=function(e,o,n){let i=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350].indexOf(o),s=n,u="";u+=e.toString(2).padStart(5,"0"),u+=i.toString(2).padStart(4,"0"),i===15&&(u+=o.toString(2).padStart(24,"0")),u+=s.toString(2).padStart(4,"0");let p=Math.ceil(u.length/8)*8;u=u.padEnd(p,"0");let h=new Uint8Array(u.length/8);for(let g=0;g<u.length;g+=8)h[g/8]=parseInt(u.slice(g,g+8),2);return h};Qc=new WeakSet;Dm=function(e,o,n,a,i,s,u){let p=a/1e6,h=(a-(u??0))/1e6,g=i/1e6,w=Tt(this,Tg,N2).call(this,p,h,e);return p=w.presentationTimestamp,h=w.decodeTimestamp,s?.decoderConfig&&(e.info.decoderConfig===null?e.info.decoderConfig=s.decoderConfig:Object.assign(e.info.decoderConfig,s.decoderConfig)),{presentationTimestamp:p,decodeTimestamp:h,duration:g,data:o,size:o.byteLength,type:n,timescaleUnitsToNextSample:Fo(g,e.timescale)}};Ro=new WeakSet;la=function(e,o){ge(this,lt).fastStart!=="fragmented"&&e.samples.push(o);const n=Fo(o.presentationTimestamp-o.decodeTimestamp,e.timescale);if(e.lastTimescaleUnits!==null){let i=Fo(o.decodeTimestamp,e.timescale,!1),s=Math.round(i-e.lastTimescaleUnits);if(e.lastTimescaleUnits+=s,e.lastSample.timescaleUnitsToNextSample=s,ge(this,lt).fastStart!=="fragmented"){let u=ld(e.timeToSampleTable);
339u.sampleCount===1?(u.sampleDelta=s,u.sampleCount++):u.sampleDelta===s?u.sampleCount++:(u.sampleCount--,e.timeToSampleTable.push({sampleCount:2,sampleDelta:s}));const p=ld(e.compositionTimeOffsetTable);p.sampleCompositionTimeOffset===n?p.sampleCount++:e.compositionTimeOffsetTable.push({sampleCount:1,sampleCompositionTimeOffset:n})}}else e.lastTimescaleUnits=0,ge(this,lt).fastStart!=="fragmented"&&(e.timeToSampleTable.push({sampleCount:1,sampleDelta:Fo(o.duration,e.timescale)}),e.compositionTimeOffsetTable.push({sampleCount:1,sampleCompositionTimeOffset:n}));e.lastSample=o;let a=!1;if(!e.currentChunk)a=!0;else{let i=o.presentationTimestamp-e.currentChunk.startTimestamp;if(ge(this,lt).fastStart==="fragmented"){let s=ge(this,$r)??ge(this,Rr);const u=ge(this,lt).minFragmentDuration??1;e===s&&o.type==="key"&&i>=u&&(a=!0,Tt(this,pd,Og).call(this))}else a=i>=.5}a&&(e.currentChunk&&Tt(this,Zl,fd).call(this,e),e.currentChunk={startTimestamp:o.presentationTimestamp,samples:[]}),e.currentChunk.samples.push(o)};Tg=new WeakSet;N2=function(e,o,n){const a=ge(this,lt).firstTimestampBehavior==="strict",i=n.lastDecodeTimestamp===-1;if(a&&i&&o!==0)throw new Error(`The first chunk for your media track must have a timestamp of 0 (received DTS=${o}).Non-zero first timestamps are often caused by directly piping frames or audio data from a MediaStreamTrack into the encoder. Their timestamps are typically relative to the age of thedocument, which is probably what you want. 340 341If you want to offset all timestamps of a track such that the first one is zero, set firstTimestampBehavior: 'offset' in the options. 342`);if(ge(this,lt).firstTimestampBehavior==="offset"||ge(this,lt).firstTimestampBehavior==="cross-track-offset"){n.firstDecodeTimestamp===void 0&&(n.firstDecodeTimestamp=o);let u;ge(this,lt).firstTimestampBehavior==="offset"?u=n.firstDecodeTimestamp:u=Math.min(ge(this,$r)?.firstDecodeTimestamp??1/0,ge(this,Rr)?.firstDecodeTimestamp??1/0),o-=u,e-=u}if(o<n.lastDecodeTimestamp)throw new Error(`Timestamps must be monotonically increasing (DTS went from ${n.lastDecodeTimestamp*1e6} to ${o*1e6}).`);return n.lastDecodeTimestamp=o,{presentationTimestamp:e,decodeTimestamp:o}};Zl=new WeakSet;fd=function(e){if(ge(this,lt).fastStart==="fragmented")throw new Error("Can't finalize individual chunks if 'fastStart' is set to 'fragmented'.");if(e.currentChunk){if(e.finalizedChunks.push(e.currentChunk),ge(this,Os).push(e.currentChunk),(e.compactlyCodedChunkTable.length===0||ld(e.compactlyCodedChunkTable).samplesPerChunk!==e.currentChunk.samples.length)&&e.compactlyCodedChunkTable.push({firstChunk:e.finalizedChunks.length,samplesPerChunk:e.currentChunk.samples.length}),ge(this,lt).fastStart==="in-memory"){e.currentChunk.offset=0;return}e.currentChunk.offset=ge(this,ht).pos;for(let o of e.currentChunk.samples)ge(this,ht).write(o.data),o.data=null;Tt(this,Is,yu).call(this)}};pd=new WeakSet;Og=function(e=!0){if(ge(this,lt).fastStart!=="fragmented")throw new Error("Can't finalize a fragment unless 'fastStart' is set to 'fragmented'.");let o=[ge(this,$r),ge(this,Rr)].filter(p=>p&&p.currentChunk);if(o.length===0)return;let n=uO(this,Cg)._++;if(n===1){let p=Gc(o,ge(this,Es),!0);ge(this,ht).writeBox(p)}let a=ge(this,ht).pos,i=db(n,o);ge(this,ht).writeBox(i);{let p=Cm(!1),h=0;for(let w of o)for(let d of w.currentChunk.samples)h+=d.size;let g=ge(this,ht).measureBox(p)+h;g>=2**32&&(p.largeSize=!0,g=ge(this,ht).measureBox(p)+h),p.size=g,ge(this,ht).writeBox(p)}for(let p of o){p.currentChunk.offset=ge(this,ht).pos,p.currentChunk.moofOffset=a;for(let h of p.currentChunk.samples)ge(this,ht).write(h.data),h.data=null}let s=ge(this,ht).pos;ge(this,ht).seek(ge(this,ht).offsets.get(i));let u=db(n,o);ge(this,ht).writeBox(u),ge(this,ht).seek(s);for(let p of o)p.finalizedChunks.push(p.currentChunk),ge(this,Os).push(p.currentChunk),p.currentChunk=null;e&&Tt(this,Is,yu).call(this)};Is=new WeakSet;yu=function(){ge(this,ht)instanceof Eg&&ge(this,ht).flush()};Xc=new WeakSet;Mm=function(){if(ge(this,Yl))throw new Error("Cannot add new video or audio chunks after the file has been finalized.")};const E2=(e,o,n)=>({codec:"avc1.640028",width:e,height:o,bitrate:1e7,framerate:n,avc:{format:"avc"}});async function gP(e,o,n){if(typeof VideoEncoder>"u"||typeof VideoFrame>"u")return!1;try{return!!(await VideoEncoder.isConfigSupported(E2(e,o,n))).supported}catch{return!1}}function fb(e,o){const n=document.createElement("a");n.href=URL.createObjectURL(e),n.download=o,n.click(),URL.revokeObjectURL(n.href)}async function C2(e,o){const{fps:n,total:a,drawFrame:i,name:s,onProgress:u}=o,p=e.width,h=e.height;if(await gP(p,h,n)){const _=new m2,b=new mP({target:_,video:{codec:"avc",width:p,height:h},fastStart:"in-memory",firstTimestampBehavior:"offset"});let x=null;const C=new VideoEncoder({output:(j,L)=>b.addVideoChunk(j,L),error:j=>{x=j}});C.configure(E2(p,h,n));const N=1e6/n;for(let j=0;j<a;j++){if(x)throw x;i(j);const L=new VideoFrame(e,{timestamp:Math.round(j*N),duration:Math.round(N)});C.encode(L,{keyFrame:j%(n*2)===0}),L.close(),C.encodeQueueSize>30&&await C.flush(),j%15===0&&u?.(j/a)}if(await C.flush(),x)throw x;
342return b.finalize(),fb(new Blob([_.buffer],{type:"video/mp4"}),`${s}.mp4`),u?.(1),"mp4"}if(typeof MediaRecorder>"u")throw new Error("This browser cannot encode video");const g=["video/mp4;codecs=avc1","video/mp4","video/webm;codecs=vp9","video/webm"].find(_=>MediaRecorder.isTypeSupported(_))||"";i(0);const w=e.captureStream(n),d=new MediaRecorder(w,g?{mimeType:g,videoBitsPerSecond:1e7}:void 0),f=[];d.ondataavailable=_=>{_.data&&_.data.size&&f.push(_.data)};const m=new Promise(_=>{d.onstop=()=>_()});d.start();const k=performance.now();await new Promise(_=>{const b=()=>{const x=Math.floor((performance.now()-k)/1e3*n);if(x>=a){i(a-1),_();return}i(x),u?.(x/a),requestAnimationFrame(b)};requestAnimationFrame(b)}),await new Promise(_=>setTimeout(_,350)),d.stop(),await m;const S=g.startsWith("video/mp4")?"mp4":"webm";return fb(new Blob(f,{type:g||"video/webm"}),`${s}.${S}`),u?.(1),S}const Im=1.15,A2=1.45,yP=.22;function wP(e){return e*(Im+A2)}async function vP(e,o={}){const{format:n="post",style:a="light",fps:i=30,header:s=!1,onProgress:u}=o,p=e.filter(C=>C.items&&C.items.length>0);if(!p.length)throw new Error("No stats to animate");await lO();const[h,g]=gu[n],w=document.createElement("canvas");w.width=h,w.height=g;const d=w.getContext("2d"),f=Math.round(Im*i),m=Math.round((Im+A2)*i),k=Math.round(yP*i),S=p.length*m,b=a==="black"?"#000000":a!=="light"?"#1a1a1a":"#f5f5f5";return C2(w,{fps:i,total:S,drawFrame:C=>{const N=Math.min(p.length-1,Math.floor(C/m)),j=C-N*m;u2(d,p[N],n,a,{header:s,progress:Math.min(1,j/f)}),N>0&&j<k&&(d.save(),d.globalAlpha=1-j/k,d.fillStyle=b,d.fillRect(0,0,h,g),d.restore())},name:`prompt-brush-stats-${n}-${a}`,onProgress:u})}async function bP(e,o,n,a={}){const{hold:i=3,dissolve:s=0,fps:u=30,header:p=!1,onProgress:h}=a;if(!e.length)throw new Error("Pick some drawings first");const[g,w]=gu[o],d=[];for(let C=0;C<e.length;C++)d.push(await l2(e[C],o,n,{header:p})),h?.((C+1)/e.length*.2);const f=Math.max(1,Math.round(i*u)),m=Math.max(0,Math.round(s*u)),k=f+m,S=d.length*f+(d.length-1)*m,_=document.createElement("canvas");_.width=g,_.height=w;const b=_.getContext("2d");return C2(_,{fps:u,total:S,drawFrame:C=>{const N=Math.min(d.length-1,Math.floor(C/k)),j=C-N*k;b.globalAlpha=1,b.drawImage(d[N],0,0),m>0&&j>=f&&N<d.length-1&&(b.globalAlpha=(j-f+1)/(m+1),b.drawImage(d[N+1],0,0),b.globalAlpha=1)},name:`prompt-brush-video-${d.length}-${o}-${n}`,onProgress:C=>h?.(.2+C*.8)})}const pr="FK Grotesk Mono, monospace",Il="Delcan Mono, monospace",nm=120,ua=e=>{const o=new Date(e.createdAt).getTime();return Number.isFinite(o)?o:0},qc=e=>String(e.artistName||"").trim().toLowerCase(),xP=e=>{const o=ua(e);return o?new Date(o).toLocaleDateString("en-US",{month:"long",year:"numeric"}):"Undated"},om=[{id:"story",label:"Story · 1080Ã1920"},{id:"post",label:"Post · 1080Ã1350"},{id:"landscape",label:"Landscape · 1920Ã1080"}],kP=[{id:"light",label:"Light"},{id:"dark",label:"Dark"},{id:"black",label:"Black"},{id:"poster",label:"Poster"}];function kn({active:e,disabled:o,onClick:n,children:a}){return c.jsx("button",{onClick:n,disabled:o,className:`border rounded-full px-4 py-2 text-sm transition-colors ${e?"bg-foreground text-background border-foreground":"border-border text-foreground hover:bg-accent"} ${o?"opacity-40 cursor-not-allowed":""}`,style:{fontFamily:pr},children:a})}function SP(){const{artworks:e,prompts:o}=$n(),[n,a]=O.useState(""),[i,s]=O.useState(new Set),[u,p]=O.useState("story"),[h,g]=O.useState("light"),[w,d]=O.useState(!1),[f,m]=O.useState(null),[k,S]=O.useState(null),[_,b]=O.useState(nm),[x,C]=O.useState("newest"),[N,j]=O.useState(""),[L,P]=O.useState(!1),[z,H]=O.useState(null),[F,T]=O.useState(3),[D,B]=O.useState(!1),[$,W]=O.useState(null);O.useEffect(()=>b(nm),[n,x,N]);const Q=O.useMemo(()=>e.filter(ue=>ue.status==="approved"||ue.imageUrl||ue.imageData),[e]),te=O.useMemo(()=>{const ue=new Map;return Q.forEach(ye=>{const Te=qc(ye);if(!Te)return;const Re=ue.get(Te);Re?Re.n+=1:ue.set(Te,{label:String(ye.artistName).trim(),n:1})}),[...ue.entries()].map(([ye,Te])=>({key:ye,...Te})).sort((ye,Te)=>Te.n-ye.n||ye.label.localeCompare(Te.label))},[Q]),Z=O.useMemo(()=>{const ue=n.trim().toLowerCase();let ye=N?Q.filter(Re=>qc(Re)===N):Q;ue&&(ye=ye.filter(Re=>String(Re.promptText||"").toLowerCase().includes(ue)||String(Re.artistName||"").toLowerCase().includes(ue)||String(Re.promptNumber||"").includes(ue)));const Te=[...ye];switch(x){case"oldest":Te.sort((Re,Pe)=>ua(Re)-ua(Pe));break;case"marked":Te.sort((Re,Pe)=>(Pe.heartCount||0)-(Re.heartCount||0)||ua(Pe)-ua(Re));break;case"person":Te.sort((Re,Pe)=>qc(Re).localeCompare(qc(Pe))||ua(Pe)-ua(Re));break;default:Te.sort((Re,Pe)=>ua(Pe)-ua(Re))}return Te},[Q,n,N,x]),J=O.useMemo(()=>Z.slice(0,_),[Z,_]),V=ue=>x==="person"?String(ue.artistName||"").trim()||"â":x==="marked"?"":xP(ue),M=O.useMemo(()=>{const ue=new Map;Z.forEach(Re=>{const Pe=V(Re);ue.set(Pe,(ue.get(Pe)||0)+1)});const ye=[];let Te=null;return J.forEach(Re=>{const Pe=V(Re);Pe&&Pe!==Te&&(ye.push({kind:"head",label:Pe,n:ue.get(Pe)||0}),Te=Pe),ye.push({kind:"item",a:Re})}),ye},[Z,J,x]),K=O.useMemo(()=>Q.filter(ue=>i.has(ue.id)),[Q,i]),X=O.useMemo(()=>{const ue=new Map(Q.map(ye=>[ye.id,ye]));return[...i].map(ye=>
342ue.get(ye)).filter(Boolean)},[Q,i]),ie=ue=>s(ye=>{const Te=new Set(ye);return Te.has(ue)?Te.delete(ue):Te.add(ue),Te}),oe=()=>s(ue=>{const ye=new Set(ue);return J.forEach(Te=>ye.add(Te.id)),ye}),ee=()=>s(new Set),ne=ue=>{const ye=ue.slice();for(let Te=ye.length-1;Te>0;Te--){const Re=Math.floor(Math.random()*(Te+1));[ye[Te],ye[Re]]=[ye[Re],ye[Te]]}return ye},ce=ue=>{const Te=[...Q].sort((Re,Pe)=>(Pe.heartCount||0)-(Re.heartCount||0)).slice(0,Math.max(ue*3,40));s(new Set(ne(Te).slice(0,ue).map(Re=>Re.id)))},ae=ue=>s(new Set(ne(Q).slice(0,ue).map(ye=>ye.id))),Ae=o.length.toLocaleString(),Ie=Q.length.toLocaleString(),je=O.useMemo(()=>[{slug:"themes",kind:"donut",title:"What people ask us to draw",items:f1(o),footnote:`Based on ${Ae} prompts`},{slug:"prompt-length",kind:"columns",title:"How many words is a prompt?",items:h1(o),footnote:`Based on ${Ae} prompts`},{slug:"top-artists",kind:"bars",title:"Who has drawn the most",items:m1(Q),footnote:`Based on ${Ie} drawings`},{slug:"top-words",kind:"bars",title:"The words you reach for most",items:b1(o),footnote:`Based on ${Ae} prompts`},{slug:"drawn-vs-waiting",kind:"donut",title:"Drawn, or still waiting?",items:w1(o,Q),footnote:`Based on ${Ae} prompts`},{slug:"time-to-draw",kind:"columns",title:"How long until a prompt is drawn?",items:v1(o,Q).buckets,footnote:`Based on ${Ie} drawings`},{slug:"artist-distribution",kind:"columns",title:"How many drawings each artist makes",items:x1(Q),footnote:`Based on ${Ie} drawings`},{slug:"returning",kind:"columns",title:"How many weeks people come back",items:_1(Q).buckets,footnote:`Based on ${Ie} drawings`},{slug:"by-month",kind:"columns",title:"Prompts asked, by month",items:k1(o),footnote:`Based on ${Ae} prompts`},{slug:"busiest-day",kind:"columns",title:"When the community draws",items:S1(Q),footnote:`Based on ${Ie} drawings`}],[o,Q,Ae,Ie]),ze=u!=="story"&&h==="poster"?"light":h,Xe=async(ue,ye)=>{m(ue);try{await ye(),st.success("Image exported")}catch(Te){st.error(Te instanceof Error?Te.message:"Export failed")}finally{m(null)}},ot=async()=>{if(K.length===0||f)return;m("artwork");let ue=0,ye=0;for(let Te=0;Te<K.length;Te++){const Re=K[Te];S({done:Te,total:K.length});const Pe={imageUrl:Re.imageUrl,imageData:Re.imageData,promptText:Re.promptText,promptNumber:Re.promptNumber,artistName:Re.artistName};try{await iO(Pe,u,ze,{header:w}),ue++}catch{ye++}await new Promise(at=>setTimeout(at,400))}S(null),m(null),st.success(`Exported ${ue} image${ue===1?"":"s"}${ye?` · ${ye} failed`:""}`)},Ot=async()=>{if(!(f||X.length===0)){m("pvideo"),W(0);try{const ue=X.map(Te=>({imageUrl:Te.imageUrl,imageData:Te.imageData,promptText:Te.promptText,promptNumber:Te.promptNumber,artistName:Te.artistName})),ye=await bP(ue,u,ze,{hold:F,dissolve:D?.5:0,header:w,onProgress:Te=>W(Math.round(Te*100))});st.success(ye==="mp4"?`Video exported (MP4, ${X.length} drawings)`:"Video exported (WebM â this browser can't encode MP4; Chrome and Safari can)")}catch(ue){st.error(ue instanceof Error?ue.message:"Video export failed")}finally{m(null),W(null)}}},bt=async()=>{if(!f){m("video"),H(0);try{const ue=await vP(je,{format:u,style:ze==="poster"?"light":ze,header:w,onProgress:ye=>H(Math.round(ye*100))});st.success(ue==="mp4"?"Stats video exported (MP4)":"Stats video exported (WebM â this browser can't encode MP4; Chrome and Safari can)")}catch(ue){st.error(ue instanceof Error?ue.message:"Video export failed")}finally{m(null),H(null)}}};return c.jsx("div",{className:"min-h-screen bg-background pt-32 pb-24 px-6 md:px-12",children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsx("h1",{className:"text-foreground text-2xl mb-2",style:{fontFamily:Il},children:"Share images"}),c.jsx("p",{className:"text-muted-foreground mb-10",style:{fontFamily:pr,fontSize:"10.5pt"},children:"Export drawings and stats as PNGs for social â typeset like the site."}),c.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-8",children:[om.map(ue=>c.jsx(kn,{active:u===ue.id,onClick:()=>p(ue.id),children:ue.label},ue.id)),c.jsx("span",{className:"w-4"}),kP.map(ue=>c.jsx(kn,{active:ze===ue.id,disabled:ue.id==="poster"&&u!=="story",onClick:()=>g(ue.id),children:ue.label},ue.id)),c.jsx("span",{className:"w-4"}),c.jsxs(kn,{active:w,onClick:()=>d(ue=>!ue),children:[w?"â ":"","Prompt-Brush header"]})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-8",children:[c.jsxs("button",{onClick:ot,disabled:K.length===0||f!==null,className:"inline-flex items-center gap-2 bg-foreground text-background rounded-full px-6 py-3 disabled:opacity-40",style:{fontFamily:pr,fontSize:"11pt"},children:[f==="artwork"?c.jsx(rr,{className:"w-4 h-4 animate-spin"}):c.jsx(da,{className:"w-4 h-4"}),f==="artwork"&&k?`Exporting ${k.done+1}/${k.total}â¦`:K.length===0?"Select drawings below":`Export ${K.length} image${K.length===1?"":"s"}`]}),c.jsxs("button",{onClick:oe,disabled:f!==null,className:"border border-border rounded-full px-4 py-3 text-foreground hover:bg-accent disabled:opacity-40",style:{fontFamily:pr,fontSize:"10.5pt"},children:["Select all",n.trim()||N?" shown":""]}),K.length>0&&c.jsxs("button",{onClick:ee,disabled:f!==null,className:"border border-border rounded-full px-4 py-3 text-foreground hover:bg-accent disabled:opacity-40",style:{fontFamily:pr,fontSize:"10.5pt"},children:["Clear (",K.length,")"]}),c.jsx("input",{value:n,onChange:ue=>a(ue.target.value),placeholder:"Search prompt, artist, or #",className:"border border-border rounded-full px-5 py-3 bg-card text-foreground w-64 ml-auto",style:{fontFamily:pr,fontSize:"10.5pt"}})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-6",children:[c.jsx("span",{className:"text-muted-foreground mr-1",style:{fontFamily:pr,fontSize:"9.5pt"},children:"Order"}),c.jsx(kn,{active:x==="newest",onClick:()=>C("newest"),children:"Newest"}),c.jsx(kn,{active:x==="oldest",onClick:()=>C("oldest"),children:"Oldest"}),c.jsx(kn,{active:x==="marked",onClick:()=>C("marked"),children:"Most marked"}),c.jsx(kn,{active:x==="person",onClick:()=>C("person"),children:"By person"}),c.jsxs("select",{value:N,onChange:ue=>j(ue.target.value),"aria-label":"Show one person's drawings",className:"border border-border rounded-full px-4 py-2 bg-card text-foreground ml-2",style:{fontFamily:pr,fontSize:"10pt"},children:[c.jsxs("option",{value:"",children:["Everyone · ",Q.length]}),te.map(ue=>c.jsxs("option",{value:ue.key,children:[ue.label," · ",ue.n]},ue.key))]}),c.jsx("span",{className:"ml-auto"}),c.jsx(kn,{active:L,onClick:()=>P(ue=>!ue),children:"Bigger"})]}),c.jsxs("div",{className:`grid gap-4 mb-8 ${L?"grid-cols-2 md:grid-cols-3 lg:grid-cols-4":"grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6"}`,children:[M.map(ue=>{if(ue.kind==="head")return c.jsxs("div",{className:"col-span-full flex items-baseline gap-3 pt-6 pb-1 border-b border-border",children:[c.jsx("span",{className:"text-foreground",style:{fontFamily:Il,fontSize:"13pt"},children:ue.label}),c.jsxs("span",{className:"text-muted-foreground",style:{fontFamily:pr,fontSize:"9pt"},children:[ue.n," drawing",ue.n===1?"":"s"]})]},`h-${ue.label}`);const ye=ue.a,Te=i.has(ye.id);return c.jsxs("button",{onClick:()=>ie(ye.id),className:`relative text-left rounded-lg overflow-hidden border-2 transition-colors ${Te?"border-foreground":"border-transparent hover:border-border"}`,children:[c.jsx("span",{className:`absolute top-1.5 right-1.5 z-10 flex h-6 w-6 items-center justify-center rounded-full border-2 ${Te?"bg-foreground text-background border-foreground":"bg-background/70 border-border text-transparent"}`,children:c.jsx(vd,{className:"w-3.5 h-3.5",strokeWidth:3})}),c.jsx("img",{src:ye.imageUrl||ye.imageData,alt:ye.promptText||"drawing",loading:"lazy",className:`w-full object-cover bg-card transition-opacity ${Te?"":"opacity-100"}`,style:{aspectRatio:"5/7"}}),c.jsxs("div",{className:"px-1.5 py-1.5",children:[c.jsx("div",{className:"text-foreground truncate",style:{fontFamily:pr,fontSize:"8.5pt"},children:ye.promptText||"Untitled"}),c.jsx("div",{className:"text-muted-foreground truncate uppercase",style:{fontFamily:pr,fontSize:"7.5pt"},children:ye.artistName||"â"})]})]},ye.id)}
342),Z.length===0&&c.jsx("p",{className:"text-muted-foreground col-span-full",style:{fontFamily:pr},children:"No drawings match."})]}),Z.length>J.length&&c.jsxs("div",{className:"flex flex-col items-center gap-2 mb-16",children:[c.jsxs("button",{onClick:()=>b(ue=>ue+nm),className:"inline-flex items-center gap-2 border border-border rounded-full px-7 py-3 text-foreground hover:bg-foreground hover:text-background transition-colors",style:{fontFamily:pr,fontSize:"11pt"},children:[c.jsx(tE,{className:"w-4 h-4"}),"See more"]}),c.jsxs("span",{className:"text-muted-foreground",style:{fontFamily:pr,fontSize:"9pt"},children:["Showing ",J.length," of ",Z.length]})]}),c.jsx("h2",{className:"text-foreground text-xl mt-16 mb-2",style:{fontFamily:Il},children:"Prompts video"}),c.jsx("p",{className:"text-muted-foreground mb-6 max-w-2xl",style:{fontFamily:pr,fontSize:"10.5pt"},children:"An MP4 that moves through the drawings selected above, in the order you picked them, each set like its share image in the format and style chosen at the top. Pick them by hand, or let it choose."}),c.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[c.jsx(kn,{active:!1,disabled:f!==null,onClick:()=>ce(12),children:"Random 12 of the most marked"}),c.jsx(kn,{active:!1,disabled:f!==null,onClick:()=>ae(12),children:"Random 12"}),c.jsx("span",{className:"w-4"}),[1,2,3,4].map(ue=>c.jsxs(kn,{active:F===ue,onClick:()=>T(ue),children:[ue,"s each"]},ue)),c.jsx("span",{className:"w-4"}),c.jsx(kn,{active:!D,onClick:()=>B(!1),children:"Cut"}),c.jsx(kn,{active:D,onClick:()=>B(!0),children:"Dissolve"})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-4 mb-16",children:[c.jsxs("button",{onClick:Ot,disabled:X.length===0||f!==null,className:"inline-flex items-center gap-2 bg-foreground text-background rounded-full px-6 py-3 disabled:opacity-40",style:{fontFamily:pr,fontSize:"11pt"},children:[f==="pvideo"?c.jsx(rr,{className:"w-4 h-4 animate-spin"}):c.jsx(da,{className:"w-4 h-4"}),f==="pvideo"?`Rendering⦠${$??0}%`:X.length===0?"Select drawings above":`Export video · ${X.length} drawing${X.length===1?"":"s"} · ${om.find(ue=>ue.id===u)?.label.split(" · ")[1]}`]}),c.jsxs("span",{className:"text-muted-foreground",style:{fontFamily:pr,fontSize:"9.5pt"},children:[X.length>0?`About ${Math.round(X.length*F+(D?(X.length-1)*.5:0))}s. `:"","Renders in the browser â MP4 in Chrome and Safari, no need to keep the tab in front."]})]}),c.jsx("div",{className:"mb-16"}),c.jsx("h2",{className:"text-foreground text-xl mb-2",style:{fontFamily:Il},children:"Stats charts"}),c.jsx("p",{className:"text-muted-foreground mb-6",style:{fontFamily:pr,fontSize:"10.5pt"},children:"The halftone graphs from the About page, sized for social (uses the format + style above; charts ignore âposterâ)."}),c.jsx("div",{className:"flex flex-wrap gap-3",children:je.map(ue=>c.jsxs("button",{onClick:()=>Xe(`chart-${ue.slug}`,()=>sO(ue,u,ze==="poster"?"light":ze,{header:w})),disabled:f!==null||ue.items.length===0,className:"inline-flex items-center gap-2 border border-border rounded-full px-6 py-3 text-foreground hover:bg-foreground hover:text-background transition-colors disabled:opacity-40",style:{fontFamily:pr,fontSize:"11pt"},children:[f===`chart-${ue.slug}`?c.jsx(rr,{className:"w-4 h-4 animate-spin"}):c.jsx(da,{className:"w-4 h-4"}),ue.title]},ue.slug))}),c.jsx("h2",{className:"text-foreground text-xl mt-16 mb-2",style:{fontFamily:Il},children:"Animated stats video"}),c.jsxs("p",{className:"text-muted-foreground mb-6",style:{fontFamily:pr,fontSize:"10.5pt"},children:["Every chart animating in turn, in the format and style above (charts ignore âposterâ) â about ",Math.round(wP(je.length)),"s of video. Renders in the browser: MP4 in Chrome and Safari, no need to keep the tab in front."]}),c.jsxs("button",{onClick:bt,disabled:f!==null,className:"inline-flex items-center gap-2 bg-foreground text-background rounded-full px-6 py-3 disabled:opacity-40",style:{fontFamily:pr,fontSize:"11pt"},children:[f==="video"?c.jsx(rr,{className:"w-4 h-4 animate-spin"}):c.jsx(da,{className:"w-4 h-4"}),f==="video"?`Rendering⦠${z??0}%`:`Export animated video · ${om.find(ue=>ue.id===u)?.label.split(" · ")[1]}`]})]})})}const Nr={fontFamily:"FK Grotesk Mono, monospace"};function am({className:e=""}){return c.jsx("span",{className:`inline-flex items-center justify-center ${e}`,"aria-hidden":"true",children:c.jsx("span",{className:"block w-1/2 h-1/2 roun
342ded-full bg-current"})})}function _P(e){if(!e)return"â";const o=new Date(String(e).replace(" ","T"));return isNaN(o.getTime())?String(e).slice(0,10):o.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function NP(){const[e,o]=O.useState(null),[n,a]=O.useState(!0),[i,s]=O.useState(!1),[u,p]=O.useState(null),h=O.useCallback(async(w=!1)=>{w&&s(!0);try{p(null),o(await V4())}catch(d){p(d?.message||"Could not load activity.")}finally{a(!1),s(!1)}},[]);O.useEffect(()=>{h()},[h]);const g=O.useMemo(()=>e?[{label:"Accounts",value:e.accountCount,icon:xE},{label:"Verified",value:e.verifiedCount,icon:Xl},{label:"Marked drawings",value:e.heartedCount,icon:am},{label:"Total marks",value:e.totalHearts,icon:am}]:[],[e]);return c.jsxs("div",{className:"container mx-auto px-4 py-12 max-w-5xl",children:[c.jsxs("div",{className:"flex items-center justify-between mb-8",children:[c.jsx("h1",{className:"text-2xl font-medium",style:Nr,children:"Activity"}),c.jsxs("button",{onClick:()=>h(!0),disabled:i||n,className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors disabled:opacity-50",style:Nr,children:[c.jsx(Ps,{className:`w-3.5 h-3.5 ${i?"animate-spin":""}`}),"Refresh"]})]}),n?c.jsxs("div",{className:"flex flex-col items-center justify-center py-20",children:[c.jsx(rr,{className:"w-8 h-8 text-muted-foreground animate-spin mb-3"}),c.jsx("p",{className:"text-muted-foreground text-sm",style:Nr,children:"Loading activityâ¦"})]}):u?c.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 text-center",children:[c.jsx("p",{className:"text-muted-foreground mb-3",style:Nr,children:u}),c.jsx("button",{onClick:()=>h(!0),className:"text-sm text-foreground underline",style:Nr,children:"Try again"})]}):e?c.jsxs("div",{className:"space-y-12",children:[c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:g.map(w=>{const d=w.icon;return c.jsx("div",{className:"bg-card border border-border rounded-lg p-5",children:c.jsxs("div",{className:"flex items-start justify-between",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-muted-foreground mb-1 text-xs",style:Nr,children:w.label}),c.jsx("div",{className:"text-foreground text-2xl font-semibold",style:Nr,children:w.value})]}),c.jsx(d,{className:"w-5 h-5 text-muted-foreground/60","aria-hidden":"true"})]})},w.label)})}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-lg font-medium mb-1",style:Nr,children:"Accounts"}),c.jsx("p",{className:"text-muted-foreground/70 text-xs mb-4",style:Nr,children:"People who claimed a name. Emails are masked for privacy."}),e.accounts.length===0?c.jsx("p",{className:"text-muted-foreground text-sm",style:Nr,children:"No accounts yet."}):c.jsx("div",{className:"bg-card border border-border rounded-lg overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",style:Nr,children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-border text-muted-foreground/70 text-left text-xs",children:[c.jsx("th",{className:"px-4 py-3 font-normal",children:"Name"}),c.jsx("th",{className:"px-4 py-3 font-normal",children:"Email"}),c.jsx("th",{className:"px-4 py-3 font-normal text-center",children:"Verified"}),c.jsx("th",{className:"px-4 py-3 font-normal text-center",children:"Drawings"}),c.jsx("th",{className:"px-4 py-3 font-normal text-right",children:"Joined"})]})}),c.jsx("tbody",{children:e.accounts.map((w,d)=>c.jsxs("tr",{className:"border-b border-border/50 last:border-0",children:[c.jsx("td",{className:"px-4 py-3 text-foreground",children:w.alias}),c.jsx("td",{className:"px-4 py-3 text-muted-foreground",children:w.emailMasked}),c.jsx("td",{className:"px-4 py-3 text-center",children:w.verified?c.jsx(Xl,{className:"w-4 h-4 text-green-500 inline","aria-label":"verified"}):c.jsx("span",{className:"text-muted-foreground/40",children:"â"})}),c.jsx("td",{className:"px-4 py-3 text-center text-muted-foreground",children:w.drawings}),c.jsx("td",{className:"px-4 py-3 text-right text-muted-foreground/70",children:_P(w.createdAt)})]},w.alias+d))})]})})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-lg font-medium mb-1",style:Nr,children:"Most marked"}
342),c.jsx("p",{className:"text-muted-foreground/70 text-xs mb-4",style:Nr,children:"Drawings people are marking, most-loved first."}),e.hearted.length===0?c.jsx("p",{className:"text-muted-foreground text-sm",style:Nr,children:"No marks yet."}):c.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4",children:e.hearted.map(w=>c.jsxs("div",{className:"bg-card border border-border rounded-lg overflow-hidden",children:[c.jsxs("div",{className:"relative aspect-[5/7] bg-background",children:[w.imageUrl?c.jsx("img",{src:w.imageUrl,alt:w.promptText||"Drawing",className:"w-full h-full object-cover",loading:"lazy"}):c.jsx("div",{className:"w-full h-full flex items-center justify-center text-muted-foreground/40 text-xs",style:Nr,children:"no image"}),c.jsxs("div",{className:"absolute top-2 right-2 flex items-center gap-1 bg-black/70 text-white rounded-full px-2 py-0.5 text-xs",style:Nr,children:[c.jsx(am,{className:"w-3 h-3"}),w.heartCount]})]}),c.jsxs("div",{className:"p-3",children:[c.jsx("div",{className:"text-muted-foreground/60 text-[10px]",style:Nr,children:w.promptNumber?`#${String(w.promptNumber).padStart(4,"0")}`:"â"}),w.promptText&&c.jsx("div",{className:"text-foreground text-xs mt-1 line-clamp-2",style:Nr,children:w.promptText}),w.artistName&&c.jsxs("div",{className:"text-muted-foreground/70 text-[10px] mt-1 truncate",style:Nr,children:["by ",w.artistName]})]})]},w.id))})]})]}):null]})}const Qt={fontFamily:"FK Grotesk Mono, monospace"},pb=[1,2,3,4],im=e=>e.zineAccepted?"accepted":e.zineDeclined?"declined":e.zineSent?"invited":"none";function EP({className:e=""}){return c.jsx("span",{className:`inline-flex items-center justify-center ${e}`,"aria-hidden":"true",children:c.jsx("span",{className:"block w-1/2 h-1/2 rounded-full bg-current"})})}function CP(e){if(!e)return"";const o=new Date(String(e).replace(" ","T"));return isNaN(o.getTime())?String(e).slice(0,10):o.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function AP(){const[e,o]=O.useState([]),[n,a]=O.useState(!0),[i,s]=O.useState(!1),[u,p]=O.useState(null),[h,g]=O.useState({}),[w,d]=O.useState({}),[f,m]=O.useState({}),[k,S]=O.useState(!1),[_,b]=O.useState(null),[x,C]=O.useState("all"),[N,j]=O.useState("all"),L=O.useCallback(async($=!1)=>{$&&s(!0);try{p(null),o(await G4(2e3))}catch(W){p(W?.message||"Could not load drawings.")}finally{a(!1),s(!1)}},[]);O.useEffect(()=>{L()},[L]);const P=O.useMemo(()=>{const $={all:e.length,none:0,invited:0,accepted:0,declined:0};for(const W of e)$[im(W)]++;return $},[e]),z=O.useMemo(()=>{let $=e;return x!=="all"&&($=$.filter(W=>im(W)===x)),x==="accepted"&&N!=="all"&&($=$.filter(W=>N==="unassigned"?!W.zineIssue:W.zineIssue===N)),$},[e,x,N]),H=O.useCallback(async $=>{if($.zineAccepted||$.zineDeclined||h[$.id])return;if(!$.artistEmail){st.error("No email on file for this artist.");return}const W=$.zineSent?"Re-send the invite to":"Email";if(window.confirm(`${W} ${$.artistName||"this artist"} (${$.artistEmail}) to ask permission to print this drawing in the Prompt-Brush zine?`)){g(te=>({...te,[$.id]:!0}));try{await Y4($.id),o(te=>te.map(Z=>Z.id===$.id?{...Z,zineSent:!0}:Z)),st.success(`Invite sent to ${$.artistName||$.artistEmail}.`)}catch(te){st.error(te?.message||"Could not send the invite.")}finally{g(te=>({...te,[$.id]:!1}))}}}
342,[h]),F=O.useCallback(async($,W)=>{if(w[$.id])return;const Q=$.zineIssue===W?null:W;d(te=>({...te,[$.id]:!0})),o(te=>te.map(Z=>Z.id===$.id?{...Z,zineIssue:Q}:Z));try{await Q4($.id,Q)}catch(te){o(Z=>Z.map(J=>J.id===$.id?{...J,zineIssue:$.zineIssue}:J)),st.error(te?.message||"Could not set the issue.")}finally{d(te=>({...te,[$.id]:!1}))}},[w]),T=O.useCallback(async $=>{if(!f[$.id]){m(W=>({...W,[$.id]:!0}));try{await X4($)}catch(W){st.error(W?.message||"Download failed.")}finally{m(W=>({...W,[$.id]:!1}))}}},[f]),D=O.useCallback(async()=>{if(k||z.length===0)return;const $=N==="all"?"promptbrush-accepted":N==="unassigned"?"promptbrush-accepted-unassigned":`promptbrush-zine-${N}`;S(!0),b({done:0,total:z.length});try{await e_(z,$,(W,Q)=>b({done:W,total:Q})),st.success(`Exported ${z.length} drawing${z.length===1?"":"s"}.`)}catch(W){st.error(W?.message||"Export failed.")}finally{S(!1),b(null)}},[k,z,N]),B=[{key:"all",label:"All",n:P.all},{key:"none",label:"Uninvited",n:P.none},{key:"invited",label:"Invited",n:P.invited},{key:"accepted",label:"Accepted",n:P.accepted},{key:"declined",label:"Declined",n:P.declined}];return c.jsxs("div",{className:"container mx-auto px-4 py-12 max-w-6xl",children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsx("h1",{className:"text-2xl font-medium",style:Qt,children:"Zine"}),c.jsxs("button",{onClick:()=>L(!0),disabled:i||n,className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors disabled:opacity-50",style:Qt,children:[c.jsx(Ps,{className:`w-3.5 h-3.5 ${i?"animate-spin":""}`}),"Refresh"]})]}),c.jsx("p",{className:"text-muted-foreground/70 text-xs mb-5",style:Qt,children:"Every drawing with at least one mark. Invite an artist; when they answer, the card updates automatically. Tag accepted drawings to an issue and download a high-res copy for print."}),c.jsx("div",{className:"flex flex-wrap gap-2 mb-3",children:B.map($=>{const W=x===$.key;return c.jsxs("button",{onClick:()=>C($.key),className:`rounded-full px-3 py-1.5 text-xs border transition-colors ${W?"bg-foreground text-background border-foreground":"border-border text-muted-foreground hover:text-foreground"}`,style:Qt,children:[$.label," ",c.jsx("span",{className:"opacity-60",children:$.n})]},$.key)})}),x==="accepted"&&c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 mb-6",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsx("span",{className:"text-[10px] uppercase tracking-wider text-muted-foreground/60 mr-1",style:Qt,children:"Issue"}),["all",...pb,"unassigned"].map($=>{const W=N===$,Q=$==="all"?"All":$==="unassigned"?"Unassigned":`Zine ${$}`;return c.jsx("button",{onClick:()=>j($),className:`rounded-full px-3 py-1 text-xs border transition-colors ${W?"bg-foreground text-background border-foreground":"border-border text-muted-foreground hover:text-foreground"}`,style:Qt,children:Q},String($))})]}),z.length>0&&c.jsx("button",{onClick:D,disabled:k,className:"flex items-center gap-1.5 rounded-full px-4 py-1.5 text-xs bg-foreground text-background hover:opacity-90 transition-opacity disabled:opacity-60",style:Qt,children:k?c.jsxs(c.Fragment,{children:[c.jsx(rr,{className:"w-3.5 h-3.5 animate-spin"}),_?`${_.done}/${_.total}`:"Zippingâ¦"]}):c.jsxs(c.Fragment,{children:[c.jsx(QN,{className:"w-3.5 h-3.5"}),"Download ",N==="all"?"all accepted":N==="unassigned"?"unassigned":`Zine ${N}`," (",z.length,") as zip"]})})]}),n?c.jsxs("div",{className:"flex flex-col items-center justify-center py-20",children:[c.jsx(rr,{className:"w-8 h-8 text-muted-foreground animate-spin mb-3"}),c.jsx("p",{className:"text-muted-foreground text-sm",style:Qt,children:"Loading drawingsâ¦"})]}):u?c.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 text-center",children:[c.jsx("p",{className:"text-muted-foreground mb-3",style:Qt,children:u}),c.jsx("button",{onClick:()=>L(!0),className:"text-sm text-foreground underline",style:Qt,children:"Try again"})]}):z.length===0?c.jsx("p",{className:"text-muted-foreground text-sm",style:Qt,children:"Nothing here for this filter."}):c.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4",children:z.map($=>{const W=!!h[$.id],Q=!$.artistEmail,te=im($),Z=te==="accepted"||te==="declined";return c.jsxs("div",{className:"bg-card border border-border rounded-lg overflow-hidden flex flex-col",children:[c.jsxs("div",{className:"relative aspect-[5/7] bg-background",children:[$.imageUrl?c.jsx("img",{src:$.imageUrl,alt:$.promptText||"Drawing",className:"w-full h-full object-cover",loading:"lazy"}):c.jsx("div",{className:"w-full h-full flex items-center justify-center text-muted-foreground
342/40 text-xs",style:Qt,children:"no image"}),c.jsxs("div",{className:"absolute top-2 right-2 flex items-center gap-1 bg-black/70 text-white rounded-full px-2 py-0.5 text-xs",style:Qt,children:[c.jsx(EP,{className:"w-3 h-3"}),$.heartCount]}),te==="accepted"&&c.jsxs("div",{className:"absolute top-2 left-2 flex items-center gap-1 bg-green-600 text-white rounded-full px-2 py-0.5 text-[10px]",style:Qt,children:[c.jsx(vd,{className:"w-3 h-3"})," ",$.zineIssue?`Zine ${$.zineIssue}`:"In zine"]}),te==="declined"&&c.jsxs("div",{className:"absolute top-2 left-2 flex items-center gap-1 bg-neutral-500 text-white rounded-full px-2 py-0.5 text-[10px]",style:Qt,children:[c.jsx(Li,{className:"w-3 h-3"})," Declined"]}),te==="invited"&&c.jsxs("div",{className:"absolute top-2 left-2 flex items-center gap-1 bg-amber-500 text-white rounded-full px-2 py-0.5 text-[10px]",style:Qt,children:[c.jsx(Ja,{className:"w-3 h-3"})," Invited"]})]}),c.jsxs("div",{className:"p-3 flex flex-col flex-1",children:[c.jsx("div",{className:"text-muted-foreground/60 text-[10px]",style:Qt,children:$.promptNumber?`#${String($.promptNumber).padStart(4,"0")}`:"â"}),$.promptText&&c.jsx("div",{className:"text-foreground text-xs mt-1 line-clamp-2",style:Qt,children:$.promptText}),$.artistName&&c.jsxs("div",{className:"text-muted-foreground/70 text-[10px] mt-1 truncate",style:Qt,children:["by ",$.artistName]}),c.jsx("div",{className:"text-muted-foreground/50 text-[10px] truncate",style:Qt,children:$.artistEmail||"no email"}),te==="accepted"?c.jsxs("div",{className:"mt-2 flex flex-col gap-2",children:[c.jsxs("div",{className:"text-green-600 text-[10px]",style:Qt,children:["Accepted ",CP($.acceptedAt)]}),c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx("span",{className:"text-[10px] text-muted-foreground/60 mr-0.5",style:Qt,children:"Zine"}),pb.map(J=>{const V=$.zineIssue===J;return c.jsx("button",{onClick:()=>F($,J),disabled:!!w[$.id],className:`w-6 h-6 rounded text-[11px] border transition-colors disabled:opacity-50 ${V?"bg-foreground text-background border-foreground":"border-border text-muted-foreground hover:text-foreground"}`,style:Qt,"aria-label":`Assign to zine ${J}`,children:J},J)})]}),c.jsx("button",{onClick:()=>T($),disabled:!!f[$.id],className:"flex items-center justify-center gap-1.5 rounded-md px-3 py-2 text-xs bg-foreground text-background hover:opacity-90 transition-opacity disabled:opacity-60",style:Qt,children:f[$.id]?c.jsxs(c.Fragment,{children:[c.jsx(rr,{className:"w-3.5 h-3.5 animate-spin"})," Preparingâ¦"]}):c.jsxs(c.Fragment,{children:[c.jsx(da,{className:"w-3.5 h-3.5"})," Download hi-res"]})})]}):c.jsx("button",{onClick:()=>H($),disabled:Z||W||Q,className:`mt-3 flex items-center justify-center gap-1.5 rounded-md px-3 py-2 text-xs transition-colors disabled:opacity-60 ${te==="declined"?"bg-neutral-500/10 text-neutral-500 cursor-default":te==="invited"?"border border-border text-foreground hover:bg-accent":"bg-foreground text-background hover:opacity-90"}`,style:Qt,children:W?c.jsxs(c.Fragment,{children:[c.jsx(rr,{className:"w-3.5 h-3.5 animate-spin"})," Sendingâ¦"]}):te==="declined"?c.jsxs(c.Fragment,{children:[c.jsx(Li,{className:"w-3.5 h-3.5"})," Declined"]}):te==="invited"?c.jsxs(c.Fragment,{children:[c.jsx(Ja,{className:"w-3.5 h-3.5"})," Re-send invite"]}):Q?"No email":c.jsxs(c.Fragment,{children:[c.jsx(Ja,{className:"w-3.5 h-3.5"})," Invite to zine"]})})]})]},$.id)})})]})}const Sn={fontFamily:"FK Grotesk Mono, monospace"},hb=[{key:"accepted",label:"Zine â accepted",blurb:"Artists who said yes to being printed."},{key:"invited",label:"Zine â invited",blurb:"Everyone asked about the zine, including no reply yet."},{key:"artists",label:"All artists",blurb:"Everyone with a drawing in the gallery."}
342,{key:"prompters",label:"Prompt writers",blurb:"Everyone who submitted a prompt."}];function jP(e){if(!e)return"â";const o=new Date(String(e).replace(" ","T"));return isNaN(o.getTime())?String(e).slice(0,10):o.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function TP(){const[e,o]=O.useState("accepted"),[n,a]=O.useState([]),[i,s]=O.useState(!0),[u,p]=O.useState(null),[h,g]=O.useState(!1),w=O.useCallback(async k=>{s(!0);try{p(null),a(await Z4(k))}catch(S){p(S?.message||"Could not load the list."),a([])}finally{s(!1)}},[]);O.useEffect(()=>{w(e)},[e,w]);const d=O.useCallback(async()=>{const k=n.map(S=>S.email).join(` 343`);try{await navigator.clipboard.writeText(k),g(!0),setTimeout(()=>g(!1),1800),st.success(`${n.length} email${n.length===1?"":"s"} copied.`)}catch{st.error("Could not copy â try the CSV instead.")}},[n]),f=O.useCallback(()=>{const k=x=>`"${String(x??"").replace(/"/g,'""')}"`,S=["email,name,drawings,last_activity",...n.map(x=>[x.email,x.name??"",x.drawings,x.at??""].map(k).join(","))].join(` 344`),_=URL.createObjectURL(new Blob([S],{type:"text/csv"})),b=document.createElement("a");b.href=_,b.download=`promptbrush-${e}-emails.csv`,document.body.appendChild(b),b.click(),b.remove(),setTimeout(()=>URL.revokeObjectURL(_),1e3)},[n,e]),m=hb.find(k=>k.key===e);return c.jsxs("div",{className:"container mx-auto px-4 py-12 max-w-4xl",children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsx("h1",{className:"text-2xl font-medium",style:Sn,children:"Emails"}),c.jsxs("button",{onClick:()=>w(e),disabled:i,className:"flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors disabled:opacity-50",style:Sn,children:[c.jsx(Ps,{className:`w-3.5 h-3.5 ${i?"animate-spin":""}`}),"Refresh"]})]}),c.jsx("p",{className:"text-muted-foreground/70 text-xs mb-6",style:Sn,children:"People gave these addresses to submit a drawing or claim a name â not to get a newsletter. Inviting them to subscribe keeps you on the right side of that (and out of spam folders)."}),c.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:hb.map(k=>c.jsx("button",{onClick:()=>o(k.key),className:`rounded-full px-3 py-1.5 text-xs border transition-colors ${e===k.key?"bg-foreground text-background border-foreground":"border-border text-muted-foreground hover:text-foreground"}`,style:Sn,children:k.label},k.key))}),m&&c.jsx("p",{className:"text-muted-foreground/60 text-[11px] mb-6",style:Sn,children:m.blurb}),i?c.jsxs("div",{className:"flex flex-col items-center justify-center py-20",children:[c.jsx(rr,{className:"w-8 h-8 text-muted-foreground animate-spin mb-3"}),c.jsx("p",{className:"text-muted-foreground text-sm",style:Sn,children:"Loadingâ¦"})]}):u?c.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 text-center",children:[c.jsx("p",{className:"text-muted-foreground mb-3",style:Sn,children:u}),c.jsx("button",{onClick:()=>w(e),className:"text-sm text-foreground underline",style:Sn,children:"Try again"})]}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-5",children:[c.jsxs("span",{className:"text-foreground text-sm",style:Sn,children:[n.length," ",n.length===1?"person":"people"]}),c.jsx("div",{className:"flex-1"}),c.jsx("button",{onClick:d,disabled:n.length===0,className:"inline-flex items-center gap-1.5 rounded-full px-4 py-1.5 text-xs border border-border text-foreground hover:bg-accent transition-colors disabled:opacity-50",style:Sn,children:h?c.jsxs(c.Fragment,{children:[c.jsx(vd,{className:"w-3.5 h-3.5"})," Copied"]}):c.jsxs(c.Fragment,{children:[c.jsx(DN,{className:"w-3.5 h-3.5"})," Copy emails"]})}),c.jsxs("button",{onClick:f,disabled:n.length===0,className:"inline-flex items-center gap-1.5 rounded-full px-4 py-1.5 text-xs bg-foreground text-background hover:opacity-90 transition-opacity disabled:opacity-50",style:Sn,children:[c.jsx(da,{className:"w-3.5 h-3.5"})," CSV"]})]}),n.length===0?c.jsx("p",{className:"text-muted-foreground text-sm",style:Sn,children:"Nobody in this group yet."}):c.jsx("div",{className:"bg-card border border-border rounded-lg overflow-hidden overflow-x-auto",children:c.jsxs("table",{className:"w-full text-sm",style:Sn,children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-border text-muted-foreground
344/70 text-left text-xs",children:[c.jsx("th",{className:"px-4 py-3 font-normal",children:"Email"}),c.jsx("th",{className:"px-4 py-3 font-normal",children:"Name"}),c.jsx("th",{className:"px-4 py-3 font-normal text-center",children:"Drawings"}),c.jsx("th",{className:"px-4 py-3 font-normal text-right",children:"Last activity"})]})}),c.jsx("tbody",{children:n.map(k=>c.jsxs("tr",{className:"border-b border-border/50 last:border-0",children:[c.jsx("td",{className:"px-4 py-2.5 text-foreground",children:k.email}),c.jsx("td",{className:"px-4 py-2.5 text-muted-foreground",children:k.name||"â"}),c.jsx("td",{className:"px-4 py-2.5 text-center text-muted-foreground",children:k.drawings}),c.jsx("td",{className:"px-4 py-2.5 text-right text-muted-foreground/70",children:jP(k.at)})]},k.email))})]})})]})]})}function ao({to:e,isActive:o,onClick:n,icon:a,tooltip:i,variant:s="default"}){const u=qo(),p=()=>{n?n():u(e)},h=s==="destructive"?"text-red-500 hover:text-red-600 w-10 h-10 md:w-12 md:h-12 p-0 bg-transparent hover:bg-transparent":"text-foreground w-10 h-10 md:w-12 md:h-12 p-0 bg-transparent hover:bg-transparent";return c.jsxs(Q5,{children:[c.jsx(X5,{asChild:!0,children:c.jsx(Rt,{onClick:p,variant:"ghost",className:h,children:a})}),c.jsx(cx,{children:c.jsx("p",{children:i})})]})}function OP(){const{isAdmin:e,logout:o}=$n(),n=jn(),a=qo(),[i,s]=O.useState(!1),u=n.pathname==="/user-draw"||n.pathname==="/admin/draw",p=O.useCallback(()=>{n.pathname==="/"?s(h=>!h):a("/")},[n.pathname,a]);return c.jsxs(c.Fragment,{children:[c.jsx(x3,{isOpen:i,onClose:()=>s(!1)}),!u&&c.jsx(x_,{onClick:p,isOpen:i}),u&&c.jsx("button",{onClick:()=>a(-1),"aria-label":"Close drawing tool",className:"fixed top-3 right-3 md:top-4 md:right-4 z-[9999] w-11 h-11 rounded-full flex items-center justify-center text-foreground hover:bg-accent transition-colors",style:{marginTop:"var(--pb-banner-h, 0px)"},children:c.jsx(Li,{className:"w-7 h-7"})}),!u&&c.jsxs("div",{className:"fixed top-2 right-2 md:top-4 md:right-4 flex flex-wrap gap-1.5 md:gap-4 z-[9999] max-w-[calc(100vw-80px)] md:max-w-none justify-end",style:{marginTop:"var(--pb-banner-h, 0px)"},children:[c.jsx(ao,{to:"/prompts",isActive:n.pathname==="/prompts",icon:c.jsxs("svg",{className:"w-10 h-10 md:w-12 md:h-12",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 66.39 67.63",fill:"currentColor",children:[c.jsx("rect",{x:"20.25",y:"14.09",width:"30.88",height:"1"}),c.jsx("rect",{x:"20.25",y:"23.71",width:"30.88",height:"1"}),c.jsx("rect",{x:"20.25",y:"33.34",width:"30.88",height:"1"}),c.jsx("rect",{x:"20.25",y:"42.96",width:"30.88",height:"1"}),c.jsx("rect",{x:"20.25",y:"52.59",width:"30.88",height:"1"}),c.jsx("path",{d:"M15.34,15.59h-.7c-.55,0-1-.45-1-1s.45-1,1-1h.7c.55,0,1,.45,1,1s-.45,1-1,1Z"}),c.jsx("path",{d:"M15.34,25.21h-.7c-.55,0-1-.45-1-1s.45-1,1-1h.7c.55,0,1,.45,1,1s-.45,1-1,1Z"}),c.jsx("path",{d:"M15.34,34.84h-.7c-.55,0-1-.45-1-1s.45-1,1-1h.7c.55,0,1,.45,1,1s-.45,1-1,1Z"}),c.jsx("path",{d:"M15.34,44.46h-.7c-.55,0-1-.45-1-1s.45-1,1-1h.7c.55,0,1,.45,1,1s-.45,1-1,1Z"}),c.jsx("path",{d:"M15.34,54.09h-.7c-.55,0-1-.45-1-1s.45-1,1-1h.7c.55,0,1,.45,1,1s-.45,1-1,1Z"})]}),tooltip:"Browse Prompts"}),c.jsx(ao,{to:"/gallery",isActive:n.pathname==="/gallery",icon:c.jsxs("svg",{className:"w-10 h-10 md:w-12 md:h-12",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 66.39 67.63",fill:"currentColor",children:[c.jsx("rect",{x:"15.95",y:"13.09",width:"8.52",height:"11.22"}),c.jsx("rect",{x:"28.17",y:"13.09",width:"8.52",height:"11.22"}),c.jsx("rect",{x:"40.38",y:"13.09",width:"8.52",height:"11.22"}),c.jsx("rect",{x:"15.95",y:"27.9",width:"8.52",height:"11.22"}),c.jsx("rect",{x:"28.17",y:"27.9",width:"8.52",height:"11.22"}),c.jsx("rect",{x:"40.38",y:"27.9",width:"8.52",height:"11.22"}),c.jsx("rect",{x:"15.95",y:"42.7",width:"8.52",height:"11.22"}),c.jsx("rect",{x:"28.17",y:"42.7",width:"8.52",height:"11.22"}),c.jsx("rect",{x:"40.38",y:"42.7",width:"8.52",height:"11.22"})]}),tooltip:"Gallery"}),e&&c.jsxs(c.Fragment,{children:[c.jsx(ao,{to:"/admin/prompts",isActive:n.pathname==="/admin/prompts",icon:c.jsx(KN,{className:"w-10 h-10 md:w-12 md:h-12"}),tooltip:"Manage Prompts"}),c.jsx(ao,{to:"/admin/approvals",isActive:n.pathname==="/admin/approvals",icon:c.jsx(yE,{className:"w-10 h-10 md:w-12 md:h-12"}),tooltip:"Approve Artworks"}),c.jsx(ao,{to:"/admin/draw",isActive:n.pathname==="/admin/draw",icon:c.jsx(JN,{className:"w-10 h-10 md:w-12 md:h-12"}),tooltip:"Draw"}),c.jsx(ao,{to:"/admin/share",isActive:n.pathname==="/admin/share",icon:c.jsx(pE,{className:"w-10 h-10 md:w-12 md:h-12"}),tooltip:"Share Images"}),c.jsx(ao,{to:"/admin/content",isActive:n.pathname==="/admin/content",icon:c.jsx(dE,{className:"w-10 h-10 md:w-12 md:h-12"}),tooltip:"Site Content"}),c.jsx(ao,{to:"/admin/activity",isActive:n.pathname==="/admin/activity",icon:c.jsx(yN,{className:"w-10 h-10 md:w-12 md:h-12"}),tooltip:"Activity"}),c.jsx(ao,{to:"/admin/zine",isActive:n.pathname==="/admin/zine",icon:c.jsx(n1,{className:"w-10 h-10 md:w-12 md:h-12"}),tooltip:"Zine 2.0"}),c.jsx(ao,{to:"/admin/emails",isActive:n.pathname==="/admin/emails",icon:c.jsx(Ja,{className:"w-10 h-10 md:w-12 md:h-12"}),tooltip:"Participant emails"}),c.jsx(ao,{to:"/",isActive:!1,onClick:o,icon:c.jsx(GN,{className:"w-10 h-10 md:w-12 md:h-12"}),tooltip:"Logout",variant:"destructive"})]})]}),c.jsx("div",{className:"fixed bottom-4 left-4 z-[9999]",children:c.jsx(uN,{})}),c.jsx(dN,{})]})}function Xa({children:e}){const{isAdmin:o}=$n();return o?c.jsx(c.Fragment,{children:e}):c.jsx(_b,{to:"/admin/login",replace:!0})}function PP(){return c.jsxs(c.Fragment,{children:[c.jsx(j3,{}),c.jsx(O3,{}),c.jsxs("div",{className:"h-screen bg-background",style:{paddingTop:"var(--pb-banner-h, 0px)"},children:[c.jsx(OP,{}),c.jsxs(yS,{children:[c.jsx(wr,{path:"/",element:c.jsx(sA,{})}),c.jsx(wr,{path:"/book",element:c.jsx(dA,{})}),c.jsx(wr,{path:"/shop",element:c.jsx(bA,{})}),c.jsx(wr,{path:"/collection",element:c.jsx(CA,{})}),c.jsx(wr,{path:"/gallery",element:c.jsx(DA,{})}),c.jsx(wr,{path:"/artist/:alias",element:c.jsx(MA,{})}),c.jsx(wr,{path:"/prompts",element:c.jsx(KA,{})}),c.jsx(wr,{path:"/user-draw",element:c.jsx(bj,{})}),c.jsx(wr,{path:"/terms",element:c.jsx(kj,{})}),c.jsx(wr,{path:"/admin/login",element:c.jsx(Aj,{})}),c.jsx(wr,{path:"/admin/prompts",element:c.jsx(Xa,{children:c.jsx(Pj,{})})}),c.jsx(wr,{path:"/admin/approvals",element:c.jsx(Xa,{children:c.jsx(Tj,{})})}),c.jsx(wr,{path:"/admin/draw",element:c.jsx(Xa,{children:c.jsx(jj,{})})}),c.jsx(wr,{path:"/admin/content",element:c.jsx(Xa,{children:c.jsx(eO,{})})}),c.jsx(wr,{path:"/admin/share",element:c.jsx(Xa,{children:c.jsx(SP,{})})}),c.jsx(wr,{path:"/admin/activity",element:c.jsx(Xa,{children:c.jsx(NP,{})})}),c.jsx(wr,{path:"/admin/zine",element:c.jsx(Xa,{children:c.jsx(AP,{})})}),c.jsx(wr,{path:"/admin/emails",element:c.jsx(Xa,{children:c.jsx(TP,{})})}),c.jsx(wr,{path:"*",element:c.jsx(_b,{to:"/",replace:!0})})]})]})]})}function RP(){return c.jsx(t4,{attribute:"class",defaultTheme:"system",enableSystem:!0,children:c.jsx(Z5,{children:c.jsx(h_,{children:c.jsxs(BS,{children:[c.jsx(PP,{}),c.jsx(R4,{position:"top-center"})]})})})})}function DP(e={}){const{immediate:o=!1,onNeedReload:n,onNeedRefresh:a,onOfflineReady:i,onRegistered:s,onRegisteredSW:u,onRegisterError:p}=e;let h,g;const w=async(f=!0)=>{await g};
344async function d(){if("serviceWorker"in navigator){if(h=await Ob(async()=>{const{Workbox:f}=await import("./workbox-window.prod.es5-BBnX5xw4.js");return{Workbox:f}},[]).then(({Workbox:f})=>new f("/sw.js",{scope:"/",type:"classic"})).catch(f=>{p?.(f)}),!h)return;h.addEventListener("activated",f=>{(f.isUpdate||f.isExternal)&&(n?n():window.location.reload())}),h.addEventListener("installed",f=>{f.isUpdate||i?.()}),h.register({immediate:o}).then(f=>{u?u("/sw.js",f):s?.(f)}).catch(f=>{p?.(f)})}}return g=d(),w}const MP=6e4;DP({immediate:!0,onRegisteredSW(e,o){if(!o)return;const n=()=>{navigator.onLine!==!1&&document.visibilityState==="visible"&&o.update().catch(()=>{})};setInterval(n,MP),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&n()})}});function $c(){const e=document.getElementById("favicon");if(!e){console.warn("Favicon element not found");return}const o=document.documentElement.classList.contains("dark"),n=o?"/favicon-promptbrush-dark-mode.png":"/favicon-promptbrush.png";e.href=n+"?v="+Date.now(),console.log("Favicon updated:",{isDark:o,href:n})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{$c(),new MutationObserver(o=>{o.forEach(n=>{n.attributeName==="class"&&$c()})}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}):($c(),new MutationObserver(o=>{o.forEach(n=>{n.attributeName==="class"&&$c()})}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}));z4().then(()=>{console.log("[App] Database initialized successfully"),Ew.createRoot(document.getElementById("root")).render(c.jsx(He.StrictMode,{children:c.jsx(RP,{})}))}).catch(e=>{console.error("[App] Failed to initialize database:",e),Ew.createRoot(document.getElementById("root")).render(c.jsx(He.StrictMode,{children:c.jsxs("div",{style:{padding:"20px",color:"red"},children:[c.jsx("h1",{children:"Database Initialization Error"}),c.jsx("p",{children:"Failed to initialize the database. Please refresh the page or check the console for details."}),c.jsx("pre",{children:String(e)})]})}))}); 345//# sourceMappingURL=index-C1U8G9R1.js.map
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.