blog/source/files/magicbroad/assets/index.13b310ab.js

26 lines
141 KiB
JavaScript
Raw Normal View History

2022-06-09 01:09:09 +00:00
var dr=Object.defineProperty,pr=Object.defineProperties;var mr=Object.getOwnPropertyDescriptors;var Ze=Object.getOwnPropertySymbols;var en=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable;var Zt=(n,e,t)=>e in n?dr(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,S=(n,e)=>{for(var t in e||(e={}))en.call(e,t)&&Zt(n,t,e[t]);if(Ze)for(var t of Ze(e))tn.call(e,t)&&Zt(n,t,e[t]);return n},K=(n,e)=>pr(n,mr(e));var nn=(n,e)=>{var t={};for(var r in n)en.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&Ze)for(var r of Ze(n))e.indexOf(r)<0&&tn.call(n,r)&&(t[r]=n[r]);return t};const gr=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerpolicy&&(i.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?i.credentials="include":s.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=t(s);fetch(s.href,i)}};gr();const O={};function Ue(n){O.context=n}const yr=(n,e)=>n===e,he=Symbol("solid-proxy"),Sn=Symbol("solid-track"),at={equals:yr};let En=Rn;const xe={},me=1,ct=2,$n={owned:null,cleanups:null,context:null,owner:null},[vr,Ja]=q(!1);var R=null;let qe=null,x=null,Fe=null,G=null,Q=null,Lt=0;function we(n,e){const t=x,r=R,s=n.length===0?$n:{owned:null,cleanups:null,context:null,owner:e||r};R=s,x=null;try{return gt(()=>n(()=>zt(s)),!0)}finally{x=t,R=r}}function q(n,e){e=e?Object.assign({},at,e):at;const t={value:n,observers:null,observerSlots:null,pending:xe,comparator:e.equals||void 0},r=s=>(typeof s=="function"&&(s=s(t.pending!==xe?t.pending:t.value)),Mt(t,s));return[xn.bind(t),r]}function lt(n,e,t){const r=mt(n,e,!0,me);Ce(r)}function re(n,e,t){const r=mt(n,e,!1,me);Ce(r)}function Tn(n,e,t){En=kr;const r=mt(n,e,!1,me);r.user=!0,Q?Q.push(r):Ce(r)}function N(n,e,t){t=t?Object.assign({},at,t):at;const r=mt(n,e,!0,0);return r.pending=xe,r.observers=null,r.observerSlots=null,r.comparator=t.equals||void 0,Ce(r),xn.bind(r)}function br(n,e,t){arguments.length===2?typeof e=="object"&&(t=e,e=n,n=!0):arguments.length===1&&(e=n,n=!0),t||(t={});const r=new Set,[s,i]=q(t.initialValue),[o,a]=q(void 0,{equals:!1}),[l,u]=q(!1),[c,h]=q();let p,d=null,g=null,v=null,_=!1,U="initialValue"in t,P=typeof n=="function"&&N(n);O.context&&(v=`${O.context.id}${O.context.count++}`,O.load&&(g=O.load(v)));function j(w,y,E,V){return d===w&&(d=null,U=!0,g&&(w===g||y===g)&&t.onHydrated&&queueMicrotask(()=>t.onHydrated(V,{value:y})),g=null,h(p=E),L(y)),y}function L(w){fe(()=>{i(()=>w),u(!1);for(const y of r.keys())y.decrement();r.clear()})}function M(){const w=$r,y=s();if(p)throw p;return x&&!x.user&&w&&lt(()=>{o(),d&&(w.resolved||r.has(w)||(w.increment(),r.add(w)))}),y}function te(w){if(w&&_)return;_=!1,h(p=void 0);const y=P?P():n;if(y==null||y===!1){j(d,W(s));return}const E=g||W(()=>e(y,{value:s(),refetching:w}));return typeof E!="object"||!("then"in E)?(j(d,E),E):(d=E,_=!0,queueMicrotask(()=>_=!1),fe(()=>{u(!0),a()}),E.then(V=>j(E,V,void 0,y),V=>j(E,V,V)))}return Object.defineProperties(M,{loading:{get(){return l()}},error:{get(){return c()}},latest:{get(){if(!U)return M();if(p)throw p;return s()}}}),P?lt(()=>te(!1)):te(!1),[M,{refetch:te,mutate:i}]}function fe(n){if(Fe)return n();let e;const t=Fe=[];try{e=n()}finally{Fe=null}return gt(()=>{for(let r=0;r<t.length;r+=1){const s=t[r];if(s.pending!==xe){const i=s.pending;s.pending=xe,Mt(s,i)}}},!1),e}function W(n){let e,t=x;return x=null,e=n(),x=t,e}function On(n,e,t){const r=Array.isArray(n);let s,i=t&&t.defer;return o=>{let a;if(r){a=Array(n.length);for(let u=0;u<n.length;u++)a[u]=n[u]()}else a=n();if(i){i=!1;return}const l=W(()=>e(a,s,o));return s=a,l}}function qa(n){Tn(()=>W(n))}function oe(n){return R==
${l}
}`));else if(Qn(o))a!=null&&r.push(`${o}: ${a};`);else if(Xs(o)){const l=[];for(const u in a)l.push(...dt(a[u],[/^\d+$/.test(u)?`${u}%`:u],K(S({},t),{sublevel:!0})));s.push(`${o} {
${l.join(`
`)}
}`)}else if(Vs(o))s.push(...pn(o,a,e,t));else if(t.extraProperties&&o in t.extraProperties){const l=t.extraProperties[o](a);for(const u in l){const c=l[u],h=t.onPropertyValue?t.onPropertyValue(u,c):c;h!=null&&r.push(`${dn(u)}: ${h};`)}}else{o=dn(o);const l=t.onPropertyValue?t.onPropertyValue(o,a):a;l!=null&&r.push(`${o}: ${l};`)}}const i=o=>{const a=" ".repeat(o);return`${a}${r.join(`
${a}`)}`};if(e.length){const o=t.sublevel?" ":"",a=o+e.join(`,
${o}`);return[...r.length?[`${a} {
${i(t.sublevel?2:1)}
${o}}`]:[],...s]}else return[...r.length?[i(0)]:[],...s]}function Ys(){return Math.random().toString(36).substring(2,15).slice(0,8)}function Qs(n,e){return typeof n=="function"&&(n=n(...e||[])),n}function Zs(n){return n?Array.isArray(n)?n:[n]:[]}function ei(n,e){const t=Ys().slice(0,6);return{id:t,name:n,className:`${n}-${t}`,rules:e.replaceAll("$id",`${t}`)}}function ti(n){var i;const e=`${n.name}-$id`,r=Zs(Qs(n.props)).map(o=>typeof o=="string"?`.${e} {
${o}
}`:dt(o,[`.${e}`],{extraProperties:n.extraProperties}).join(`
`)).join(`
`),s=((i=n.cache)==null?void 0:i.get(r))||ei(n.name,r);return n.cache&&n.cache.set(r,s),s}function Zn(n,e){"styleSheet"in n?n.styleSheet.cssText=e:(n.innerText="",n.appendChild(document.createTextNode(e)))}function ni(n,e){for(const t in e){const r=e[t];r!==void 0&&(r===null?n.removeAttribute(t):n.setAttribute(t,r))}}function ri(n,e){const t=document.createElement("style");return t.type="text/css",e&&ni(t,e),Zn(t,n),t}function Pt(n){let e=Number(n.getAttribute("data-uses"));e++,n.setAttribute("data-uses",e.toString())}function si(n,e){Array.isArray(n)&&(n=n.join(`
`));const t=e==null?void 0:e.id,r=document.head||document.getElementsByTagName("head")[0],s=t&&document.getElementById(t);if(s&&s instanceof HTMLStyleElement)return Zn(s,n),Pt(s),s;{s&&s.remove();const i=ri(n,e);return Pt(i),r.appendChild(i),i}}function ii(n){return document.getElementById(n)}function mn(n){let e=Number(n.getAttribute("data-uses"));e--,e<=0?n.remove():n.setAttribute("data-uses",e.toString())}const oi=new Map;function ai(n){return n?(Array.isArray(n)?n:[n]).flat(1/0).filter(e=>!!e):[]}function ci(n){const e=je(Hs),[t,r]=q("");let s;return re(i=>{var l;const o=n();let a;return o&&(a=ti({name:"css",props:Js(ai(o)),cache:oi}),s=ii(a.id),s?Pt(s):s=si(a.rules,{id:a.id,once:(l=e.cache)==null?void 0:l.nonce})),i!=null&&i.styleElement&&mn(i.styleElement),typeof(a==null?void 0:a.className)=="string"?r(a.className):r(""),{className:a==null?void 0:a.className,styleElement:s}},void 0),oe(()=>{s&&mn(s)}),t}const li=Yn()({name:"MuiGlobalStyles",selfPropNames:["styles"]}),ui=li.component(function({props:e}){return ci(()=>({"@global":e.styles||{}})),[]}),hi={};function fi(n){return S({},We({},hi,n!=null?n:{}))}function di(n,e,t={}){return S({toolbar:{minHeight:56,[`${n.up("xs")} and (orientation: landscape)`]:{minHeight:48},[n.up("sm")]:{minHeight:64}}},t)}const de={black:"#000",white:"#fff"},Ee={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},$e={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Te={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Oe={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ke={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},ze={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},pi={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Wt(n,e=0,t=1){return Math.min(Math.max(e,n),t)}function mi(n){n=n.substr(1);const e=new RegExp(`.{1,${n.length>=6?2:1}}`,"g");let t=n.match(e);return t&&t[0].length===1&&(t=t.map(r=>r+r)),t?`rgb${t.length===4?"a":""}(${t.map((r,s)=>s<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function pe(n){if(typeof n!="string")return n;if(n.charAt(0)==="#")return pe(mi(n));const e=n.indexOf("("),t=n.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(t)===-1)throw new Error("MUI: Unsupported `%s` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). "+n);const r=n.substring(e+1,n.length-1);let s,i;if(t==="color"){if(s=r.split(" "),i=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].substr(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error("MUI: unsupported `%s` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020. "+i)}else s=r.split(",");return{type:t,values:s.map(o=>parseFloat(o)),colorSpace:i}}function bt(n){const{type:e,colorSpace:t}=n,{values:r}=n;let s;return e.indexOf("rgb")!==-1?s=r.map((i,o)=>o<3?parseInt(i.toString(),10):i).join(","):e.indexOf("hsl")!==-1&&(s=r.map((i,o)=>o===1||o===2?`${i}%`:i).join(",")),e.indexOf("color")!==-1?s=`${t} ${r.
`+c+`
See https://stackoverflow.com/q/20007992 for more info`),-1}}else{var d=this._tags[h];this._tags.push(this.makeStyleTag(this._name,c,d))}return this._rulesCount++},l.replaceRule=function(c,h){if(this._optimizeForSpeed||!this._isBrowser){var p=this._isBrowser?this.getSheet():this._serverSheet;if(h.trim()||(h=this._deletedRulePlaceholder),!p.cssRules[c])return c;p.deleteRule(c);try{p.insertRule(h,c)}catch{r||console.warn(`StyleSheet: illegal rule:
`+h+`
See https://stackoverflow.com/q/20007992 for more info`),p.insertRule(this._deletedRulePlaceholder,c)}}else{var d=this._tags[c];o(d,"old rule at index `"+c+"` not found"),d.textContent=h}return c},l.deleteRule=function(c){if(!this._isBrowser){this._serverSheet.deleteRule(c);return}if(this._optimizeForSpeed)this.replaceRule(c,"");else{var h=this._tags[c];o(h,"rule at index `"+c+"` not found"),h.parentNode.removeChild(h),this._tags[c]=null}},l.flush=function(){this._injected=!1,this._rulesCount=0,this._isBrowser?(this._tags.forEach(function(c){return c&&c.parentNode.removeChild(c)}),this._tags=[]):this._serverSheet.cssRules=[]},l.cssRules=function(){var c=this;return this._isBrowser?this._tags.reduce(function(h,p){return p?h=h.concat(Array.prototype.map.call(c.getSheetForTag(p).cssRules,function(d){return d.cssText===c._deletedRulePlaceholder?null:d})):h.push(null),h},[]):this._serverSheet.cssRules},l.makeStyleTag=function(c,h,p){h&&o(s(h),"makeStyleTag acceps only strings as second parameter");var d=document.createElement("style");this._nonce&&d.setAttribute("nonce",this._nonce),d.type="text/css",d.setAttribute("data-"+c,""),h&&d.appendChild(document.createTextNode(h));var g=document.head||document.getElementsByTagName("head")[0];return p?g.insertBefore(d,p):g.appendChild(d),d},t(a,[{key:"length",get:function(){return this._rulesCount}}]),a}();n.default=i;function o(a,l){if(!a)throw new Error("StyleSheet: "+l+".")}})(fr);(function(n){n.__esModule=!0,n.default=void 0;var e=r(Ma),t=r(fr);function r(a){return a&&a.__esModule?a:{default:a}}var s=function(l){return l.replace(/\/style/gi,"\\/style")},i=function(){function a(u){var c=u===void 0?{}:u,h=c.styleSheet,p=h===void 0?null:h,d=c.optimizeForSpeed,g=d===void 0?!1:d,v=c.isBrowser,_=v===void 0?typeof window!="undefined":v;this._sheet=p||new t.default({name:"styled-jsx",optimizeForSpeed:g}),this._sheet.inject(),p&&typeof g=="boolean"&&(this._sheet.setOptimizeForSpeed(g),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._isBrowser=_,this._fromServer=void 0,this._indices={},this._instancesCounts={},this.computeId=this.createComputeId(),this.computeSelector=this.createComputeSelector()}var l=a.prototype;return l.add=function(c){var h=this;this._optimizeForSpeed===void 0&&(this._optimizeForSpeed=Array.isArray(c.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._isBrowser&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(_,U){return _[U]=0,_},{}));var p=this.getIdAndRules(c),d=p.styleId,g=p.rules;if(d in this._instancesCounts){this._instancesCounts[d]+=1;return}var v=g.map(function(_){return h._sheet.insertRule(_)}).filter(function(_){return _!==-1});this._indices[d]=v,this._instancesCounts[d]=1},l.remove=function(c){var h=this,p=this.getIdAndRules(c),d=p.styleId;if(o(d in this._instancesCounts,"styleId: `"+d+"` not found"),this._instancesCounts[d]-=1,this._instancesCounts[d]<1){var g=this._fromServer&&this._fromServer[d];g?(g.parentNode.removeChild(g),delete this._fromServer[d]):(this._indices[d].forEach(function(v){return h._sheet.deleteRule(v)}),delete this._indices[d]),delete this._instancesCounts[d]}},l.update=function(c,h){this.add(h),this.remove(c)},l.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={},this.computeId=this.createComputeId(),this.computeSelector=this.createComputeSelector()},l.cssRules=function(){var c=this,h=this._fromServer?Object.keys(this._fromServer).map(function(d){return[d,c._fromServer[d]]}):[],p=this._sheet.cssRules();return h.concat(Object.keys(this._indices).map(function(d){return[d,c._indices[d].map(function(g){return p[g].cssText}).join(c._optimizeForSpeed?"":`
`)]}).filter(function(d){return Boolean(d[1])}))},l.createComputeId=function(){var c={};return function(h,p){if(!p)return"jsx-"+h;var d=String(p),g=h+d;return c[g]||(c[g]="jsx-"+(0,e.default)(h+"-"+d)),c[g]}},l.createComputeSelector=function(c){c===void 0&&(c=/__jsx-style-dynamic-selector/g);var h={};return function(p,d){this._isBrowser||(d=s(d));var g=p+d;return h[g]||(h[g]=d.replace(c,p)),h[g]}},l.getIdAndRules=function(c){var h=this,p=c.children,d=c.dynamic,g=c.id;if(d){var v=this.computeId(g,d);return{styleId:v,rules:Array.isArray(p)?p.map(function(_){return h.computeSelector(v,_)}):[this.computeSelector(v,p)]}}return{styleId:this.computeId(g),rules:Array.isArray(p)?p:[p]}},l.selectFromServer=function(){var c=Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]'));return c.reduce(function(h,p){var d=p.id.slice(2);return h[d]=p,h},{})},a}();n.default=i;function o(a,l){if(!a)throw new Error("StyleSheetRegistry: "+l+".")}})(hr);var za=sr(hr);const ot=new za;function Ga(n){Tn(e=>{e&&ot.remove(e);const t=S({},n);return ot.add(t),t}),oe(()=>ot.remove(S({},n)))}Ga.dynamic=n=>n.map(e=>{const t=e[0],r=e[1];return ot.computeId(t,r)}).join(" ");Mr(()=>$(Ki,{client:Fa,get children(){return $(Os,{get children(){return $(so,{})}})}}),document.getElementById("app"));export{nc as A,je as B,Ve as C,ec as D,rc as E,nr as F,On as G,br as H,Wa as I,Ga as J,Ka as K,lt as L,Xa as M,xs as N,fe as O,ui as P,qt as Q,Va as R,Gt as S,W as T,Za as U,tc as V,wo as W,zr as X,N as a,An as b,Yn as c,$ as d,Ya as e,Ws as f,Xi as g,Ks as h,xt as i,Xs as j,Vs as k,ci as l,jr as m,Jn as n,Zs as o,Gi as p,q,Tn as r,Nn as s,Qa as t,vs as u,oe as v,re as w,Gs as x,Rr as y,qa as z};
//# sourceMappingURL=index.13b310ab.js.map