1
2
|
(self.webpackChunkapp=self.webpackChunkapp||[]).push([[32],{87360:function(e,r){var n,t;void 0===(t="function"==typeof(n=function(){var e="undefined"==typeof window,r="function"==typeof Map?Map:function(){var e=Object.create(null);this.get=function(r){return e[r]},this.set=function(r,n){return e[r]=n,this},this.clear=function(){e=Object.create(null)}},n=new r,t=new r,o=[];o.total=0;var a=[],l=[];function i(){n.clear(),t.clear(),a=[],l=[]}function u(e){for(var r=-9007199254740991,n=e.length-1;n>=0;--n){var t=e[n];if(null!==t){var o=t.score;o>r&&(r=o)}}return-9007199254740991===r?null:r}function c(e,r){var n=e[r];if(void 0!==n)return n;var t=r;Array.isArray(r)||(t=r.split("."));for(var o=t.length,a=-1;e&&++a<o;)e=e[t[a]];return e}function f(e){return"object"==typeof e}var s=function(){var e=[],r=0,n={};function t(){for(var n=0,t=e[n],o=1;o<r;){var a=o+1;n=o,a<r&&e[a].score<e[o].score&&(n=a),e[n-1>>1]=e[n],o=1+(n<<1)}for(var l=n-1>>1;n>0&&t.score<e[l].score;l=(n=l)-1>>1)e[n]=e[l];e[n]=t}return n.add=function(n){var t=r;e[r++]=n;for(var o=t-1>>1;t>0&&n.score<e[o].score;o=(t=o)-1>>1)e[t]=e[o];e[t]=n},n.poll=function(){if(0!==r){var n=e[0];return e[0]=e[--r],t(),n}},n.peek=function(n){if(0!==r)return e[0]},n.replaceTop=function(r){e[0]=r,t()},n},p=s();return function r(d){var v={single:function(e,r,n){return"farzher"==e?{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6]}:e?(f(e)||(e=v.getPreparedSearch(e)),r?(f(r)||(r=v.getPrepared(r)),((n&&void 0!==n.allowTypo?n.allowTypo:!d||void 0===d.allowTypo||d.allowTypo)?v.algorithm:v.algorithmNoTypo)(e,r,e[0])):null):null},go:function(e,r,n){if("farzher"==e)return[{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:r?r[0]:null}];if(!e)return o;var t=(e=v.prepareSearch(e))[0],a=n&&n.threshold||d&&d.threshold||-9007199254740991,l=n&&n.limit||d&&d.limit||9007199254740991,i=(n&&void 0!==n.allowTypo?n.allowTypo:!d||void 0===d.allowTypo||d.allowTypo)?v.algorithm:v.algorithmNoTypo,s=0,h=0,g=r.length;if(n&&n.keys)for(var x=n.scoreFn||u,m=n.keys,w=m.length,b=g-1;b>=0;--b){for(var _=r[b],y=new Array(w),k=w-1;k>=0;--k)(E=c(_,T=m[k]))?(f(E)||(E=v.getPrepared(E)),y[k]=i(e,E,t)):y[k]=null;y.obj=_;var C=x(y);null!==C&&(C<a||(y.score=C,s<l?(p.add(y),++s):(++h,C>p.peek().score&&p.replaceTop(y))))}else if(n&&n.key){var T=n.key;for(b=g-1;b>=0;--b)(E=c(_=r[b],T))&&(f(E)||(E=v.getPrepared(E)),null!==(I=i(e,E,t))&&(I.score<a||(I={target:I.target,_targetLowerCodes:null,_nextBeginningIndexes:null,score:I.score,indexes:I.indexes,obj:_},s<l?(p.add(I),++s):(++h,I.score>p.peek().score&&p.replaceTop(I)))))}else for(b=g-1;b>=0;--b){var E,I;(E=r[b])&&(f(E)||(E=v.getPrepared(E)),null!==(I=i(e,E,t))&&(I.score<a||(s<l?(p.add(I),++s):(++h,I.score>p.peek().score&&p.replaceTop(I)))))}if(0===s)return o;var N=new Array(s);for(b=s-1;b>=0;--b)N[b]=p.poll();return N.total=s+h,N},goAsync:function(r,n,t){var a=!1,l=new Promise((function(l,i){if("farzher"==r)return l([{target:"farzher was here (^-^*)/",score:0,indexes:[0,1,2,3,4,5,6],obj:n?n[0]:null}]);if(!r)return l(o);var p=(r=v.prepareSearch(r))[0],h=s(),g=n.length-1,x=t&&t.threshold||d&&d.threshold||-9007199254740991,m=t&&t.limit||d&&d.limit||9007199254740991,w=(t&&void 0!==t.allowTypo?t.allowTypo:!d||void 0===d.allowTypo||d.allowTypo)?v.algorithm:v.algorithmNoTypo,b=0,_=0;function y(){if(a)return i("canceled");var s=Date.now();if(t&&t.keys)for(var d=t.scoreFn||u,k=t.keys,C=k.length;g>=0;--g){if(g%1e3==0&&Date.now()-s>=10)return void(e?setImmediate(y):setTimeout(y));for(var T=n[g],E=new Array(C),I=C-1;I>=0;--I)(j=c(T,B=k[I]))?(f(j)||(j=v.getPrepared(j)),E[I]=w(r,j,p)):E[I]=null;E.obj=T;var N=d(E);null!==N&&(N<x||(E.score=N,b<m?(h.add(E),++b):(++_,N>h.peek().score&&h.replaceTop(E))))}else if(t&&t.key)for(var B=t.key;g>=0;--g){if(g%1e3==0&&Date.now()-s>=10)return void(e?setImmediate(y):setTimeout(y));(j=c(T=n[g],B))&&(f(j)||(j=v.getPrepared(j)),null!==(M=w(r,j,p))&&(M.score<x||(M={target:M.target,_targetLowerCodes:null,_nextBeginningIndexes:null,score:M.score,indexes:M.indexes,obj:T},b<m?(h.add(M),++b):(++_,M.score>h.peek().score&&h.replaceTop(M)))))}else for(;g>=0;--g){if(g%1e3==0&&Date.now()-s>=10)return void(e?setImmediate(y):setTimeout(y));var j,M;(j=n[g])&&(f(j)||(j=v.getPrepared(j)),null!==(M=w(r,j,p))&&(M.score<x||(b<m?(h.add(M),++b):(++_,M.score>h.peek().score&&h.replaceTop(M)))))}if(0===b)return l(o);for(var L=new Array(b),z=b-1;z>=0;--z)L[z]=h.poll();L.total=b+_,l(L)}e?setImmediate(y):y()}));return l.cancel=function(){a=!0},l},highlight:function(e,r,n){if("function"==typeof r)return v.highlightCallback(e,r);if(null===e)return null;void 0===r&&(r="<b>"),void 0===n&&(n="</b>");for(var t="",o=0,a=!1,l=e.target,i=l.length,u=e.indexes,c=0;c<i;++c){var f=l[c];if(u[o]===c){if(a||(a=!0,t+=r),++o===u.length){t+=f+n+l.substr(c+1);break}}else a&&(a=!1,t+=n);t+=f}return t},highlightCallback:function(e,r){if(null===e)return null;for(var n=e.target,t=n.length,o=e.indexes,a="",l=0,i=0,u=!1,c=(e=[],0);c<t;++c){var f=n[c];if(o[i]===c){if(++i,u||(u=!0,e.push(a),a=""),i===o.length){a+=f,e.push(r(a,l++)),a="",e.push(n.substr(c+1));break}}else u&&(u=!1,e.push(r(a,l++)),a="");a+=f}return e},prepare:function(e){return e?{target:e,_targetLowerCodes:v.prepareLowerCodes(e),_nextBeginningIndexes:null,score:null,indexes:null,obj:null}:{target:"",_targetLowerCodes:[0],_nextBeginningIndexes:null,score:null,indexes:null,obj:null}},prepareSlow:function(e){return e?{target:e,_targetLowerCodes:v.prepareLowerCodes(e),_nextBeginningIndexes:v.prepareNextBeginningIndexes(e),score:null,indexes:null,obj:null}:{target:"",_targetLowerCodes:[0],_nextBeginningIndexes:null,score:null,indexes:null,obj:null}},prepareSearch:function(e){return e||(e=""),v.prepareLowerCodes(e)},getPrepared:function(e){if(e.length>999)return v.prepare(e);var r=n.get(e);return void 0!==r||(r=v.prepare(e),n.set(e,r)),r},getPreparedSearch:function(e){if(e.length>999)return v.prepareSearch(e);var r=t.get(e);return void 0!==r||(r=v.prepareSearch(e),t.set(e,r)),r},algorithm:function(e,r,n){for(var t=r._targetLowerCodes,o=e.length,i=t.length,u=0,c=0,f=0,s=0;;){if(n===t[c]){if(a[s++]=c,++u===o)break;n=e[0===f?u:f===u?u+1:f===u-1?u-1:u]}if(++c>=i)for(;;){if(u<=1)return null;if(0===f){if(n===e[--u])continue;f=u}else{if(1===f)return null;if((n=e[1+(u=--f)])===e[u])continue}c=a[(s=u)-1]+1;break}}u=0;var p=0,d=!1,h=0,g=r._nextBeginningIndexes;null===g&&(g=r._nextBeginningIndexes=v.prepareNextBeginningIndexes(r.target));var x=c=0===a[0]?0:g[a[0]-1];if(c!==i)for(;;)if(c>=i){if(u<=0){if(++p>o-2)break;if(e[p]===e[p+1])continue;c=x;continue}--u,c=g[l[--h]]}else if(e[0===p?u:p===u?u+1:p===u-1?u-1:u]===t[c]){if(l[h++]=c,++u===o){d=!0;break}++c}else c=g[c];if(d)var m=l,w=h;else m=a,w=s;for(var b=0,_=-1,y=0;y<o;++y)_!==(c=m[y])-1&&(b-=c),_=c;for(d?0!==p&&(b+=-20):(b*=1e3,0!==f&&(b+=-20)),b-=i-o,r.score=b,r.indexes=new Array(w),y=w-1;y>=0;--y)r.indexes[y]=m[y];return r},algorithmNoTypo:function(e,r,n){for(var t=r._targetLowerCodes,o=e.length,i=t.length,u=0,c=0,f=0;;){if(n===t[c]){if(a[f++]=c,++u===o)break;n=e[u]}if(++c>=i)return null}u=0;var s=!1,p=0,d=r._nextBeginningIndexes;if(null===d&&(d=r._nextBeginningIndexes=v.prepareNextBeginningIndexes(r.target)),(c=0===a[0]?0:d[a[0]-1])!==i)for(;;)if(c>=i){if(u<=0)break;--u,c=d[l[--p]]}else if(e[u]===t[c]){if(l[p++]=c,++u===o){s=!0;break}++c}else c=d[c];if(s)var h=l,g=p;else h=a,g=f;for(var x=0,m=-1,w=0;w<o;++w)m!==(c=h[w])-1&&(x-=c),m=c;for(s||(x*=1e3),x-=i-o,r.score=x,r.indexes=new Array(g),w=g-1;w>=0;--w)r.indexes[w]=h[w];return r},prepareLowerCodes:function(e){for(var r=e.length,n=[],t=e.toLowerCase(),o=0;o<r;++o)n[o]=t.charCodeAt(o);return n},prepareBeginningIndexes:function(e){for(var r=e.length,n=[],t=0,o=!1,a=!1,l=0;l<r;++l){var i=e.charCodeAt(l),u=i>=65&&i<=90,c=u||i>=97&&i<=122||i>=48&&i<=57,f=u&&!o||!a||!c;o=u,a=c,f&&(n[t++]=l)}return n},prepareNextBeginningIndexes:function(e){for(var r=e.length,n=v.prepareBeginningIndexes(e),t=[],o=n[0],a=0,l=0;l<r;++l)o>l?t[l]=o:(o=n[++a],t[l]=void 0===o?r:o);return t},cleanup:i,new:r};return v}()})?n.apply(r,[]):n)||(e.exports=t)},47443:function(e,r,n){var t=n(42118);e.exports=function(e,r){return!(null==e||!e.length)&&t(e,r,0)>-1}},1196:function(e){e.exports=function(e,r,n){for(var t=-1,o=null==e?0:e.length;++t<o;)if(n(r,e[t]))return!0;return!1}},20731:function(e,r,n){var t=n(88668),o=n(47443),a=n(1196),l=n(29932),i=n(7518),u=n(74757);e.exports=function(e,r,n,c){var f=-1,s=o,p=!0,d=e.length,v=[],h=r.length;if(!d)return v;n&&(r=l(r,i(n))),c?(s=a,p=!1):r.length>=200&&(s=u,p=!1,r=new t(r));e:for(;++f<d;){var g=e[f],x=null==n?g:n(g);if(g=c||0!==g?g:0,p&&x==x){for(var m=h;m--;)if(r[m]===x)continue e;v.push(g)}else s(r,x,c)||v.push(g)}return v}},42118:function(e,r,n){var t=n(41848),o=n(62722),a=n(42351);e.exports=function(e,r,n){return r==r?a(e,r,n):t(e,o,n)}},62722:function(e){e.exports=function(e){return e!=e}},69199:function(e,r,n){var t=n(89881),o=n(98612);e.exports=function(e,r){var n=-1,a=o(e)?Array(e.length):[];return t(e,(function(e,t,o){a[++n]=r(e,t,o)})),a}},5976:function(e,r,n){var t=n(6557),o=n(45357),a=n(30061);e.exports=function(e,r){return a(o(e,r,t),e+"")}},42351:function(e){e.exports=function(e,r,n){for(var t=n-1,o=e.length;++t<o;)if(e[t]===r)return t;return-1}},29246:function(e,r,n){var t=n(98612),o=n(37005);e.exports=function(e){return o(e)&&t(e)}},35161:function(e,r,n){var t=n(29932),o=n(67206),a=n(69199),l=n(1469);e.exports=function(e,r){return(l(e)?t:a)(e,o(r,3))}},82569:function(e,r,n){var t=n(20731),o=n(5976),a=n(29246),l=o((function(e,r){return a(e)?t(e,r):[]}));e.exports=l},55651:function(e,r,n){"use strict";n.d(r,{Jz:function(){return I}});var t=n(67294);function o(){return(o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e}).apply(this,arguments)}function a(e,r){if(null==e)return{};var n,t,o={},a=Object.keys(e);for(t=0;t<a.length;t++)r.indexOf(n=a[t])>=0||(o[n]=e[n]);return o}function l(e){var r=(0,t.useRef)(e),n=(0,t.useRef)((function(e){r.current&&r.current(e)}));return r.current=e,n.current}var i=function(e,r,n){return void 0===r&&(r=0),void 0===n&&(n=1),e>n?n:e<r?r:e},u=function(e){return"touches"in e},c=function(e){return e&&e.ownerDocument.defaultView||self},f=function(e,r,n){var t=e.getBoundingClientRect(),o=u(r)?function(e,r){for(var n=0;n<e.length;n++)if(e[n].identifier===r)return e[n];return e[0]}(r.touches,n):r;return{left:i((o.pageX-(t.left+c(e).pageXOffset))/t.width),top:i((o.pageY-(t.top+c(e).pageYOffset))/t.height)}},s=function(e){!u(e)&&e.preventDefault()},p=t.memo((function(e){var r=e.onMove,n=e.onKey,i=a(e,["onMove","onKey"]),p=(0,t.useRef)(null),d=l(r),v=l(n),h=(0,t.useRef)(null),g=(0,t.useRef)(!1),x=(0,t.useMemo)((function(){var e=function(e){s(e),(u(e)?e.touches.length>0:e.buttons>0)&&p.current?d(f(p.current,e,h.current)):n(!1)},r=function(){return n(!1)};function n(n){var t=g.current,o=c(p.current),a=n?o.addEventListener:o.removeEventListener;a(t?"touchmove":"mousemove",e),a(t?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,t=p.current;if(t&&(s(r),!function(e,r){return r&&!u(e)}(r,g.current)&&t)){if(u(r)){g.current=!0;var o=r.changedTouches||[];o.length&&(h.current=o[0].identifier)}t.focus(),d(f(t,r,h.current)),n(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),v({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},n]}),[v,d]),m=x[0],w=x[1],b=x[2];return(0,t.useEffect)((function(){return b}),[b]),t.createElement("div",o({},i,{onTouchStart:m,onMouseDown:m,className:"react-colorful__interactive",ref:p,onKeyDown:w,tabIndex:0,role:"slider"}))})),d=function(e){return e.filter(Boolean).join(" ")},v=function(e){var r=e.color,n=e.left,o=e.top,a=void 0===o?.5:o,l=d(["react-colorful__pointer",e.className]);return t.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},t.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:r}}))},h=function(e,r,n){return void 0===r&&(r=0),void 0===n&&(n=Math.pow(10,r)),Math.round(n*e)/n},g=(Math.PI,function(e){var r=e.s,n=e.l;return{h:e.h,s:(r*=(n<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:e.a}}),x=function(e){var r=e.s,n=e.v,t=e.a,o=(200-r)*n/100;return{h:h(e.h),s:h(o>0&&o<200?r*n/100/(o<=100?o:200-o)*100:0),l:h(o/2),a:h(t,2)}},m=function(e){var r=x(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},w=t.memo((function(e){var r=e.hue,n=e.onChange,o=d(["react-colorful__hue",e.className]);return t.createElement("div",{className:o},t.createElement(p,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:i(r+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":h(r),"aria-valuemax":"360","aria-valuemin":"0"},t.createElement(v,{className:"react-colorful__hue-pointer",left:r/360,color:m({h:r,s:100,v:100,a:1})})))})),b=t.memo((function(e){var r=e.hsva,n=e.onChange,o={backgroundColor:m({h:r.h,s:100,v:100,a:1})};return t.createElement("div",{className:"react-colorful__saturation",style:o},t.createElement(p,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:i(r.s+100*e.left,0,100),v:i(r.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+h(r.s)+"%, Brightness "+h(r.v)+"%"},t.createElement(v,{className:"react-colorful__saturation-pointer",top:1-r.v/100,left:r.s/100,color:m(r)})))})),_=function(e,r){if(e===r)return!0;for(var n in e)if(e[n]!==r[n])return!1;return!0};function y(e,r,n){var o=l(n),a=(0,t.useState)((function(){return e.toHsva(r)})),i=a[0],u=a[1],c=(0,t.useRef)({color:r,hsva:i});(0,t.useEffect)((function(){if(!e.equal(r,c.current.color)){var n=e.toHsva(r);c.current={hsva:n,color:r},u(n)}}),[r,e]),(0,t.useEffect)((function(){var r;_(i,c.current.hsva)||e.equal(r=e.fromHsva(i),c.current.color)||(c.current={hsva:i,color:r},o(r))}),[i,e,o]);var f=(0,t.useCallback)((function(e){u((function(r){return Object.assign({},r,e)}))}),[]);return[i,f]}var k="undefined"!=typeof window?t.useLayoutEffect:t.useEffect,C=new Map,T=function(e){var r,l=e.className,i=e.colorModel,u=e.color,c=void 0===u?i.defaultColor:u,f=e.onChange,s=a(e,["className","colorModel","color","onChange"]),p=(0,t.useRef)(null);r=p,k((function(){var e=r.current?r.current.ownerDocument:document;if(void 0!==e&&!C.has(e)){var t=e.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',C.set(e,t);var o=n.nc;o&&t.setAttribute("nonce",o),e.head.appendChild(t)}}),[]);var v=y(i,c,f),h=v[0],g=v[1],x=d(["react-colorful",l]);return t.createElement("div",o({},s,{ref:p,className:x}),t.createElement(b,{hsva:h,onChange:g}),t.createElement(w,{hue:h.h,onChange:g,className:"react-colorful__last-control"}))},E={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return g({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=x(e)).h,s:r.s,l:r.l};var r},equal:_},I=function(e){return t.createElement(T,o({},e,{colorModel:E}))}}}]);
//# sourceMappingURL=32.bda2efffe8307a89cd5f.js.map
|