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

49 lines
201 KiB
JavaScript
Raw Normal View History

2024-06-27 03:19:20 +00:00
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Zo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var aa={exports:{}},ci={},ua={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-27 03:19:20 +00:00
*/var ir=Symbol.for("react.element"),Ed=Symbol.for("react.portal"),Cd=Symbol.for("react.fragment"),Nd=Symbol.for("react.strict_mode"),jd=Symbol.for("react.profiler"),Ld=Symbol.for("react.provider"),zd=Symbol.for("react.context"),Pd=Symbol.for("react.forward_ref"),Rd=Symbol.for("react.suspense"),Od=Symbol.for("react.memo"),Md=Symbol.for("react.lazy"),Kl=Symbol.iterator;function Dd(e){return e===null||typeof e!="object"?null:(e=Kl&&e[Kl]||e["@@iterator"],typeof e=="function"?e:null)}var da={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ca=Object.assign,pa={};function fn(e,t,n){this.props=e,this.context=t,this.refs=pa,this.updater=n||da}fn.prototype.isReactComponent={};fn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function fa(){}fa.prototype=fn.prototype;function qo(e,t,n){this.props=e,this.context=t,this.refs=pa,this.updater=n||da}var Jo=qo.prototype=new fa;Jo.constructor=qo;ca(Jo,fn.prototype);Jo.isPureReactComponent=!0;var Gl=Array.isArray,ha=Object.prototype.hasOwnProperty,el={current:null},ma={key:!0,ref:!0,__self:!0,__source:!0};function ga(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)ha.call(t,r)&&!ma.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var a=Array(s),p=0;p<s;p++)a[p]=arguments[p+2];i.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:ir,type:e,key:o,ref:l,props:i,_owner:el.current}}function Id(e,t){return{$$typeof:ir,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function tl(e){return typeof e=="object"&&e!==null&&e.$$typeof===ir}function $d(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Xl=/\/+/g;function Li(e,t){return typeof e=="object"&&e!==null&&e.key!=null?$d(""+e.key):t.toString(36)}function jr(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case ir:case Ed:l=!0}}if(l)return l=e,i=i(l),e=r===""?"."+Li(l,0):r,Gl(i)?(n="",e!=null&&(n=e.replace(Xl,"$&/")+"/"),jr(i,t,n,"",function(p){return p})):i!=null&&(tl(i)&&(i=Id(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(Xl,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=r===""?".":r+":",Gl(e))for(var s=0;s<e.length;s++){o=e[s];var a=r+Li(o,s);l+=jr(o,t,n,a,i)}else if(a=Dd(e),typeof a=="function")for(e=a.call(e),s=0;!(o=e.next()).done;)o=o.value,a=r+Li(o,s++),l+=jr(o,t,n,a,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function pr(e,t,n){if(e==null)return e;var r=[],i=0;return jr(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Fd(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var pe={current:null},Lr={transition:null},Vd={ReactCurrentDispatcher:pe,ReactCurrentBatchConfig:Lr,ReactCurrentOwner:el};function va(){throw Error("act(...) is not supported in production builds of React.")}R.Children={map:pr,forEach:function(e,t,n){pr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return pr(e,function(){t++}),t},toArray:function(e){return pr(e,function(t){return t})||[]},only:function(e){if(!tl(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-27 03:19:20 +00:00
*/var Wd=W,Ad=Symbol.for("react.element"),Hd=Symbol.for("react.fragment"),Bd=Object.prototype.hasOwnProperty,Qd=Wd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Kd={key:!0,ref:!0,__self:!0,__source:!0};function ya(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Bd.call(t,r)&&!Kd.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Ad,type:e,key:o,ref:l,props:i,_owner:Qd.current}}ci.Fragment=Hd;ci.jsx=ya;ci.jsxs=ya;aa.exports=ci;var f=aa.exports,ro={},wa={exports:{}},Se={},Ta={exports:{}},ka={};/**
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-27 03:19:20 +00:00
*/(function(e){function t(E,L){var P=E.length;E.push(L);e:for(;0<P;){var G=P-1>>>1,J=E[G];if(0<i(J,L))E[G]=L,E[P]=J,P=G;else break e}}function n(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var L=E[0],P=E.pop();if(P!==L){E[0]=P;e:for(var G=0,J=E.length,dr=J>>>1;G<dr;){var kt=2*(G+1)-1,ji=E[kt],xt=kt+1,cr=E[xt];if(0>i(ji,P))xt<J&&0>i(cr,ji)?(E[G]=cr,E[xt]=P,G=xt):(E[G]=ji,E[kt]=P,G=kt);else if(xt<J&&0>i(cr,P))E[G]=cr,E[xt]=P,G=xt;else break e}}return L}function i(E,L){var P=E.sortIndex-L.sortIndex;return P!==0?P:E.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],p=[],g=1,v=null,m=3,h=!1,y=!1,k=!1,N=typeof setTimeout=="function"?setTimeout:null,u=typeof clearTimeout=="function"?clearTimeout:null,d=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(E){for(var L=n(p);L!==null;){if(L.callback===null)r(p);else if(L.startTime<=E)r(p),L.sortIndex=L.expirationTime,t(a,L);else break;L=n(p)}}function w(E){if(k=!1,c(E),!y)if(n(a)!==null)y=!0,Ci(x);else{var L=n(p);L!==null&&Ni(w,L.startTime-E)}}function x(E,L){y=!1,k&&(k=!1,u(C),C=-1),h=!0;var P=m;try{for(c(L),v=n(a);v!==null&&(!(v.expirationTime>L)||E&&!ze());){var G=v.callback;if(typeof G=="function"){v.callback=null,m=v.priorityLevel;var J=G(v.expirationTime<=L);L=e.unstable_now(),typeof J=="function"?v.callback=J:v===n(a)&&r(a),c(L)}else r(a);v=n(a)}if(v!==null)var dr=!0;else{var kt=n(p);kt!==null&&Ni(w,kt.startTime-L),dr=!1}return dr}finally{v=null,m=P,h=!1}}var S=!1,b=null,C=-1,D=5,j=-1;function ze(){return!(e.unstable_now()-j<D)}function gn(){if(b!==null){var E=e.unstable_now();j=E;var L=!0;try{L=b(!0,E)}finally{L?vn():(S=!1,b=null)}}else S=!1}var vn;if(typeof d=="function")vn=function(){d(gn)};else if(typeof MessageChannel<"u"){var Ql=new MessageChannel,_d=Ql.port2;Ql.port1.onmessage=gn,vn=function(){_d.postMessage(null)}}else vn=function(){N(gn,0)};function Ci(E){b=E,S||(S=!0,vn())}function Ni(E,L){C=N(function(){E(e.unstable_now())},L)}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(E){E.callback=null},e.unstable_continueExecution=function(){y||h||(y=!0,Ci(x))},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(E){switch(m){case 1:case 2:case 3:var L=3;break;default:L=m}var P=m;m=L;try{return E()}finally{m=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,L){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var P=m;m=E;try{return L()}finally{m=P}},e.unstable_scheduleCallback=function(E,L,P){var G=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?G+P:G):P=G,E){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=P+J,E={id:g++,callback:L,priorityLevel:E,startTime:P,expirationTime:J,sortIndex:-1},P>G?(E.sortIndex=P,t(p,E),n(a)===null&&E===n(p)&&(k?(u(C),C=-1):k=!0,Ni(w,P-G))):(E.sortIndex=J,t(a,E),y||h||(y=!0,Ci(x))),E},e.unstable_shouldYield=ze,e.unstable_wrapCallback=function(E){var L=m;return function(){var P=m;m=L;try{return E.apply(this,arguments)}finally{m=P}}}})(ka);Ta.exports=ka;var Gd=Ta.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-27 03:19:20 +00:00
*/var Xd=W,xe=Gd;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var xa=new Set,Un={};function Dt(e,t){ln(e,t),ln(e+"Capture",t)}function ln(e,t){for(Un[e]=t,e=0;e<t.length;e++)xa.add(t[e])}var Ye=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),io=Object.prototype.hasOwnProperty,Yd=/^[: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]*$/,Yl={},Zl={};function Zd(e){return io.call(Zl,e)?!0:io.call(Yl,e)?!1:Yd.test(e)?Zl[e]=!0:(Yl[e]=!0,!1)}function qd(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Jd(e,t,n,r){if(t===null||typeof t>"u"||qd(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function fe(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){oe[e]=new fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];oe[t]=new fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){oe[e]=new fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){oe[e]=new fe(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){oe[e]=new fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){oe[e]=new fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){oe[e]=new fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){oe[e]=new fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){oe[e]=new fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var nl=/[\-:]([a-z])/g;function rl(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-
`+zi+e}var Pi=!1;function Ri(e,t){if(!e||Pi)return"";Pi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var i=p.stack.split(`
`),o=r.stack.split(`
`),l=i.length-1,s=o.length-1;1<=l&&0<=s&&i[l]!==o[s];)s--;for(;1<=l&&0<=s;l--,s--)if(i[l]!==o[s]){if(l!==1||s!==1)do if(l--,s--,0>s||i[l]!==o[s]){var a=`
`+i[l].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Pi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cn(e):""}function ec(e){switch(e.tag){case 5:return Cn(e.type);case 16:return Cn("Lazy");case 13:return Cn("Suspense");case 19:return Cn("SuspenseList");case 0:case 2:case 15:return e=Ri(e.type,!1),e;case 11:return e=Ri(e.type.render,!1),e;case 1:return e=Ri(e.type,!0),e;default:return""}}function ao(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 Wt:return"Fragment";case Ut:return"Portal";case oo:return"Profiler";case ol:return"StrictMode";case lo:return"Suspense";case so:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ba:return(e.displayName||"Context")+".Consumer";case Sa:return(e._context.displayName||"Context")+".Provider";case ll:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case sl:return t=e.displayName||null,t!==null?t:ao(e.type)||"Memo";case nt:t=e._payload,e=e._init;try{return ao(e(t))}catch{}}return null}function tc(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ao(t);case 8:return t===ol?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function gt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ea(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nc(e){var t=Ea(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hr(e){e._valueTracker||(e._valueTracker=nc(e))}function Ca(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ea(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ur(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 uo(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Jl(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Na(e,t){t=t.checked,t!=null&&il(e,"checked",t,!1)}function co(e,t){Na(e,t);var n=gt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?po(e,t.type,n):t.hasOwnProperty("defaultValue")&&po(e,t.type,gt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function es(e,t,n){if(t.hasOwnProperty("valu
`).replace(pp,"")}function xr(e,t,n){if(t=Ss(t),Ss(e)!==t&&n)throw Error(T(425))}function Xr(){}var Eo=null,Co=null;function No(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var jo=typeof setTimeout=="function"?setTimeout:void 0,fp=typeof clearTimeout=="function"?clearTimeout:void 0,bs=typeof Promise=="function"?Promise:void 0,hp=typeof queueMicrotask=="function"?queueMicrotask:typeof bs<"u"?function(e){return bs.resolve(null).then(e).catch(mp)}:jo;function mp(e){setTimeout(function(){throw e})}function Qi(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Qn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Qn(t)}function ct(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function _s(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var mn=Math.random().toString(36).slice(2),Ue="__reactFiber$"+mn,Zn="__reactProps$"+mn,Ze="__reactContainer$"+mn,Lo="__reactEvents$"+mn,gp="__reactListeners$"+mn,vp="__reactHandles$"+mn;function _t(e){var t=e[Ue];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ze]||n[Ue]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_s(e);e!==null;){if(n=e[Ue])return n;e=_s(e)}return t}e=n,n=e.parentNode}return null}function sr(e){return e=e[Ue]||e[Ze],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function gi(e){return e[Zn]||null}var zo=[],Kt=-1;function wt(e){return{current:e}}function U(e){0>Kt||(e.current=zo[Kt],zo[Kt]=null,Kt--)}function F(e,t){Kt++,zo[Kt]=e.current,e.current=t}var vt={},ue=wt(vt),ge=wt(!1),zt=vt;function sn(e,t){var n=e.type.contextTypes;if(!n)return vt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ve(e){return e=e.childContextTypes,e!=null}function Yr(){U(ge),U(ue)}function Es(e,t,n){if(ue.current!==vt)throw Error(T(168));F(ue,t),F(ge,n)}function gu(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(T(108,tc(e)||"Unknown",i));return Q({},n,r)}function Zr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vt,zt=ue.current,F(ue,e),F(ge,ge.current),!0}function Cs(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=gu(e,t,zt),r.__reactInternalMemoizedMergedChildContext=e,U(ge),U(ue),F(ue,e)):U(ge),F(ge,n)}var Be=null,vi=!1,Ki=!1;function vu(e){Be===null?Be=[e]:Be.push(e)}function yp(e){vi=!0,vu(e)}function Tt(){if(!Ki&&Be!==null){Ki=!0;var e=0,t=$;try{var n=Be;for($=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Be=null,vi=!1}catch(i){throw Be!==null&&(Be=Be.slice(e+1)),Wa(ul,Tt),i}finally{$=t,Ki=!1}}return null}var Gt=[],Xt=0,qr=null,Jr=0,_e=[],Ee=0,Pt=null,Ke=1,Ge="";function St(e,t){Gt[Xt++]=Jr,Gt[Xt++]=qr,qr=e,Jr=t}function yu(e,t,n){_e[Ee++]=Ke,_e[Ee++]=Ge,_e[Ee++]=Pt,Pt=e;var r=Ke;e=Ge;var i=32-De(r)-1;r&=~(1<<i),n+=1;var o=32-De(t)+i;if(30<o){var l=i-i%5;o=(r&(1<<l)-1).toString(32),r>>=l,i-=l,Ke=1<<32-De(t)+i|n<<i|r,Ge=o+e}else Ke=1<<o|n<<i|r,Ge=e}function yl(e){e.return!==null&&(St(e,1),yu(e,1,0))}function wl(e){for(;e===qr;)qr=Gt[--Xt],Gt[Xt]=null,Jr=Gt[--Xt],Gt[Xt]=null;for(;e===Pt;)Pt=_e[--Ee],_e[Ee]=null,Ge=_e[--Ee],_e[Ee]=null,Ke=_e[--Ee],_e[Ee]=null}var ke=null,Te=null,A=!1,Me=null;function wu(e,t){var n=Ce(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.del
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function qi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Io(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Cp=typeof WeakMap=="function"?WeakMap:Map;function Qu(e,t,n){n=Xe(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){si||(si=!0,Ko=r),Io(e,t)},n}function Ku(e,t,n){n=Xe(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Io(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Io(e,t),typeof r!="function"&&(ft===null?ft=new Set([this]):ft.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Is(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Cp;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Up.bind(null,e,t,n),t.then(e,e))}function $s(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Fs(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Xe(-1,1),t.tag=2,pt(n,t,1))),n.lanes|=1),e)}var Np=et.ReactCurrentOwner,me=!1;function de(e,t,n,r){t.child=e===null?xu(t,null,n,r):un(t,e.child,n,r)}function Vs(e,t,n,r,i){n=n.render;var o=t.ref;return rn(t,i),r=Ll(e,t,n,r,o,i),n=zl(),e!==null&&!me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Je(e,t,i)):(A&&n&&yl(t),t.flags|=1,de(e,t,r,i),t.child)}function Us(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ul(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Gu(e,t,o,r,i)):(e=Vr(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Gn,n(l,r)&&e.ref===t.ref)return Je(e,t,i)}return t.flags|=1,e=mt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Gu(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Gn(o,r)&&e.ref===t.ref)if(me=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(me=!0);else return t.lanes=e.lanes,Je(e,t,i)}return $o(e,t,n,r,i)}function Xu(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},F(qt,we),we|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,F(qt,we),we|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,F(qt,we),we|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,F(qt,we),we|=r;return de(e,t,i,n),t.child}function Yu(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $o(e,t,n,r,i){var o=ve(n)?zt:ue.current;return o=sn(t,o),rn(t,i),n=Ll(e,t,n,r,o,i),r=zl(),e!==null&&!me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Je(e,t,i)):(A&&r&&yl(t),t.flags|=1,de(e,t,n,i),t.child)}function Ws(e,t,n,r,i){if(ve(n)){var o=!0;Zr(t)}else o=!1;if(rn(t,i),t.stateNode===null)Ir(e,t),Bu(t,n,r),Do(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,p=n.contextType;typeof p=="object"&&p!==null?p=je(p):(p=ve(n)?zt:ue.current,p=sn(t,p));var g=n.getDerivedStateFromProps,v=typeof g=="function"||typeof l.getSnapshotBeforeUpdate=="function";v||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==p)&&Ds(t,l,r,p),rt=!1;var m=t.memoizedState;l.state=m,ni(t,r,l,i),a=t.memoizedState,s!==r||m!==a||ge.current||rt?(typeof g=="function"&&(Mo(t,n,g,r),a=t.memoizedState),(s=rt||Ms(t,n,s,r,m,a,p))?(v||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.compon
2024-06-25 21:20:37 +00:00
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
2024-06-27 03:19:20 +00:00
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var l="";for(var s in o)t.call(o,s)&&o[s]&&(l=i(l,s));return l}function i(o,l){return l?o?o+" "+l:o+l:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Td);var Jp=Td.exports;const Qe=Zo(Jp),ef="_app_1oamh_1",tf="_customizer_1oamh_14",nf="_open_1oamh_32",rf="_controls_1oamh_38",of="_buttons_1oamh_45",lf="_button_1oamh_45",z={app:ef,customizer:tf,open:nf,controls:rf,buttons:of,button:lf},O={scheme:[{id:"scheme-h",description:"The Scheme's Hue, that is used for backgrounds, borders, and text, in both Light and Dark modes"},{id:"scheme-s",description:"The Scheme's Saturation, that is used for backgrounds, borders, and text, in both Light and Dark modes"},{id:"light-l",description:"The lightness of backgrounds"},{id:"light-invert-l",description:"The lightness of backgrounds' invert color"},{id:"dark-l",description:"The lightness of dark backgrounds"},{id:"dark-invert-l",description:"The lightness of dark backgrounds' invert color"},{id:"soft-l",description:"The lightness of soft colors"},{id:"bold-l",description:"The lightness of bold colors"},{id:"soft-invert-l",description:"The lightness of soft color's invert color"},{id:"bold-invert-l",description:"The lightness of bold color's invert color"},{id:"hover-background-l-delta",description:"Defines how much the lightness will change when a background is hovered"},{id:"active-background-l-delta",description:"Defines how much the lightness will change when a background is active"},{id:"hover-border-l-delta",description:"Defines how much the lightness will change when a border is hovered"},{id:"active-border-l-delta",description:"Defines how much the lightness will change when a border is active"},{id:"hover-color-l-delta",description:"Defines how much the lightness will change when a color is hovered"},{id:"active-color-l-delta",description:"Defines how much the lightness will change when a color is active"},{id:"hover-shadow-a-delta",description:"Defines how much the lightness will change when a shadow is hovered"},{id:"active-shadow-a-delta",description:"Defines how much the lightness will change when a shadow is active"}],colors:[{id:"primary-h",description:"The Primary color's hue"},{id:"primary-s",description:"The Primary color's saturation"},{id:"primary-l",description:"The Primary color's lightness"},{id:"link-h",description:"The Link color's hue"},{id:"link-s",description:"The Link color's saturation"},{id:"link-l",description:"The Link color's lightness"},{id:"info-h",description:"The Info color's hue"},{id:"info-s",description:"The Info color's saturation"},{id:"info-l",description:"The Info color's lightness"},{id:"success-h",description:"The Success color's hue"},{id:"success-s",description:"The Success color's saturation"},{id:"success-l",description:"The Success color's lightness"},{id:"warning-h",description:"The Warning color's hue"},{id:"warning-s",description:"The Warning color's saturation"},{id:"warning-l",description:"The Warning color's lightness"},{id:"danger-h",description:"The Danger color's hue"},{id:"danger-s",description:"The Danger color's saturation"},{id:"danger-l",description:"The Danger color's lightness"}],typography:[{id:"family-primary",description:"The Primary font family"},{id:"family-secondary",description:"The Secondary font family"},{id:"family-code",description:"The Code font family"},{id:"size-small",description:"The Small font size"},{id:"size-normal",description:"The Normal font size"},{id:"size-medium",description:"The Medium font size"},{id:"size-large",description:"The Large font size"},{id:"weight-light",description:"The Light font weight"},{id:"weight-normal",description:"The Normal font weight"},{id:"weight-medium",descr
`;N in g?g[N].push(c):g[N]=[c]});let v="";for(const[m,h]of Object.entries(g))v+=`${m} {
`,h.forEach(y=>v+=` ${y}`),v+=`}
2024-06-27 02:04:40 +00:00
2024-06-27 03:19:20 +00:00
`;i(v)},[e]),f.jsxs("div",{className:Vt.main,children:[f.jsxs("div",{className:Vt.body,children:[f.jsx("p",{className:"title is-5",children:"Export"}),r?f.jsxs("div",{className:Vt.explanation,children:[f.jsxs("p",{children:["Insert this CSS ",f.jsx("em",{children:"after"})," importing Bulma."]}),f.jsxs("div",{className:"buttons are-small",children:[o?f.jsx("span",{className:"button is-success",children:"Copied!"}):f.jsx("button",{onClick:p,className:"button is-primary",children:"Copy"}),f.jsx("button",{onClick:s,className:"button is-danger is-outlined",children:"Reset"})]})]}):f.jsxs(f.Fragment,{children:[f.jsx("div",{className:Vt.explanation,children:f.jsx("p",{children:"Customize CSS variables in the other pages and come back here to find the generated CSS."})}),f.jsx("div",{className:Vt.go,children:f.jsx("button",{className:"button is-primary",onClick:a,children:"Let's go!"})})]})]}),r&&f.jsx("pre",{className:Vt.pre,children:r.trim()})]})}const oa={"-h":"hue","-s":"saturation","-l":"lightness","-delta":"delta","-color":"color"},Sh=["deg","%"],la={colors:f.jsx(zf,{}),scheme:f.jsx($f,{}),typography:f.jsx(Ff,{}),other:f.jsx(Vf,{}),generic:f.jsx(Uf,{}),skeleton:f.jsx(Wf,{}),breadcrumb:f.jsx(Af,{}),card:f.jsx(Hf,{}),dropdown:f.jsx(Bf,{}),menu:f.jsx(Qf,{}),message:f.jsx(Kf,{}),modal:f.jsx(Gf,{}),navbar:f.jsx(Xf,{}),pagination:f.jsx(Yf,{}),panel:f.jsx(Zf,{}),tabs:f.jsx(qf,{}),box:f.jsx(Jf,{}),content:f.jsx(eh,{}),delete:f.jsx(th,{}),icon:f.jsx(nh,{}),notification:f.jsx(rh,{}),progress:f.jsx(ih,{}),table:f.jsx(oh,{}),tag:f.jsx(lh,{}),title:f.jsx(sh,{}),control:f.jsx(ah,{}),input:f.jsx(uh,{}),file:f.jsx(dh,{}),columns:f.jsx(ch,{}),grid:f.jsx(ph,{}),footer:f.jsx(fh,{}),hero:f.jsx(hh,{}),media:f.jsx(mh,{}),section:f.jsx(gh,{}),export:f.jsx(xh,{})},bh=["Global Variables","Components","Elements","Form","Grid","Layout","Export"],no={"Global Variables":["colors","scheme","typography","other","generic","skeleton"],Components:["breadcrumb","card","dropdown","menu","message","modal","navbar","pagination","panel","tabs"],Elements:["box","content","delete","icon","notification","progress","table","tag","title"],Form:["control","input","file"],Grid:["columns","grid"],Layout:["footer","hero","media","section"],Export:["export"]},sa="bulma-customizer-vars",ur=W.createContext({isOpen:!1,showExport:!1,cssvars:{},saved:{},currentTab:"",currentPage:"",getVar:()=>{},changeTab:()=>{},changePage:()=>{},updateVar:()=>{},hideExport:()=>{}});function _h(){const e=W.useRef(),t={isOpen:!1,showExport:!1,cssvars:{},saved:{},currentTab:"Global Variables",currentPage:"colors",getVar:h=>n.cssvars[h],changeTab:h=>{r(y=>({...y,currentTab:h}))},changePage:h=>{r(y=>({...y,currentPage:h}))},updateVar:(h,y)=>{r(k=>({...k,cssvars:{...k.cssvars,[h]:{...k.cssvars[h],current:y}}}))},resetVars:()=>{r(h=>{const y={};for(const[k,N]of Object.entries(h.cssvars)){const u={...N,current:N.start};y[k]=u}return{...h,cssvars:y}})},hideExport:()=>{r(h=>({...h,showExport:!1}))}},[n,r]=W.useState(()=>{const h=localStorage.getItem(sa);if(h){const y=JSON.parse(h);t.cssvars=y,t.saved=y}return t}),i=h=>{h.preventDefault();const y=h.target.value;n.changeTab(y),n.changePage(no[y][0])},o=(h,y)=>{h.preventDefault(),n.changePage(y)},l=h=>{h.preventDefault(),r(y=>({...y,isOpen:!y.isOpen}))},s=h=>{h.preventDefault(),r(y=>({...y,showExport:!y.showExport}))};W.useEffect(()=>{const h={root:window.getComputedStyle(document.documentElement),breadcrumb:window.getComputedStyle(document.querySelector(".breadcrumb")),card:window.getComputedStyle(document.querySelector(".card")),dropdown:window.getComputedStyle(document.querySelector(".dropdown")),menu:window.getComputedStyle(document.querySelector(".menu")),message:window.getComputedStyle(document.querySelector(".message")),modal:window.getComputedStyle(document.querySelector(".modal")),navbar:window.getComputedStyle(document.querySelector(".navbar")),pagination:window.getComputedStyle(document.querySelector(".pagination")),panel:window.getComputedStyle(document.querySelector(".panel")),tabs:window.getComputedStyle(document.querySelector(".tabs")),b