/*! For license information please see HatenaStar.js.LICENSE.txt */ "undefined"==typeof Ten&&(Ten={},Ten.NAME="Ten",Ten.VERSION=.44,Ten.Class=function(e,t){if(e&&e.initialize)var n=e.initialize;else n=e&&e.base?function(){return e.base[0].apply(this,arguments)}:function(){};if(n.prototype=t||{},n.prototype.constructor=n,Ten.Class.inherit(n,e),e&&e.base)for(var r=0;r=200&&e.status<300?this.dispatchEvent("complete",e):this.dispatchEvent("error",e))}}),Ten.Observer=new Ten.Class({initialize:function(e,t,n,r){var o=n;"string"==typeof r&&(o=n[r]),this.element=e,this.event=t,this.listener=function(e){return o.call(n,new Ten.Event(e||window.event))},this.start()}},{stop:function(){this.element.removeEventListener?this.element.removeEventListener(this.event,this.listener,!1):this.element.detachEvent&&this.element.detachEvent(this.event,this.listener)},start:function(){this.element.addEventListener?(0==this.event.indexOf("on")&&(this.event=this.event.substr(2)),this.element.addEventListener(this.event,this.listener,!1)):this.element.attachEvent&&this.element.attachEvent(this.event,this.listener)}}),Ten.Event=new Ten.Class({initialize:function(e){this.event=e,e&&(this.target=e.target||e.srcElement,this.shiftKey=e.shiftKey,this.ctrlKey=e.ctrlKey,this.altKey=e.altKey)},KeyMap:{8:"backspace",9:"tab",13:"enter",19:"pause",27:"escape",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",44:"printscreen",45:"insert",46:"delete",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scrolllock"}},{mousePosition:function(){return this.event.clientX?Ten.Geometry.getMousePosition(this.event):null},isKey:function(e){var t=this.event.keyCode;if(!t)return!1;var n=Ten.Event.KeyMap[t];return!!n&&n==e},targetIsFormElements:function(){if(!this.target)return!1;var e=(this.target.tagName||"").toUpperCase();return"INPUT"==e||"SELECT"==e||"OPTION"==e||"BUTTON"==e||"TEXTAREA"==e},stop:function(){var e=this.event;e.stopPropagation?(e.stopPropagation(),e.preventDefault()):(e.cancelBubble=!0,e.returnValue=!1)},preventDefault:function(){var e=this.event;e.preventDefault&&e.preventDefault(),e.returnValue=!1,this._isDefaultPrevented=!0},isDefaultPrevented:function(){return this._isDefaultPrevented||this.event.defaultPrevented||!1===this.event.returnValue}}),Ten.EventDispatcher=new Ten.Class({initialize:function(){this._eventListeners={}},implementEventDispatcher:function(e){Ten.Class.inherit(e,Ten.EventDispatcher.prototype),e._eventListeners={}}},{hasEventListener:function(e){return this._eventListeners[e]instanceof Array&&this._eventListeners[e].length>0},addEventListener:function(e,t){this.hasEventListener(e)||(this._eventListeners[e]=[]);for(var n=this._eventListeners[e],r=0;r\/]+)([^>]+?)?(\/)?>/)))throw"Parse Error: "+e;var a=n[1],u=n[2],c=!!n[3];-1==a.indexOf("/")?(child=document.createElement(a),u&&u.replace(/([a-z]+)=(?:'([^']+)'|"([^"]+)")/gi,(function(e,t,n,o){var i=l(n||o);"class"==t&&(r&&(r[i]=child),child.className=i),child.setAttribute(t,i)})),o.appendChild(r?child:r=child),c||(i.push(o),o=child)):o=i.pop()}else(n=e.match(/^([^<]+)/))&&o.appendChild(document.createTextNode(l(n[0])));e=e.substring(n[0].length)}function l(e){return e.replace(/&(#(x)?)?([^;]+);/g,(function(e,t,n,r){return t?String.fromCharCode(parseInt(r,n?16:10)):{lt:"<",gt:"<",amp:"&"}[r]})).replace(/#\{([^}]+)\}/g,(function(e,n){return void 0===t.data[n]?e:t.data[n]}))}return r},getElementsByTagAndClassName:function(e,t,n){if(void 0===n&&(n=document),!e)return Ten.DOM.getElementsByClassName(t,n);var r=n.getElementsByTagName(e);if(t){for(var o=[],i=0;i=0)new Ten.Observer(window,"DOMContentLoaded",e,"finishLoad");else if((t.indexOf("MSIE")>=0||t.toLowerCase().indexOf("webkit")>=0)&&window==top){var n=0;!function(){if(n++>1e4)return null;try{"loaded"!=document.readyState&&"complete"!=document.readyState&&document.documentElement.doScroll("left")}catch(e){return setTimeout(arguments.callee,13)}e.finishLoad()}()}}},finishLoad:function(){var e=Ten.DOM;e.loaded||(e.dispatchEvent("DOMContentLoaded"),e.dispatchEvent("onload"),e.loaded=!0,e.observer.stop(),e.observer=null)},observer:null,loaded:!1}),Ten.EventDispatcher.implementEventDispatcher(Ten.DOM),Ten.DOM.addObserver(),Ten.Element=new Ten.Class({initialize:function(e,t){var n=document.createElement(e);for(var r in t)"style"==r?Ten.Style.applyStyle(n,t[r]):"value"==r&&"input"==e.toLowerCase()?n.setAttribute("value",t[r]):0==r.indexOf("on")?new Ten.Observer(n,r,t[r]):n[r]=t[r];for(var o=Array.prototype.slice.call(arguments,2),i=0;i=0;o--)if(">"!=t[o]){o>0&&">"==t[o-1]&&(r=t[o-1]);var i=r?{separator:r}:null;r=null,n=new Ten.SelectorNode(t[o],n,i)}this.childNode=n},getElementsBySelector:function(e,t){for(var n=e.split(/\s*,\s*/),r=[],o=0;o"==e&&(this[t]=function(e){for(var t=n(e),r=[],o=0;o=0;o--)if(">"!=t[o]){o>0&&">"==t[o-1]&&(r=t[o-1]);var i=r?{separator:r}:null;r=null,n=new Ten._SelectorNode(t[o],n,i)}this.childNode=n},getElementsBySelector:function(e,t){for(var n=e.split(/\s*,\s*/),r=[],o=0;o=0&&r.sort(Ten._Selector._sortByElementOrder),r},_sortByElementOrder:function(e,t){var n=Ten._Selector._getNodeDepth(e),r=Ten._Selector._getNodeDepth(t);if(n>r)for(var o=0;o=0&&u[o]==t[i]||o<0&&u[u.length-1]==t[i])&&n.push(t[i])}return n})}else if(e=t.match(/^nth-child\((\d+)n\+(\d+)\)$/)){var u=new Number(e[1]),c=new Number(e[2]);this[n]=function(e){for(var t=r(e),n=t[0].tagName,o=[],i=function(e,t){for(var n=0,r=e.length;n=0;t--){var n=document.styleSheets[t];try{var r=n.cssRules||n.rules}catch(e){continue}if(r)for(var o=r.length-1;o>=0;o--){var i=r[o];if(i.selectorText&&i.selectorText.toLowerCase()==e)return Ten.Style._cache[e]=i,i}}return Ten.Style._cache[e]=null,null},getGlobalStyle:function(e,t){var n=Ten.Style.getGlobalRule(e);return n&&n.style[t]?n.style[t]:null},getElementStyle:function(e,t){var n=e.style?e.style[t]:null;if(!n){var r=document.defaultView;if(r&&r.getComputedStyle){try{var o=r.getComputedStyle(e,null)}catch(e){return null}t=t.replace(/([A-Z])/g,"-$1").toLowerCase(),n=o?o.getPropertyValue(t):null}else e.currentStyle&&(n=e.currentStyle[t])}return n},scrapeURL:function(e){return e.match(/url\((.+)\)/)?e=(e=RegExp.$1).replace(/[\'\"<>]/g,""):null},_cache:{}}),Ten.Geometry=new Ten.Class({initialize:function(){if(!Ten.Geometry._initialized){var e=Ten.Geometry._functions,t=document.documentElement;window.innerWidth?(e.getXScroll=function(){return window.pageXOffset},e.getYScroll=function(){return window.pageYOffset}):t&&t.clientWidth?(e.getXScroll=function(){return t.scrollLeft},e.getYScroll=function(){return t.scrollTop}):document.body.clientWidth&&(e.getXScroll=function(){return document.body.scrollLeft},e.getYScroll=function(){return document.body.scrollTop}),e.getWindowHeight=function(e){return Ten.Geometry._getRoot(e).clientHeight},e.getWindowWidth=function(e){return Ten.Geometry._getRoot(e).clientWidth},e.getDocumentHeight=function(e){return Ten.Geometry._getRoot(e).scrollHeight},e.getDocumentWidth=function(e){return Ten.Geometry._getRoot(e).scrollWidth},Ten.Geometry._initialized=!0}},_getRoot:function(e){return e||(e=window),/BackCompat/i.test(e.document.compatMode)?document.body:document.documentElement},_initialized:!1,_functions:{},getScroll:function(){return Ten.Geometry._initialized||new Ten.Geometry,{x:Ten.Geometry._functions.getXScroll(),y:Ten.Geometry._functions.getYScroll()}},getMousePosition:function(e){if(!Ten.Browser.isChrome&&navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Version/")<0)return{x:e.clientX,y:e.clientY};var t=Ten.Geometry.getScroll();return{x:e.clientX+t.x,y:e.clientY+t.y}},getElementPosition:function(e){var t={x:0,y:0};if(document.documentElement.getBoundingClientRect){var n=e.getBoundingClientRect(),r=e.ownerDocument;t.x=n.left+Math.max(r.documentElement.scrollLeft,r.body.scrollLeft)-2,t.y=n.top+Math.max(r.documentElement.scrollTop,r.body.scrollTop)-2}else if(document.getBoxObjectFor)t.x=document.getBoxObjectFor(e).x,t.y=document.getBoxObjectFor(e).y;else do{t.x+=e.offsetLeft,t.y+=e.offsetTop}while(e=e.offsetParent);return t},getWindowSize:function(){return Ten.Geometry._initialized||new Ten.Geometry,{w:Ten.Geometry._functions.getWindowWidth(),h:Ten.Geometry._functions.getWindowHeight()}},getDocumentSize:function(e){return Ten.Geometry._initialized||new Ten.Geometry,e=e||window,{w:Ten.Geometry._functions.getDocumentWidth(e),h:Ten.Geometry._functions.getDocumentHeight(e)}}}),Ten.Position=new Ten.Class({initialize:function(e,t){this.x=e,this.y=t},add:function(e,t){return new Ten.Position(e.x+t.x,e.y+t.y)},subtract:function(e,t){return new Ten.Position(e.x-t.x,e.y-t.y)}}),Ten.Logger=new Ten.Class({initialize:function(e,t){this.level=e||"info",this.fallbackElement=t,this.logFunction=this.constructor.logFunction,this.logs=[]},LEVEL:{error:0,warn:1,info:2,debug:3},logFunction:function(e,t){if("undefined"==typeof console)try{window.opera?opera.postError(t.join(", ")):external.consoleLog(t.join(", "))}catch(n){this.fallbackElement&&this.fallbackElement.appendChild&&(this.fallbackElement.appendChild(document.createTextNode(e+": "+t.join(", "))),this.fallbackElement.appendChild(document.createElement("br")))}else"function"==typeof console[e]?navigator.userAgent.indexOf("Safari")>=0?console[e](t.join(", ")):console[e].apply(console,t):"function"==typeof console.log&&console.log(t.join(", "))}},{logs:null,log:function(e){var t=this.constructor.LEVEL;if(e in t&&!(t[e]>t[this.level])){for(var n=[],r=1;r1&&(t=Array.prototype.slice.call(arguments));var n=new e,r={},o=0;for(var i in t)t.hasOwnProperty(i)&&function(i,a){"function"==typeof i&&(i=e.next(i)),i.next((function(e){r[a]=e,--o<=0&&(t instanceof Array&&(r.length=t.length,r=Array.prototype.slice.call(r,0)),n.call(r))})).error((function(e){n.fail(e)})),o++}(t[i],i);return o||e.next((function(){n.call()})),n.canceller=function(){for(var e in t)t.hasOwnProperty(e)&&t[e].cancel()},n},e.earlier=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=new e,r={},o=0;for(var i in t)t.hasOwnProperty(i)&&function(e,i){e.next((function(e){r[i]=e,t instanceof Array&&(r.length=t.length,r=Array.prototype.slice.call(r,0)),n.canceller(),n.call(r)})).error((function(e){n.fail(e)})),o++}(t[i],i);return o||e.next((function(){n.call()})),n.canceller=function(){for(var e in t)t.hasOwnProperty(e)&&t[e].cancel()},n},e.loop=function(t,n){var r,o={begin:t.begin||0,end:"number"==typeof t.end?t.end:t-1,step:t.step||1,last:!1,prev:null},i=o.step;return e.next((function(){return o.begin<=o.end?e.call((function t(a){return a<=o.end?(a+i>o.end&&(o.last=!0,o.step=o.end-a+1),o.prev=r,(r=n.call(this,a,o))instanceof e?r.next((function(n){return r=n,e.call(t,a+i)})):e.call(t,a+i)):r}),o.begin):null}))},e.repeat=function(t,n){var r=0;return e.next((function(){var o=(new Date).getTime();e:{do{if(r>=t)break e;n(r++)}while((new Date).getTime()-o<20);return e.call(arguments.callee)}return null}))},e.register=function(e,t){this.prototype[e]=function(){var e=arguments;return this.next((function(){return t.apply(this,e)}))}},e.register("loop",e.loop),e.register("wait",e.wait),e.connect=function(t,n){var r,o,i;"string"==typeof arguments[1]?(o=(r=arguments[0])[arguments[1]],i=arguments[2]||{}):(o=arguments[0],r=(i=arguments[1]||{}).target);var a=i.args?Array.prototype.slice.call(i.args,0):[],u=isFinite(i.ok)?i.ok:i.args?i.args.length:void 0,c=i.ng;return function(){var t=(new e).next((function(e){var t=this._next.callback.ok;this._next.callback.ok=function(){return t.apply(this,e.args)}})),n=a.concat(Array.prototype.slice.call(arguments,0));isFinite(u)&&null!==u||(u=n.length);var i=function(){t.call(new e.Arguments(arguments))};if(n.splice(u,0,i),isFinite(c)&&null!==c){var l=function(){t.fail(arguments)};n.splice(c,0,l)}return e.next((function(){o.apply(r,n)})),t}},e.Arguments=function(e){this.args=Array.prototype.slice.call(e,0)},e.retry=function(t,n,r){r||(r={});var o=r.wait||0,i=new e,a=function(){n(t).next((function(e){i.call(e)})).error((function(e){--t<=0?i.fail(["retry failed",e]):setTimeout(a,1e3*o)}))};return setTimeout(a,0),i},e.methods=["parallel","wait","next","call","loop","repeat","chain"],e.define=function(t,n){n||(n=e.methods),t||(t=function(){return this}());for(var r=0;r{var e={839:(e,t,n)=>{"use strict";var r=n(97),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var l=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=s(n);f&&(a=a.concat(f(n)));for(var u=c(t),v=c(n),y=0;y{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,s=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,_=n?Symbol.for("react.block"):60121,m=n?Symbol.for("react.fundamental"):60117,g=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case s:case f:case i:case u:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case d:case y:case v:case c:return e;default:return t}}case o:return t}}}function S(e){return w(e)===f}t.AsyncMode=s,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=y,t.Memo=v,t.Portal=o,t.Profiler=u,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===s},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===y},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===u},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===u||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===m||e.$$typeof===g||e.$$typeof===b||e.$$typeof===_)},t.typeOf=w},97:(e,t,n)=>{"use strict";e.exports=n(173)},354:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>h,Component:()=>r.wA,Fragment:()=>r.HY,PureComponent:()=>c,StrictMode:()=>K,Suspense:()=>g,SuspenseList:()=>S,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>U,cloneElement:()=>$,createContext:()=>r.kr,createElement:()=>r.az,createFactory:()=>Y,createPortal:()=>O,createRef:()=>r.Vf,default:()=>ne,findDOMNode:()=>q,flushSync:()=>X,forwardRef:()=>d,hydrate:()=>j,isValidElement:()=>W,lazy:()=>w,memo:()=>l,render:()=>A,startTransition:()=>J,unmountComponentAtNode:()=>V,unstable_batchedUpdates:()=>G,useCallback:()=>o.I4,useContext:()=>o.qp,useDebugValue:()=>o.Qb,useDeferredValue:()=>Q,useEffect:()=>o.d4,useErrorBoundary:()=>o.cO,useId:()=>o.Me,useImperativeHandle:()=>o.aP,useInsertionEffect:()=>ee,useLayoutEffect:()=>o.bt,useMemo:()=>o.Ye,useReducer:()=>o._Y,useRef:()=>o.sO,useState:()=>o.eJ,useSyncExternalStore:()=>te,useTransition:()=>Z,version:()=>z});var r=n(473),o=n(792);function i(e,t){for(var n in t)e[n]=t[n];return e}function a(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function u(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}function c(e){this.props=e}function l(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:a(this.props,e)}function o(t){return this.shouldComponentUpdate=n,(0,r.az)(e,t)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(c.prototype=new r.wA).isPureReactComponent=!0,c.prototype.shouldComponentUpdate=function(e,t){return a(this.props,e)||a(this.state,t)};var s=r.YM.__b;r.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),s&&s(e)};var f="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function d(e){function t(t){var n=i({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=f,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var p=function(e,t){return null==e?null:(0,r.bR)((0,r.bR)(e).map(t))},h={map:p,forEach:p,count:function(e){return e?(0,r.bR)(e).length:0},only:function(e){var t=(0,r.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:r.bR},v=r.YM.__e;r.YM.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);v(e,t,n,r)};var y=r.YM.unmount;function _(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=i({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return _(e,t,n)}))),e}function m(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return m(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function g(){this.__u=0,this.t=null,this.__b=null}function b(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function w(e){var t,n,o;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){o=e})),o)throw o;if(!n)throw t;return(0,r.az)(n,i)}return i.displayName="Lazy",i.__f=!0,i}function S(){this.u=null,this.o=null}r.YM.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),y&&y(e)},(g.prototype=new r.wA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=b(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(u):u())};n.__R=a;var u=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=m(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},g.prototype.componentWillUnmount=function(){this.t=[]},g.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=_(this.__b,n,o.__O=o.__P)}this.__b=null}var i=t.__a&&(0,r.az)(r.HY,null,e.fallback);return i&&(i.__h=null),[(0,r.az)(r.HY,null,t.__a?null:e.children),i]};var x=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),(0,r.sY)((0,r.az)(E,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function O(e,t){var n=(0,r.az)(T,{__v:e,i:t});return n.containerInfo=t,n}(S.prototype=new r.wA).__a=function(e){var t=this,n=b(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),x(t,e,r)):o()};n?n(i):i()}},S.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,r.bR)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},S.prototype.componentDidUpdate=S.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){x(e,n,t)}))};var C="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,P=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,N="undefined"!=typeof document,k=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function A(e,t,n){return null==t.__k&&(t.textContent=""),(0,r.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function j(e,t,n){return(0,r.ZB)(e,t),"function"==typeof n&&n(),e?e.__c:null}r.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(r.wA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var M=r.YM.event;function D(){}function L(){return this.cancelBubble}function R(){return this.defaultPrevented}r.YM.event=function(e){return M&&(e=M(e)),e.persist=D,e.isPropagationStopped=L,e.isDefaultPrevented=R,e.nativeEvent=e};var I,B={configurable:!0,get:function(){return this.class}},H=r.YM.vnode;r.YM.vnode=function(e){var t=e.type,n=e.props,o=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var a in o={},n){var u=n[a];N&&"children"===a&&"noscript"===t||"value"===a&&"defaultValue"in n&&null==u||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===u?u="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!k(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():i&&P.test(a)?a=a.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===u&&(u=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),o[a]&&(a="oninputCapture")),o[a]=u)}"select"==t&&o.multiple&&Array.isArray(o.value)&&(o.value=(0,r.bR)(n.children).forEach((function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)}))),"select"==t&&null!=o.defaultValue&&(o.value=(0,r.bR)(n.children).forEach((function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value}))),e.props=o,n.class!=n.className&&(B.enumerable="className"in n,null!=n.className&&(o.class=n.className),Object.defineProperty(o,"className",B))}e.$$typeof=C,H&&H(e)};var F=r.YM.__r;r.YM.__r=function(e){F&&F(e),I=e.__c};var U={ReactCurrentDispatcher:{current:{readContext:function(e){return I.__n[e.__c].props.value}}}},z="17.0.2";function Y(e){return r.az.bind(null,e)}function W(e){return!!e&&e.$$typeof===C}function $(e){return W(e)?r.Tm.apply(null,arguments):e}function V(e){return!!e.__k&&((0,r.sY)(null,e),!0)}function q(e){return e&&(e.base||1===e.nodeType&&e)||null}var G=function(e,t){return e(t)},X=function(e,t){return e(t)},K=r.HY;function J(e){e()}function Q(e){return e}function Z(){return[!1,J]}var ee=o.bt;function te(e,t){var n=t(),r=(0,o.eJ)({h:{__:n,v:t}}),i=r[0].h,a=r[1];return(0,o.bt)((function(){i.__=n,i.v=t,u(i.__,t())||a({h:i})}),[e,n,t]),(0,o.d4)((function(){return u(i.__,i.v())||a({h:i}),e((function(){u(i.__,i.v())||a({h:i})}))}),[e]),n}var ne={useState:o.eJ,useId:o.Me,useReducer:o._Y,useEffect:o.d4,useLayoutEffect:o.bt,useInsertionEffect:ee,useTransition:Z,useDeferredValue:Q,useSyncExternalStore:te,startTransition:J,useRef:o.sO,useImperativeHandle:o.aP,useMemo:o.Ye,useCallback:o.I4,useContext:o.qp,useDebugValue:o.Qb,version:"17.0.2",Children:h,render:A,hydrate:j,unmountComponentAtNode:V,createPortal:O,createElement:r.az,createContext:r.kr,createFactory:Y,cloneElement:$,createRef:r.Vf,Fragment:r.HY,isValidElement:W,findDOMNode:q,Component:r.wA,PureComponent:c,memo:l,forwardRef:d,flushSync:X,unstable_batchedUpdates:G,StrictMode:K,Suspense:g,SuspenseList:S,lazy:w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:U}},473:(e,t,n)=>{"use strict";n.d(t,{HY:()=>g,Tm:()=>Y,Vf:()=>m,YM:()=>o,ZB:()=>z,az:()=>y,bR:()=>j,h:()=>y,kr:()=>W,sY:()=>U,wA:()=>E});var r,o,i,a,u,c,l,s,f={},d=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(e,t){for(var n in t)e[n]=t[n];return e}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,n){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return _(e,u,o,i,null)}function _(e,t,n,r,a){var u={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(u),u}function m(){return{current:null}}function g(e){return e.children}function b(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function w(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||b(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||b(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?x:S,i):e.removeEventListener(t,i?x:S,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function S(e){a=!0;try{return this.l[e.type+!1](o.event?o.event(e):e)}finally{a=!1}}function x(e){a=!0;try{return this.l[e.type+!0](o.event?o.event(e):e)}finally{a=!1}}function E(e,t){this.props=e,this.context=t}function T(e,t){if(null==t)return e.__?T(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&u.sort((function(e,t){return e.__v.__b-t.__v.__b})));N.__r=0}function k(e,t,n,r,o,i,a,u,c,l){var s,p,h,v,y,m,b,w=r&&r.__k||d,S=w.length;for(n.__k=[],s=0;s0?_(v.type,v.props,v.key,v.ref?v.ref:null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(h=w[s])||h&&v.key==h.key&&v.type===h.type)w[s]=void 0;else for(p=0;p=0;t--)if((n=e.__k[t])&&(r=D(n)))return r;return null}function L(e,t,n,r,i,a,u,c,l){var s,f,d,p,v,y,_,m,b,w,S,x,T,O,C,P=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,c=t.__e=n.__e,t.__h=null,a=[c]),(s=o.__b)&&s(t);try{e:if("function"==typeof P){if(m=t.props,b=(s=P.contextType)&&r[s.__c],w=s?b?b.props.value:s.__:r,n.__c?_=(f=t.__c=n.__c).__=f.__E:("prototype"in P&&P.prototype.render?t.__c=f=new P(m,w):(t.__c=f=new E(m,w),f.constructor=P,f.render=F),b&&b.sub(f),f.props=m,f.state||(f.state={}),f.context=w,f.__n=r,d=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=P.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=h({},f.__s)),h(f.__s,P.getDerivedStateFromProps(m,f.__s))),p=f.props,v=f.state,f.__v=t,d)null==P.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==P.getDerivedStateFromProps&&m!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(m,w),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(m,f.__s,w)||t.__v===n.__v){for(t.__v!==n.__v&&(f.props=m,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),S=0;S2&&(u.children=arguments.length>3?r.call(arguments,2):n),_(e.type,u,o||e.key,i||e.ref,null)}function W(e,t){var n={__c:t="__cC"+s++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(P)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=d.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,a=!1,E.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},n),this.props)),e&&h(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),P(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),P(this))},E.prototype.render=g,u=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,N.__r=0,s=0},792:(e,t,n)=>{"use strict";n.d(t,{I4:()=>E,Me:()=>P,Qb:()=>O,Ye:()=>x,_Y:()=>m,aP:()=>S,bt:()=>b,cO:()=>C,d4:()=>g,eJ:()=>_,qp:()=>T,sO:()=>w});var r,o,i,a,u=n(473),c=0,l=[],s=[],f=u.YM.__b,d=u.YM.__r,p=u.YM.diffed,h=u.YM.__c,v=u.YM.unmount;function y(e,t){u.YM.__h&&u.YM.__h(o,e,c||t),c=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:s}),n.__[e]}function _(e){return c=1,m(L,e)}function m(e,t,n){var i=y(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):L(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.u)){o.u=!0;var a=o.shouldComponentUpdate;o.shouldComponentUpdate=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!a||a.call(this,e,t,n);var o=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&i.__c.props===e)&&(!a||a.call(this,e,t,n))}}return i.__N||i.__}function g(e,t){var n=y(r++,3);!u.YM.__s&&D(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function b(e,t){var n=y(r++,4);!u.YM.__s&&D(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function w(e){return c=5,x((function(){return{current:e}}),[])}function S(e,t,n){c=6,b((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function x(e,t){var n=y(r++,7);return D(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function E(e,t){return c=8,x((function(){return e}),t)}function T(e){var t=o.context[e.__c],n=y(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function O(e,t){u.YM.useDebugValue&&u.YM.useDebugValue(t?t(e):e)}function C(e){var t=y(r++,10),n=_();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function P(){var e=y(r++,11);if(!e.__){for(var t=o.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function N(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(j),e.__H.__h.forEach(M),e.__H.__h=[]}catch(t){e.__H.__h=[],u.YM.__e(t,e.__v)}}u.YM.__b=function(e){o=null,f&&f(e)},u.YM.__r=function(e){d&&d(e),r=0;var t=(o=e.__c).__H;t&&(i===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=s,e.__N=e.i=void 0}))):(t.__h.forEach(j),t.__h.forEach(M),t.__h=[])),i=o},u.YM.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&a===u.YM.requestAnimationFrame||((a=u.YM.requestAnimationFrame)||A)(N)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==s&&(e.__=e.__V),e.i=void 0,e.__V=s}))),i=o=null},u.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(j),e.__h=e.__h.filter((function(e){return!e.__||M(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],u.YM.__e(n,e.__v)}})),h&&h(e,t)},u.YM.unmount=function(e){v&&v(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{j(e)}catch(e){t=e}})),n.__H=void 0,t&&u.YM.__e(t,n.__v))};var k="function"==typeof requestAnimationFrame;function A(e){var t,n=function(){clearTimeout(r),k&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);k&&(t=requestAnimationFrame(n))}function j(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function M(e){var t=o;e.__c=e.__(),o=t}function D(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function L(e,t){return"function"==typeof t?t(e):t}},702:(e,t)=>{"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen");Symbol.for("react.module.reference")},185:(e,t,n)=>{"use strict";n(702)},47:(e,t,n)=>{"use strict";var r=n(354),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,u=r.useLayoutEffect,c=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return u((function(){o.value=n,o.getSnapshot=t,l(o)&&s({inst:o})}),[e,n,t]),a((function(){return l(o)&&s({inst:o}),e((function(){l(o)&&s({inst:o})}))}),[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},693:(e,t,n)=>{"use strict";var r=n(354),o=n(644),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,u=r.useRef,c=r.useEffect,l=r.useMemo,s=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=u(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=l((function(){function e(e){if(!c){if(c=!0,a=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return u=t}return u=e}if(t=u,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,u=n)}var a,u,c=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,o]);var p=a(e,f[0],f[1]);return c((function(){d.hasValue=!0,d.value=p}),[p]),s(p),p}},644:(e,t,n)=>{"use strict";e.exports=n(47)},626:(e,t,n)=>{"use strict";e.exports=n(693)},337:(e,t,n)=>{var r=n(501).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),u=new P(r||[]);return a(i,"_invoke",{value:E(e,n,u)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h={};function v(){}function y(){}function _(){}var m={};f(m,c,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(N([])));b&&b!==n&&i.call(b,c)&&(m=b);var w=_.prototype=v.prototype=Object.create(m);function S(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,a,u,c){var l=p(e[o],e,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==r(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,u,c)}),(function(e){n("throw",e,u,c)})):t.resolve(f).then((function(e){s.value=e,u(s)}),(function(e){return n("throw",e,u,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function E(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=T(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=p(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function T(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,T(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=p(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function N(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},501:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},824:(e,t,n)=>{var r=n(337)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/js/widget/",(()=>{"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nd,h=(0,f.createContext)(null);function v(){return(0,f.useContext)(h)}let y=()=>{throw new Error("uSES not initialized!")};const _=(e,t)=>e===t;function m(e=h){const t=e===h?v:()=>(0,f.useContext)(e);return function(e,n=_){const{store:r,subscription:o,getServerState:i}=t(),a=y(o.addNestedSub,r.getState,i||r.getState,e,n);return(0,f.useDebugValue)(a),a}}const g=m();n(839),n(185);const b={notify(){},get:()=>[]};const w="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?f.useLayoutEffect:f.useEffect;let S=null;const x=function({store:e,context:t,children:n,serverState:r}){const o=(0,f.useMemo)((()=>{const t=function(e,t){let n,r=b;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){const e=p();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}const a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=b)},getListeners:()=>r};return a}(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0}}),[e,r]),i=(0,f.useMemo)((()=>e.getState()),[e]);w((()=>{const{subscription:t}=o;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),i!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[o,i]);const a=t||h;return f.default.createElement(a.Provider,{value:o},n)};function E(e=h){const t=e===h?v:()=>(0,f.useContext)(e);return function(){const{store:e}=t();return e}}const T=E();function O(e=h){const t=e===h?T:E(e);return function(){return t().dispatch}}const C=O();var P;function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function A(e){var t=function(e,t){if("object"!==k(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===k(t)?t:String(t)}function j(e,t){for(var n=0;n{y=e})(s.useSyncExternalStoreWithSelector),(e=>{S=e})(l.useSyncExternalStore),P=f.unstable_batchedUpdates,d=P;var D=function(){function e(){N(this,e)}return M(e,[{key:"showButtons",value:function(){}}]),e}(),L={createCommentContainer:function(){return document.createElement("span")},createStarContainer:function(){return document.createElement("span")},getStarEntries:function(){}};function R(e){return I.apply(this,arguments)}function I(){return(I=i(u().mark((function e(t){var n,r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new URL("https://s.hatena.ne.jp/siteconfig.json")).searchParams.set("host",t),e.next=4,fetch(n.toString());case 4:return r=e.sent,e.next=7,r.json();case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function B(e,t){if(e===t)return!0;var n=e.split("."),r=t.split(".");if(n.length!==r.length)return!1;for(var o=0;o0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function G(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function X(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o1||u(e,t)}))})}function u(e,t){try{!function(e){e.value instanceof K?Promise.resolve(e.value.v).then(c,l):s(i[0][2],e)}(o[e](t))}catch(e){s(i[0][3],e)}}function c(e){u("next",e)}function l(e){u("throw",e)}function s(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}Object.create,Object.create;var Q=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Z(e){return"function"==typeof e}function ee(e){return Z(null==e?void 0:e.then)}var te,ne,re=(te=function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}},(ne=te((function(e){Error.call(e),e.stack=(new Error).stack}))).prototype=Object.create(Error.prototype),ne.prototype.constructor=ne,ne);function oe(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ie=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=q(i),u=a.next();!u.done;u=a.next())u.value.remove(this)}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);var c=this.initialTeardown;if(Z(c))try{c()}catch(e){o=e instanceof re?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var s=q(l),f=s.next();!f.done;f=s.next()){var d=f.value;try{ue(d)}catch(e){o=null!=o?o:[],e instanceof re?o=X(X([],G(o)),G(e.errors)):o.push(e)}}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}if(o)throw new re(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)ue(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&oe(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&oe(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function ae(e){return e instanceof ie||e&&"closed"in e&&Z(e.remove)&&Z(e.add)&&Z(e.unsubscribe)}function ue(e){Z(e)?e():e.unsubscribe()}ie.EMPTY;var ce=null,le=null,se=void 0,fe=!1,de=!1,pe={setTimeout:function(e,t){for(var n=[],r=2;r"object"==typeof e&&null!==e||"function"==typeof e,Je=new Map([["proxy",{canHandle:e=>Ke(e)&&e[$e],serialize(e){const{port1:t,port2:n}=new MessageChannel;return Qe(e,t),[n,[n]]},deserialize:e=>(e.start(),et(e))}],["throw",{canHandle:e=>Ke(e)&&Xe in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function Qe(e,t=globalThis,n=["*"]){t.addEventListener("message",(function r(o){if(!o||!o.data)return;if(!function(e,t){for(const n of e){if(t===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(t))return!0}return!1}(n,o.origin))return void console.warn(`Invalid origin '${o.origin}' for comlink proxy`);const{id:i,type:a,path:u}=Object.assign({path:[]},o.data),c=(o.data.argumentList||[]).map(lt);let l;try{const t=u.slice(0,-1).reduce(((e,t)=>e[t]),e),n=u.reduce(((e,t)=>e[t]),e);switch(a){case"GET":l=n;break;case"SET":t[u.slice(-1)[0]]=lt(o.data.value),l=!0;break;case"APPLY":l=n.apply(t,c);break;case"CONSTRUCT":l=function(e){return Object.assign(e,{[$e]:!0})}(new n(...c));break;case"ENDPOINT":{const{port1:t,port2:n}=new MessageChannel;Qe(e,n),l=function(e,t){return ut.set(e,t),e}(t,[t])}break;case"RELEASE":l=void 0;break;default:return}}catch(e){l={value:e,[Xe]:0}}Promise.resolve(l).catch((e=>({value:e,[Xe]:0}))).then((n=>{const[o,u]=ct(n);t.postMessage(Object.assign(Object.assign({},o),{id:i}),u),"RELEASE"===a&&(t.removeEventListener("message",r),Ze(t),Ge in e&&"function"==typeof e[Ge]&&e[Ge]())})).catch((e=>{const[n,r]=ct({value:new TypeError("Unserializable return value"),[Xe]:0});t.postMessage(Object.assign(Object.assign({},n),{id:i}),r)}))})),t.start&&t.start()}function Ze(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function et(e,t){return it(e,[],t)}function tt(e){if(e)throw new Error("Proxy has been released and is not useable")}function nt(e){return st(e,{type:"RELEASE"}).then((()=>{Ze(e)}))}const rt=new WeakMap,ot="FinalizationRegistry"in globalThis&&new FinalizationRegistry((e=>{const t=(rt.get(e)||0)-1;rt.set(e,t),0===t&&nt(e)}));function it(e,t=[],n=function(){}){let r=!1;const o=new Proxy(n,{get(n,i){if(tt(r),i===qe)return()=>{!function(e){ot&&ot.unregister(e)}(o),nt(e),r=!0};if("then"===i){if(0===t.length)return{then:()=>o};const n=st(e,{type:"GET",path:t.map((e=>e.toString()))}).then(lt);return n.then.bind(n)}return it(e,[...t,i])},set(n,o,i){tt(r);const[a,u]=ct(i);return st(e,{type:"SET",path:[...t,o].map((e=>e.toString())),value:a},u).then(lt)},apply(n,o,i){tt(r);const a=t[t.length-1];if(a===Ve)return st(e,{type:"ENDPOINT"}).then(lt);if("bind"===a)return it(e,t.slice(0,-1));const[u,c]=at(i);return st(e,{type:"APPLY",path:t.map((e=>e.toString())),argumentList:u},c).then(lt)},construct(n,o){tt(r);const[i,a]=at(o);return st(e,{type:"CONSTRUCT",path:t.map((e=>e.toString())),argumentList:i},a).then(lt)}});return function(e,t){const n=(rt.get(t)||0)+1;rt.set(t,n),ot&&ot.register(e,t,e)}(o,e),o}function at(e){const t=e.map(ct);return[t.map((e=>e[0])),(n=t.map((e=>e[1])),Array.prototype.concat.apply([],n))];var n}const ut=new WeakMap;function ct(e){for(const[t,n]of Je)if(n.canHandle(e)){const[r,o]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},o]}return[{type:"RAW",value:e},ut.get(e)||[]]}function lt(e){switch(e.type){case"HANDLER":return Je.get(e.name).deserialize(e.value);case"RAW":return e.value}}function st(e,t,n){return new Promise((r=>{const o=new Array(4).fill(0).map((()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16))).join("-");e.addEventListener("message",(function t(n){n.data&&n.data.id&&n.data.id===o&&(e.removeEventListener("message",t),r(n.data))})),e.start&&e.start(),e.postMessage(Object.assign({id:o},t),n)}))}var ft="hatena:star:requestrendering",dt="hatena:star:requestreload";function pt(e){return"https://s.hatena.ne.jp"+e}function ht(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:St(e)?2:xt(e)?3:0}function gt(e,t){return 2===mt(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function bt(e,t,n){var r=mt(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function wt(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function St(e){return Kt&&e instanceof Map}function xt(e){return Jt&&e instanceof Set}function Et(e){return e.o||e.t}function Tt(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=on(e);delete t[tn];for(var n=rn(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Ct),Object.freeze(e),t&&_t(e,(function(e,t){return Ot(t,!0)}),!0)),e}function Ct(){ht(2)}function Pt(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Nt(e){var t=an[e];return t||ht(18,e),t}function kt(){return Gt}function At(e,t){t&&(Nt("Patches"),e.u=[],e.s=[],e.v=t)}function jt(e){Mt(e),e.p.forEach(Lt),e.p=null}function Mt(e){e===Gt&&(Gt=e.l)}function Dt(e){return Gt={p:[],l:Gt,h:e,m:!0,_:0}}function Lt(e){var t=e[tn];0===t.i||1===t.i?t.j():t.O=!0}function Rt(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Nt("ES5").S(t,e,r),r?(n[tn].P&&(jt(t),ht(4)),yt(e)&&(e=It(t,e),t.l||Ht(t,e)),t.u&&Nt("Patches").M(n[tn].t,e,t.u,t.s)):e=It(t,n,[]),jt(t),t.u&&t.v(t.u,t.s),e!==Zt?e:void 0}function It(e,t,n){if(Pt(t))return t;var r=t[tn];if(!r)return _t(t,(function(o,i){return Bt(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Ht(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Tt(r.k):r.o,i=o,a=!1;3===r.i&&(i=new Set(o),o.clear(),a=!0),_t(i,(function(t,i){return Bt(e,r,o,t,i,n,a)})),Ht(e,o,!1),n&&e.u&&Nt("Patches").N(r,n,e.u,e.s)}return r.o}function Bt(e,t,n,r,o,i,a){if(vt(o)){var u=It(e,o,i&&t&&3!==t.i&&!gt(t.R,r)?i.concat(r):void 0);if(bt(n,r,u),!vt(u))return;e.m=!1}else a&&n.add(o);if(yt(o)&&!Pt(o)){if(!e.h.D&&e._<1)return;It(e,o),t&&t.A.l||Ht(e,o)}}function Ht(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&Ot(t,n)}function Ft(e,t){var n=e[tn];return(n?Et(n):e)[t]}function Ut(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function zt(e){e.P||(e.P=!0,e.l&&zt(e.l))}function Yt(e){e.o||(e.o=Tt(e.t))}function Wt(e,t,n){var r=St(t)?Nt("MapSet").F(t,n):xt(t)?Nt("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:kt(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=un;n&&(o=[r],i=cn);var a=Proxy.revocable(o,i),u=a.revoke,c=a.proxy;return r.k=c,r.j=u,c}(t,n):Nt("ES5").J(t,n);return(n?n.A:kt()).p.push(r),r}function $t(e){return vt(e)||ht(22,e),function e(t){if(!yt(t))return t;var n,r=t[tn],o=mt(t);if(r){if(!r.P&&(r.i<4||!Nt("ES5").K(r)))return r.t;r.I=!0,n=Vt(t,o),r.I=!1}else n=Vt(t,o);return _t(n,(function(t,o){r&&function(e,t){return 2===mt(e)?e.get(t):e[t]}(r.t,t)===o||bt(n,t,e(o))})),3===o?new Set(n):n}(e)}function Vt(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Tt(e)}var qt,Gt,Xt="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Kt="undefined"!=typeof Map,Jt="undefined"!=typeof Set,Qt="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Zt=Xt?Symbol.for("immer-nothing"):((qt={})["immer-nothing"]=!0,qt),en=Xt?Symbol.for("immer-draftable"):"__$immer_draftable",tn=Xt?Symbol.for("immer-state"):"__$immer_state",nn=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),rn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,on=Object.getOwnPropertyDescriptors||function(e){var t={};return rn(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},an={},un={get:function(e,t){if(t===tn)return e;var n=Et(e);if(!gt(n,t))return function(e,t,n){var r,o=Ut(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!yt(r)?r:r===Ft(e.t,t)?(Yt(e),e.o[t]=Wt(e.A.h,r,e)):r},has:function(e,t){return t in Et(e)},ownKeys:function(e){return Reflect.ownKeys(Et(e))},set:function(e,t,n){var r=Ut(Et(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Ft(Et(e),t),i=null==o?void 0:o[tn];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(wt(n,o)&&(void 0!==n||gt(e.t,t)))return!0;Yt(e),zt(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==Ft(e.t,t)||t in e.t?(e.R[t]=!1,Yt(e),zt(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Et(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){ht(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ht(12)}},cn={};_t(un,(function(e,t){cn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),cn.deleteProperty=function(e,t){return cn.set.call(this,e,t,void 0)},cn.set=function(e,t,n){return un.set.call(this,e[0],t,n,e[0])};var ln=function(){function e(e){var t=this;this.g=Qt,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u1?r-1:0),i=1;i=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=Nt("Patches").$;return vt(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),sn=new ln,fn=sn.produce;sn.produceWithPatches.bind(sn),sn.setAutoFreeze.bind(sn),sn.setUseProxies.bind(sn),sn.applyPatches.bind(sn),sn.createDraft.bind(sn),sn.finishDraft.bind(sn);const dn=fn;function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=0;t--){var o=e[t][tn];if(!o.P)switch(o.i){case 5:r(o)&&zt(o);break;case 4:n(o)&&zt(o)}}}function n(e){for(var t=e.t,n=e.k,r=rn(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==tn){var a=t[i];if(void 0===a&&!gt(t,i))return!0;var u=n[i],c=u&&u[tn];if(c?c.t!==a:!wt(u,a))return!0}}var l=!!t[tn];return r.length!==rn(t).length+(l?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r30?n.slice(0,30).join("")+"...":t)),d.searchParams.set("variant",a),d.searchParams.set("profileUrlTemplate",l),void 0!==f&&d.searchParams.set("token",f);var p=(0,Y.sO)(null),h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"*",n=z((0,Y.eJ)(null),2),r=n[0],o=n[1];return(0,Y.d4)((function(){var n=e.current;if(n){var r=function(){var e,r=new MessageChannel,i=r.port1,a=r.port2;null===(e=n.contentWindow)||void 0===e||e.postMessage({comlinkInit:!0,port:a},t,[a]),o(i)};return n.addEventListener("load",r),function(){n.removeEventListener("load",r)}}}),[e,t]),r}(p),v=z(xr(h),2),y=v[0],_=v[1],m=d.toString();(0,Y.d4)((function(){p.current&&(p.current.src=m)}),[p,m]);var g=_.havingFocus,b=z((0,Y.eJ)(!1),2),w=b[0],S=b[1];(0,Y.d4)((function(){var e=function(){S(!1)};return document.addEventListener("click",e),function(){document.removeEventListener("click",e)}}),[]);var x=w||g;(0,Y.d4)((function(){null==y||y.setMode(x?"expanded":"button")}),[y,x]),(0,Y.d4)((function(){var e=function(){null==y||y.reloadStars()};return document.addEventListener(dt,e),function(){document.removeEventListener(dt,e)}}),[y]);var E=nr((function(e){var t;return null!==(t=e.stars[r])&&void 0!==t?t:[]})),T="compact"===a?{width:32,height:16}:{width:32,height:24};return(0,c.h)(c.HY,null,(0,c.h)("span",{style:{display:"inline-flex",width:"".concat(T.width,"px"),height:"".concat(T.height,"px"),verticalAlign:"middle",position:"relative",margin:"compact"===a?"0 -4px":"0 0 0 -4px"},onMouseEnter:function(){S(!0)},onMouseLeave:function(){S(!1)},onClick:function(e){w||(e.preventDefault(),S(!0))},onTouchStart:function(e){w||e.preventDefault(),S(!0)},part:"star-button-container"},(0,c.h)("iframe",{ref:p,scrolling:"no",style:{width:"".concat(T.width+(x?40:0),"px"),height:"".concat(T.height+(x?44:0),"px"),position:"absolute",bottom:"0",left:"compact"===a?"-4px":"0",border:"none",pointerEvents:x?"unset":"none"}})),E.map((function(e){return"count"===e.type?(0,c.h)(yr,{count:e.count,color:e.color,onClick:i(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null==y?void 0:y.expandStars();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),variant:a}):"placeholder"===e.type?(0,c.h)(gr,{variant:a}):(0,c.h)(pr,{key:e.id,star:e,variant:a,profileUrlTemplate:l,tooltip:!0,highlighter:s})})))};function Tr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Or(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Or(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Or(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n