bulma/docs/assets/javascript/bulma-customizer/index.js

45 lines
148 KiB
JavaScript
Raw Normal View History

2024-06-25 21:20:37 +00:00
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function t(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=t(l);fetch(l.href,o)}})();function Bo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bu={exports:{}},ll={},es={exports:{}},R={};/**
2024-06-24 02:25:58 +00:00
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2024-06-25 21:20:37 +00:00
*/var Jt=Symbol.for("react.element"),yc=Symbol.for("react.portal"),gc=Symbol.for("react.fragment"),wc=Symbol.for("react.strict_mode"),Sc=Symbol.for("react.profiler"),kc=Symbol.for("react.provider"),Ec=Symbol.for("react.context"),xc=Symbol.for("react.forward_ref"),_c=Symbol.for("react.suspense"),Cc=Symbol.for("react.memo"),Nc=Symbol.for("react.lazy"),Vi=Symbol.iterator;function Pc(e){return e===null||typeof e!="object"?null:(e=Vi&&e[Vi]||e["@@iterator"],typeof e=="function"?e:null)}var ns={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ts=Object.assign,rs={};function ut(e,n,t){this.props=e,this.context=n,this.refs=rs,this.updater=t||ns}ut.prototype.isReactComponent={};ut.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};ut.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ls(){}ls.prototype=ut.prototype;function Wo(e,n,t){this.props=e,this.context=n,this.refs=rs,this.updater=t||ns}var Qo=Wo.prototype=new ls;Qo.constructor=Wo;ts(Qo,ut.prototype);Qo.isPureReactComponent=!0;var Ai=Array.isArray,os=Object.prototype.hasOwnProperty,Ko={current:null},is={key:!0,ref:!0,__self:!0,__source:!0};function us(e,n,t){var r,l={},o=null,i=null;if(n!=null)for(r in n.ref!==void 0&&(i=n.ref),n.key!==void 0&&(o=""+n.key),n)os.call(n,r)&&!is.hasOwnProperty(r)&&(l[r]=n[r]);var u=arguments.length-2;if(u===1)l.children=t;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];l.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)l[r]===void 0&&(l[r]=u[r]);return{$$typeof:Jt,type:e,key:o,ref:i,props:l,_owner:Ko.current}}function zc(e,n){return{$$typeof:Jt,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function Xo(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jt}function Tc(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return n[t]})}var Hi=/\/+/g;function xl(e,n){return typeof e=="object"&&e!==null&&e.key!=null?Tc(""+e.key):n.toString(36)}function kr(e,n,t,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Jt:case yc:i=!0}}if(i)return i=e,l=l(i),e=r===""?"."+xl(i,0):r,Ai(l)?(t="",e!=null&&(t=e.replace(Hi,"$&/")+"/"),kr(l,n,t,"",function(c){return c})):l!=null&&(Xo(l)&&(l=zc(l,t+(!l.key||i&&i.key===l.key?"":(""+l.key).replace(Hi,"$&/")+"/")+e)),n.push(l)),1;if(i=0,r=r===""?".":r+":",Ai(e))for(var u=0;u<e.length;u++){o=e[u];var s=r+xl(o,u);i+=kr(o,n,t,s,l)}else if(s=Pc(e),typeof s=="function")for(e=s.call(e),u=0;!(o=e.next()).done;)o=o.value,s=r+xl(o,u++),i+=kr(o,n,t,s,l);else if(o==="object")throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return i}function lr(e,n,t){if(e==null)return e;var r=[],l=0;return kr(e,r,"","",function(o){return n.call(t,o,l++)}),r}function Lc(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var se={current:null},Er={transition:null},Rc={ReactCurrentDispatcher:se,ReactCurrentBatchConfig:Er,ReactCurrentOwner:Ko};function ss(){throw Error("act(...) is not supported in production builds of React.")}R.Children={map:lr,forEach:function(e,n,t){lr(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return lr(e,function(){n++}),n},toArray:function(e){return lr(e,function(n){return n})||[]},only:function(e){if(!Xo(e))throw Error("React.Children.only expected to receive a sing
2024-06-24 02:25:58 +00:00
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2024-06-25 21:20:37 +00:00
*/var Oc=X,Mc=Symbol.for("react.element"),Dc=Symbol.for("react.fragment"),Ic=Object.prototype.hasOwnProperty,Fc=Oc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$c={key:!0,ref:!0,__self:!0,__source:!0};function as(e,n,t){var r,l={},o=null,i=null;t!==void 0&&(o=""+t),n.key!==void 0&&(o=""+n.key),n.ref!==void 0&&(i=n.ref);for(r in n)Ic.call(n,r)&&!$c.hasOwnProperty(r)&&(l[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps,n)l[r]===void 0&&(l[r]=n[r]);return{$$typeof:Mc,type:e,key:o,ref:i,props:l,_owner:Fc.current}}ll.Fragment=Dc;ll.jsx=as;ll.jsxs=as;bu.exports=ll;var P=bu.exports,Gl={},cs={exports:{}},we={},fs={exports:{}},ds={};/**
2024-06-24 02:25:58 +00:00
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2024-06-25 21:20:37 +00:00
*/(function(e){function n(C,T){var L=C.length;C.push(T);e:for(;0<L;){var W=L-1>>>1,Z=C[W];if(0<l(Z,T))C[W]=T,C[L]=Z,L=W;else break e}}function t(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var T=C[0],L=C.pop();if(L!==T){C[0]=L;e:for(var W=0,Z=C.length,tr=Z>>>1;W<tr;){var wn=2*(W+1)-1,El=C[wn],Sn=wn+1,rr=C[Sn];if(0>l(El,L))Sn<Z&&0>l(rr,El)?(C[W]=rr,C[Sn]=L,W=Sn):(C[W]=El,C[wn]=L,W=wn);else if(Sn<Z&&0>l(rr,L))C[W]=rr,C[Sn]=L,W=Sn;else break e}}return T}function l(C,T){var L=C.sortIndex-T.sortIndex;return L!==0?L:C.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],c=[],m=1,h=null,p=3,g=!1,w=!1,S=!1,O=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(C){for(var T=t(c);T!==null;){if(T.callback===null)r(c);else if(T.startTime<=C)r(c),T.sortIndex=T.expirationTime,n(s,T);else break;T=t(c)}}function v(C){if(S=!1,f(C),!w)if(t(s)!==null)w=!0,Sl(k);else{var T=t(c);T!==null&&kl(v,T.startTime-C)}}function k(C,T){w=!1,S&&(S=!1,d(N),N=-1),g=!0;var L=p;try{for(f(T),h=t(s);h!==null&&(!(h.expirationTime>T)||C&&!Pe());){var W=h.callback;if(typeof W=="function"){h.callback=null,p=h.priorityLevel;var Z=W(h.expirationTime<=T);T=e.unstable_now(),typeof Z=="function"?h.callback=Z:h===t(s)&&r(s),f(T)}else r(s);h=t(s)}if(h!==null)var tr=!0;else{var wn=t(c);wn!==null&&kl(v,wn.startTime-T),tr=!1}return tr}finally{h=null,p=L,g=!1}}var E=!1,x=null,N=-1,D=5,z=-1;function Pe(){return!(e.unstable_now()-z<D)}function ct(){if(x!==null){var C=e.unstable_now();z=C;var T=!0;try{T=x(!0,C)}finally{T?ft():(E=!1,x=null)}}else E=!1}var ft;if(typeof a=="function")ft=function(){a(ct)};else if(typeof MessageChannel<"u"){var Ui=new MessageChannel,vc=Ui.port2;Ui.port1.onmessage=ct,ft=function(){vc.postMessage(null)}}else ft=function(){O(ct,0)};function Sl(C){x=C,E||(E=!0,ft())}function kl(C,T){N=O(function(){C(e.unstable_now())},T)}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(C){C.callback=null},e.unstable_continueExecution=function(){w||g||(w=!0,Sl(k))},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return t(s)},e.unstable_next=function(C){switch(p){case 1:case 2:case 3:var T=3;break;default:T=p}var L=p;p=T;try{return C()}finally{p=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(C,T){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var L=p;p=C;try{return T()}finally{p=L}},e.unstable_scheduleCallback=function(C,T,L){var W=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?W+L:W):L=W,C){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=L+Z,C={id:m++,callback:T,priorityLevel:C,startTime:L,expirationTime:Z,sortIndex:-1},L>W?(C.sortIndex=L,n(c,C),t(s)===null&&C===t(c)&&(S?(d(N),N=-1):S=!0,kl(v,L-W))):(C.sortIndex=Z,n(s,C),w||g||(w=!0,Sl(k))),C},e.unstable_shouldYield=Pe,e.unstable_wrapCallback=function(C){var T=p;return function(){var L=p;p=T;try{return C.apply(this,arguments)}finally{p=L}}}})(ds);fs.exports=ds;var Uc=fs.exports;/**
2024-06-24 02:25:58 +00:00
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2024-06-25 21:20:37 +00:00
*/var Vc=X,ge=Uc;function y(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ps=new Set,Mt={};function On(e,n){et(e,n),et(e+"Capture",n)}function et(e,n){for(Mt[e]=n,e=0;e<n.length;e++)ps.add(n[e])}var Xe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zl=Object.prototype.hasOwnProperty,Ac=/^[: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]*$/,Bi={},Wi={};function Hc(e){return Zl.call(Wi,e)?!0:Zl.call(Bi,e)?!1:Ac.test(e)?Wi[e]=!0:(Bi[e]=!0,!1)}function Bc(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Wc(e,n,t,r){if(n===null||typeof n>"u"||Bc(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function ae(e,n,t,r,l,o,i){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=i}var ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ne[e]=new ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];ne[n]=new ae(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ne[e]=new ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ne[e]=new ae(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ne[e]=new ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ne[e]=new ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ne[e]=new ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ne[e]=new ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ne[e]=new ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yo=/[\-:]([a-z])/g;function Go(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-
`+_l+e}var Cl=!1;function Nl(e,n){if(!e||Cl)return"";Cl=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(c){var r=c}Reflect.construct(e,[],n)}else{try{n.call()}catch(c){r=c}e.call(n.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var l=c.stack.split(`
2024-06-24 02:25:58 +00:00
`),o=r.stack.split(`
2024-06-25 21:20:37 +00:00
`),i=l.length-1,u=o.length-1;1<=i&&0<=u&&l[i]!==o[u];)u--;for(;1<=i&&0<=u;i--,u--)if(l[i]!==o[u]){if(i!==1||u!==1)do if(i--,u--,0>u||l[i]!==o[u]){var s=`
`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Cl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?kt(e):""}function Qc(e){switch(e.tag){case 5:return kt(e.type);case 16:return kt("Lazy");case 13:return kt("Suspense");case 19:return kt("SuspenseList");case 0:case 2:case 15:return e=Nl(e.type,!1),e;case 11:return e=Nl(e.type.render,!1),e;case 1:return e=Nl(e.type,!0),e;default:return""}}function eo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fn:return"Fragment";case In:return"Portal";case Jl:return"Profiler";case Jo:return"StrictMode";case ql:return"Suspense";case bl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hs:return(e.displayName||"Context")+".Consumer";case ms:return(e._context.displayName||"Context")+".Provider";case qo:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bo:return n=e.displayName||null,n!==null?n:eo(e.type)||"Memo";case be:n=e._payload,e=e._init;try{return eo(e(n))}catch{}}return null}function Kc(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return eo(n);case 8:return n===Jo?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function mn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ys(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Xc(e){var n=ys(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ir(e){e._valueTracker||(e._valueTracker=Xc(e))}function gs(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=ys(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Mr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function no(e,n){var t=n.checked;return H({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Ki(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=mn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function ws(e,n){n=n.checked,n!=null&&Zo(e,"checked",n,!1)}function to(e,n){ws(e,n);var t=mn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?ro(e,n.type,t):n.hasOwnProperty("defaultValue")&&ro(e,n.type,mn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Xi(e,n,t){if(n.hasOwnProperty("valu
`).replace(ld,"")}function mr(e,n,t){if(n=vu(n),vu(e)!==n&&t)throw Error(y(425))}function Hr(){}var go=null,wo=null;function So(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var ko=typeof setTimeout=="function"?setTimeout:void 0,od=typeof clearTimeout=="function"?clearTimeout:void 0,yu=typeof Promise=="function"?Promise:void 0,id=typeof queueMicrotask=="function"?queueMicrotask:typeof yu<"u"?function(e){return yu.resolve(null).then(e).catch(ud)}:ko;function ud(e){setTimeout(function(){throw e})}function Ul(e,n){var t=n,r=0;do{var l=t.nextSibling;if(e.removeChild(t),l&&l.nodeType===8)if(t=l.data,t==="/$"){if(r===0){e.removeChild(l),Ut(n);return}r--}else t!=="$"&&t!=="$?"&&t!=="$!"||r++;t=l}while(t);Ut(n)}function an(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function gu(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var t=e.data;if(t==="$"||t==="$!"||t==="$?"){if(n===0)return e;n--}else t==="/$"&&n++}e=e.previousSibling}return null}var at=Math.random().toString(36).slice(2),Ue="__reactFiber$"+at,Wt="__reactProps$"+at,Ye="__reactContainer$"+at,Eo="__reactEvents$"+at,sd="__reactListeners$"+at,ad="__reactHandles$"+at;function xn(e){var n=e[Ue];if(n)return n;for(var t=e.parentNode;t;){if(n=t[Ye]||t[Ue]){if(t=n.alternate,n.child!==null||t!==null&&t.child!==null)for(e=gu(e);e!==null;){if(t=e[Ue])return t;e=gu(e)}return n}e=t,t=e.parentNode}return null}function er(e){return e=e[Ue]||e[Ye],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function An(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(y(33))}function al(e){return e[Wt]||null}var xo=[],Hn=-1;function yn(e){return{current:e}}function $(e){0>Hn||(e.current=xo[Hn],xo[Hn]=null,Hn--)}function I(e,n){Hn++,xo[Hn]=e.current,e.current=n}var hn={},oe=yn(hn),de=yn(!1),zn=hn;function nt(e,n){var t=e.type.contextTypes;if(!t)return hn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in t)l[o]=n[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function pe(e){return e=e.childContextTypes,e!=null}function Br(){$(de),$(oe)}function wu(e,n,t){if(oe.current!==hn)throw Error(y(168));I(oe,n),I(de,t)}function ua(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(y(108,Kc(e)||"Unknown",l));return H({},t,r)}function Wr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hn,zn=oe.current,I(oe,e),I(de,de.current),!0}function Su(e,n,t){var r=e.stateNode;if(!r)throw Error(y(169));t?(e=ua(e,n,zn),r.__reactInternalMemoizedMergedChildContext=e,$(de),$(oe),I(oe,e)):$(de),I(de,t)}var Be=null,cl=!1,Vl=!1;function sa(e){Be===null?Be=[e]:Be.push(e)}function cd(e){cl=!0,sa(e)}function gn(){if(!Vl&&Be!==null){Vl=!0;var e=0,n=M;try{var t=Be;for(M=1;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}Be=null,cl=!1}catch(l){throw Be!==null&&(Be=Be.slice(e+1)),Os(ni,gn),l}finally{M=n,Vl=!1}}return null}var Bn=[],Wn=0,Qr=null,Kr=0,ke=[],Ee=0,Tn=null,We=1,Qe="";function kn(e,n){Bn[Wn++]=Kr,Bn[Wn++]=Qr,Qr=e,Kr=n}function aa(e,n,t){ke[Ee++]=We,ke[Ee++]=Qe,ke[Ee++]=Tn,Tn=e;var r=We;e=Qe;var l=32-Me(r)-1;r&=~(1<<l),t+=1;var o=32-Me(n)+l;if(30<o){var i=l-l%5;o=(r&(1<<i)-1).toString(32),r>>=i,l-=i,We=1<<32-Me(n)+l|t<<l|r,Qe=o+e}else We=1<<o|t<<l|r,Qe=e}function ci(e){e.return!==null&&(kn(e,1),aa(e,1,0))}function fi(e){for(;e===Qr;)Qr=Bn[--Wn],Bn[Wn]=null,Kr=Bn[--Wn],Bn[Wn]=null;for(;e===Tn;)Tn=ke[--Ee],ke[Ee]=null,Qe=ke[--Ee],ke[Ee]=null,We=ke[--Ee],ke[Ee]=null}var ye=null,ve=null,U=!1,Oe=null;function ca(e,n){var t=xe(5,null,null,0);t.elementType="DELETED",t.stateNode=n,t.return=e,n=e.deletions,n===null?(e.del
2024-06-24 02:25:58 +00:00
Error generating stack: `+o.message+`
2024-06-25 21:20:37 +00:00
`+o.stack}return{value:e,source:n,stack:l,digest:null}}function Ql(e,n,t){return{value:e,source:null,stack:t??null,digest:n??null}}function To(e,n){try{console.error(n.value)}catch(t){setTimeout(function(){throw t})}}var wd=typeof WeakMap=="function"?WeakMap:Map;function Fa(e,n,t){t=Ke(-1,t),t.tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){el||(el=!0,Uo=r),To(e,n)},t}function $a(e,n,t){t=Ke(-1,t),t.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){To(e,n)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){To(e,n),typeof r!="function"&&(fn===null?fn=new Set([this]):fn.add(this));var i=n.stack;this.componentDidCatch(n.value,{componentStack:i!==null?i:""})}),t}function Lu(e,n,t){var r=e.pingCache;if(r===null){r=e.pingCache=new wd;var l=new Set;r.set(n,l)}else l=r.get(n),l===void 0&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=Od.bind(null,e,n,t),n.then(e,e))}function Ru(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function ju(e,n,t,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(n=Ke(-1,1),n.tag=2,cn(t,n,1))),t.lanes|=1),e)}var Sd=Je.ReactCurrentOwner,fe=!1;function ie(e,n,t,r){n.child=e===null?pa(n,null,t,r):rt(n,e.child,t,r)}function Ou(e,n,t,r,l){t=t.render;var o=n.ref;return qn(n,l),r=Ei(e,n,t,r,o,l),t=xi(),e!==null&&!fe?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Ze(e,n,l)):(U&&t&&ci(n),n.flags|=1,ie(e,n,r,l),n.child)}function Mu(e,n,t,r,l){if(e===null){var o=t.type;return typeof o=="function"&&!Oi(o)&&o.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(n.tag=15,n.type=o,Ua(e,n,o,r,l)):(e=jr(t.type,null,r,n,n.mode,l),e.ref=n.ref,e.return=n,n.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(t=t.compare,t=t!==null?t:At,t(i,r)&&e.ref===n.ref)return Ze(e,n,l)}return n.flags|=1,e=pn(o,r),e.ref=n.ref,e.return=n,n.child=e}function Ua(e,n,t,r,l){if(e!==null){var o=e.memoizedProps;if(At(o,r)&&e.ref===n.ref)if(fe=!1,n.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(fe=!0);else return n.lanes=e.lanes,Ze(e,n,l)}return Lo(e,n,t,r,l)}function Va(e,n,t){var r=n.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},I(Xn,he),he|=t;else{if(!(t&1073741824))return e=o!==null?o.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,I(Xn,he),he|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:t,I(Xn,he),he|=r}else o!==null?(r=o.baseLanes|t,n.memoizedState=null):r=t,I(Xn,he),he|=r;return ie(e,n,l,t),n.child}function Aa(e,n){var t=n.ref;(e===null&&t!==null||e!==null&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function Lo(e,n,t,r,l){var o=pe(t)?zn:oe.current;return o=nt(n,o),qn(n,l),t=Ei(e,n,t,r,o,l),r=xi(),e!==null&&!fe?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Ze(e,n,l)):(U&&r&&ci(n),n.flags|=1,ie(e,n,t,l),n.child)}function Du(e,n,t,r,l){if(pe(t)){var o=!0;Wr(n)}else o=!1;if(qn(n,l),n.stateNode===null)Tr(e,n),Ia(n,t,r),zo(n,t,r,l),r=!0;else if(e===null){var i=n.stateNode,u=n.memoizedProps;i.props=u;var s=i.context,c=t.contextType;typeof c=="object"&&c!==null?c=Ce(c):(c=pe(t)?zn:oe.current,c=nt(n,c));var m=t.getDerivedStateFromProps,h=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==c)&&Tu(n,i,r,c),en=!1;var p=n.memoizedState;i.state=p,Gr(n,r,i,l),s=n.memoizedState,u!==r||p!==s||de.current||en?(typeof m=="function"&&(Po(n,t,m,r),s=n.memoizedState),(u=en||zu(n,t,u,r,p,s,c))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.compon
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var o="",i=0;i<arguments.length;i++){var u=arguments[i];u&&(o=l(o,r(u)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var u in o)n.call(o,u)&&o[u]&&(i=l(i,u));return i}function l(o,i){return i?o?o+" "+i:o+i:o}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(mc);var qd=mc.exports;const Gu=Bo(qd),bd="_main_ganj6_1",ep="_moving_ganj6_8",np="_handle_ganj6_12",tp="_background_ganj6_32",rp="_hue_ganj6_38",lp="_saturation_ganj6_51",op="_lightness_ganj6_60",St={main:bd,moving:ep,handle:np,background:tp,hue:rp,saturation:lp,lightness:op},ip={hue:[0,360,1],saturation:[0,100,1],lightness:[0,100,1],gap:[0,100,1],any:[0,100,1]},up=(e,n,t,r)=>{const o=e/n*(r-t);return Math.round(o)},Zu=(e,n,t,r)=>{const o=e/(r-t)*n;return Math.round(o)};function Or({id:e,color:n,kind:t}){const{cssvars:r,updateVar:l}=X.useContext($i),{start:o,current:i}=r[e],[u,s]=ip[t],c=X.useRef(null),m=X.useRef(null),[h,p]=X.useState(!1),[g,w]=X.useState(Zu(o,360,u,s)),S=E=>{p(!0);const N=c.current.getBoundingClientRect(),D=E.clientX-N.left;w(D)},O=()=>{p(!1)},d=()=>{p(!1)};X.useEffect(()=>{const x=c.current.getBoundingClientRect(),N=up(g,x.width,u,s);l(e,N)},[e,u,s,l,g]),X.useEffect(()=>{const E=Zu(i,360,u,s);w(E)},[u,s,i]),X.useEffect(()=>{const E=x=>{if(!h||!c.current||!m.current)return;const D=c.current.getBoundingClientRect();let z=x.clientX-D.left;z<0?z=0:z>D.width&&(z=D.width),w(z)};return window.addEventListener("mousemove",E),()=>{window.removeEventListener("mousemove",E)}},[h,u,s,g]),X.useEffect(()=>(window.addEventListener("mouseleave",O),()=>{window.removeEventListener("mouseleave",O)}),[]),X.useEffect(()=>(window.addEventListener("mouseup",d),()=>{window.removeEventListener("mouseup",d)}),[]);const a=Gu({[St.main]:!0,[St.moving]:h}),f=Gu({[St.background]:!0,[St[t]]:!0}),v={"--h":`var(--bulma-${n}-h)`,"--s":`var(--bulma-${n}-s)`,"--l":`var(--bulma-${n}-l)`},k={transform:`translateX(${g}px)`};return P.jsx("div",{className:a,ref:c,style:v,onMouseDown:S,children:P.jsx("div",{className:f,children:P.jsx("span",{ref:m,className:St.handle,style:k})})})}Or.propTypes={id:je.string,kind:je.string,color:je.string,original:je.string,start:je.number,unit:je.string,getValue:je.func};const sp="_main_stbv3_1",ap="_side_stbv3_9",cp="_swatch_stbv3_13",fp="_name_stbv3_21",dp="_lines_stbv3_34",pp="_line_stbv3_34",mp="_form_stbv3_51",Te={main:sp,side:ap,swatch:cp,name:fp,lines:dp,line:pp,form:mp};function hp(e,n,t){n/=100,t/=100;let r=(1-Math.abs(2*t-1))*n,l=r*(1-Math.abs(e/60%2-1)),o=t-r/2,i=0,u=0,s=0;return 0<=e&&e<60?(i=r,u=l,s=0):60<=e&&e<120?(i=l,u=r,s=0):120<=e&&e<180?(i=0,u=r,s=l):180<=e&&e<240?(i=0,u=l,s=r):240<=e&&e<300?(i=l,u=0,s=r):300<=e&&e<360&&(i=r,u=0,s=l),i=Math.round((i+o)*255),u=Math.round((u+o)*255),s=Math.round((s+o)*255),`${((1<<24)+(i<<16)+(u<<8)+s).toString(16).slice(1).toUpperCase()}`}function Ju(e){e=e.replace(/^#/,"");let n=parseInt(e.slice(0,2),16),t=parseInt(e.slice(2,4),16),r=parseInt(e.slice(4,6),16);n/=255,t/=255,r/=255;let l=Math.max(n,t,r),o=Math.min(n,t,r),i,u,s=(l+o)/2;if(l===o)i=u=0;else{let c=l-o;switch(u=s>.5?c/(2-l-o):c/(l+o),l){case n:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-n)/c+2;break;case r:i=(n-t)/c+4;break}i*=60}return{hue:Math.round(i),saturation:Math.round(u*100),lightness:Math.round(s*100)}}function hc({color:e}){const{cssvars:n,updateVar:t}=X.useContext($i),[r,l]=X.useState(""),o=`${e}-h`,i=`${e}-s`,u=`${e}-l`,s=n[o],c=n[i],m=n[u],h={"--h":`var(--bulma-${o})`,"--s":`var(--bulma-${i})`,"--l":`var(--bulma-${u})`},p=e.charAt(0).toUpperCase()+e.slice(1),g=a=>{a.preventDefault(),t(s.id,s.start),t(c.id,c.start),t(m.id,m.start)},w=a=>{a.preventDefault();let f=window.prompt("Enter a Hexadecimal value (e.g. 00d1b2)");if(f.startsWith("#")&&(f=f.replace(/^#/,"")),!/^([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})$/.test(f)||f.length>6){window.prompt("