goodoldtetris
Tetris Online - Play Good Old Tetris free & unblocked
",l=s.removeChild(s.firstChild)):"string"==typeof s.is?l=l.createElement(f,{is:s.is}):(l=l.createElement(f),"select"===f&&(f=l,s.multiple?f.multiple=!0:s.size&&(f.size=s.size))):l=l.createElementNS(u,f),s=l,s[Ha]=n,s[Va]=o,Cu(s,t,!1,!1),t.stateNode=s,f=a,n=o;var c=i,d=Ve(f,n);switch(f){case"iframe":case"object":case"embed":Ne("load",s),i=n;break;case"video":case"audio":for(i=0;i
o.tailExpiration&&1a&&(a=n),s>a&&(a=s),i=i.sibling;o.childExpirationTime=a}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=ss.firstEffect),null!==ss.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=ss.firstEffect),e.lastEffect=ss.lastEffect),1e?t:e}function Gr(e){var t=Bt();return Ft(99,Zr.bind(null,e,t)),null}function Zr(e,t){if(ti(),(us&(Zl|es))!==Xl)throw Error(r(327));var n=e.finishedWork,i=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=Xr(n);if(e.firstPendingTime=o,i<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:i<=e.firstSuspendedTime&&(e.firstSuspendedTime=i-1),i<=e.lastPingedTime&&(e.lastPingedTime=0),i<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===ls&&(ss=ls=null,fs=0),1l&&(f=l,l=u,u=f),f=Ge(_,u),c=Ge(_,l),f&&c&&(1!==E.rangeCount||E.anchorNode!==f.node||E.anchorOffset!==f.offset||E.focusNode!==c.node||E.focusOffset!==c.offset)&&(w=w.createRange(),w.setStart(f.node,f.offset),E.removeAllRanges(),u>l?(E.addRange(w),E.extend(c.node,c.offset)):(w.setEnd(c.node,c.offset),E.addRange(w)))))),w=[];for(E=_;E=E.parentNode;)1===E.nodeType&&w.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof _.focus&&_.focus(),_=0;_=t&&e<=t}function bi(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;nt||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function _i(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function wi(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Ei(e,t,n,i){var o=t.current,a=Ir(),u=fl.suspense;a=Mr(a,o,u);e:if(n){n=n._reactInternalFiber;t:{if(te(n)!==n||1!==n.tag)throw Error(r(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Mt(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(r(171))}if(1===n.tag){var s=n.type;if(Mt(s)){n=Lt(n,s,l);break e}}n=l}else n=ju;return null===t.context?t.context=n:t.pendingContext=n,t=nn(a,u),t.payload={element:e},i=void 0===i?null:i,null!==i&&(t.callback=i),on(o,t),Ar(o,a),a}function Si(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ki(e,t){e=e.memoizedState,null!==e&&null!==e.dehydrated&&e.retryTime"+t.valueOf().toString()+"",t=Oo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),Io={animationend:Z("Animation","AnimationEnd"),animationiteration:Z("Animation","AnimationIteration"),animationstart:Z("Animation","AnimationStart"),transitionend:Z("Transition","TransitionEnd")},Mo={},Ao={};vo&&(Ao=document.createElement("div").style,"AnimationEvent"in window||(delete Io.animationend.animation,delete Io.animationiteration.animation,delete Io.animationstart.animation),"TransitionEvent"in window||delete Io.transitionend.transition);var No,jo,Lo,zo=ee("animationend"),Uo=ee("animationiteration"),Bo=ee("animationstart"),Do=ee("transitionend"),Fo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),qo=!1,Yo=[],Ko=null,Wo=null,Ho=null,Vo=new Map,Qo=new Map,$o=[],Jo="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Xo="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");Ai(Te.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ke)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ke)},persist:function(){this.isPersistent=ke},isPersistent:xe,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=xe,this._dispatchInstances=this._dispatchListeners=null}}),Te.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Te.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return Ai(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=Ai({},r.Interface,e),n.extend=r.extend,Ce(n),n},Ce(Te);for(var Go=Te.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Zo=(Te.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),ea=Te.extend({view:null,detail:null}),ta=ea.extend({relatedTarget:null}),na={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ra={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",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",224:"Meta"},ia={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},oa=ea.extend({key:function(e){if(e.key){var t=na[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=Re(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?ra[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Me,charCode:function(e){return"keypress"===e.type?Re(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Re(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),aa=0,ua=0,la=!1,sa=!1,fa=(ea.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Me,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=aa;return aa=e.screenX,la?"mousemove"===e.type?e.screenX-t:0:(la=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=ua;return ua=e.screenY,sa?"mousemove"===e.type?e.screenY-t:0:(sa=!0,0)}})),ca=fa.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),da=fa.extend({dataTransfer:null}),pa=ea.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Me}),ha=Te.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),va=(fa.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null})),ya=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[zo,"animationEnd",2],[Uo,"animationIteration",2],[Bo,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[Do,"transitionEnd",2],["waiting","waiting",2]],ma={},ga={},ba=0;ba=nu),ou=String.fromCharCode(32),au={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},uu=!1,lu=!1,su={eventTypes:au,extractEvents:function(e,t,n,r){var i;if(tu)e:{switch(e){case"compositionstart":var o=au.compositionStart;break e;case"compositionend":o=au.compositionEnd;break e;case"compositionupdate":o=au.compositionUpdate;break e}o=void 0}else lu?ct(e,n)&&(o=au.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=au.compositionStart);return o?(iu&&"ko"!==n.locale&&(lu||o!==au.compositionStart?o===au.compositionEnd&&lu&&(i=ft()):($a=r,Ja="value"in $a?$a.value:$a.textContent,lu=!0)),o=Ga.getPooled(o,t,n,r),i?o.data=i:(i=dt(n),null!==i&&(o.data=i)),Se(o),i=o):i=null,(e=ru?pt(e,n):ht(e,n))?(t=Za.getPooled(au.beforeInput,t,n,r),t.data=e,Se(t)):t=null,null===i?t:null===t?i:[i,t]}},fu={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},cu={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}},du=null,pu=null,hu=!1;vo&&(hu=Fe("input")&&(!document.documentMode||9=document.documentMode,Eu={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Su=null,ku=null,xu=null,Tu=!1,Pu={eventTypes:Eu,extractEvents:function(e,t,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){e:{o=qe(o),i=Di.onSelect;for(var a=0;anl?Ku:function(){return Ku()-nl},il=3,ol={current:null},al=null,ul=null,ll=null,sl=!1,fl=Xi.ReactCurrentBatchConfig,cl=(new Mi.Component).refs,dl={isMounted:function(e){return!!(e=e._reactInternalFiber)&&te(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Ir(),i=fl.suspense;r=Mr(r,e,i),i=nn(r,i),i.payload=t,void 0!==n&&null!==n&&(i.callback=n),on(e,i),Ar(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Ir(),i=fl.suspense;r=Mr(r,e,i),i=nn(r,i),i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),on(e,i),Ar(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ir(),r=fl.suspense;n=Mr(n,e,r),r=nn(n,r),r.tag=2,void 0!==t&&null!==t&&(r.callback=t),on(e,r),Ar(e,n)}},pl=Array.isArray,hl=bn(!0),vl=bn(!1),yl={},ml={current:yl},gl={current:yl},bl={current:yl},_l={current:0},wl=Xi.ReactCurrentDispatcher,El=Xi.ReactCurrentBatchConfig,Sl=0,kl=null,xl=null,Tl=null,Pl=null,Ol=null,Cl=null,Rl=0,Il=null,Ml=0,Al=!1,Nl=null,jl=0,Ll={readContext:Zt,useCallback:Pn,useContext:Pn,useEffect:Pn,useImperativeHandle:Pn,useLayoutEffect:Pn,useMemo:Pn,useReducer:Pn,useRef:Pn,useState:Pn,useDebugValue:Pn,useResponder:Pn,useDeferredValue:Pn,useTransition:Pn},zl={readContext:Zt,useCallback:Kn,useContext:Zt,useEffect:Dn,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Un(4,36,qn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Un(4,36,e,t)},useMemo:function(e,t){var n=In();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=In();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Hn.bind(null,kl,e),[r.memoizedState,e]},useRef:function(e){var t=In();return e={current:e},t.memoizedState=e},useState:jn,useDebugValue:Yn,useResponder:Tn,useDeferredValue:function(e,t){var n=jn(e),r=n[0],i=n[1];return Dn(function(){Ni.unstable_next(function(){var n=El.suspense;El.suspense=void 0===t?null:t;try{i(e)}finally{El.suspense=n}})},[e,t]),r},useTransition:function(e){var t=jn(!1),n=t[0],r=t[1];return[Kn(function(t){r(!0),Ni.unstable_next(function(){var n=El.suspense;El.suspense=void 0===e?null:e;try{r(!1),t()}finally{El.suspense=n}})},[e,n]),n]}},Ul={readContext:Zt,useCallback:Wn,useContext:Zt,useEffect:Fn,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Bn(4,36,qn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bn(4,36,e,t)},useMemo:function(e,t){var n=Mn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&On(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:Nn,useRef:function(){return Mn().memoizedState},useState:Ln,useDebugValue:Yn,useResponder:Tn,useDeferredValue:function(e,t){var n=Ln(e),r=n[0],i=n[1];return Fn(function(){Ni.unstable_next(function(){var n=El.suspense;El.suspense=void 0===t?null:t;try{i(e)}finally{El.suspense=n}})},[e,t]),r},useTransition:function(e){var t=Ln(!1),n=t[0],r=t[1];return[Wn(function(t){r(!0),Ni.unstable_next(function(){var n=El.suspense;El.suspense=void 0===e?null:e;try{r(!1),t()}finally{El.suspense=n}})},[e,n]),n]}},Bl=null,Dl=null,Fl=!1,ql=Xi.ReactCurrentOwner,Yl=!1,Kl={dehydrated:null,retryTime:0};Cu=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ru=function(){},Iu=function(e,t,n,r,i){var o=e.memoizedProps;if(o!==r){var a=t.stateNode;switch(_n(ml.current),e=null,n){case"input":o=z(a,o),r=z(a,r),e=[];break;case"option":o=K(a,o),r=K(a,r),e=[];break;case"select":o=Ai({},o,{value:void 0}),r=Ai({},r,{value:void 0}),e=[];break;case"textarea":o=H(a,o),r=H(a,r),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(a.onclick=$e)}He(n,r);var u,l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u)for(l in a=o[u])a.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(Bi.hasOwnProperty(u)?e||(e=[]):(e=e||[]).push(u,null));for(u in r){var s=r[u];if(a=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==a&&(null!=s||null!=a))if("style"===u)if(a){for(l in a)!a.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in s)s.hasOwnProperty(l)&&a[l]!==s[l]&&(n||(n={}),n[l]=s[l])}else n||(e||(e=[]),e.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,a=a?a.__html:void 0,null!=s&&a!==s&&(e=e||[]).push(u,""+s)):"children"===u?a===s||"string"!=typeof s&&"number"!=typeof s||(e=e||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(Bi.hasOwnProperty(u)?(null!=s&&Qe(i,u),e||a===s||(e=[])):(e=e||[]).push(u,s))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&pr(t)}},Mu=function(e,t,n,r){n!==r&&pr(t)};var Wl,Hl="function"==typeof WeakSet?WeakSet:Set,Vl="function"==typeof WeakMap?WeakMap:Map,Ql=Math.ceil,$l=Xi.ReactCurrentDispatcher,Jl=Xi.ReactCurrentOwner,Xl=0,Gl=8,Zl=16,es=32,ts=0,ns=1,rs=2,is=3,os=4,as=5,us=Xl,ls=null,ss=null,fs=0,cs=ts,ds=null,ps=1073741823,hs=1073741823,vs=null,ys=0,ms=!1,gs=0,bs=500,_s=null,ws=!1,Es=null,Ss=null,ks=!1,xs=null,Ts=90,Ps=null,Os=0,Cs=null,Rs=0;Wl=function(e,t,n){var i=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||zu.current)Yl=!0;else{if(i=n?lr(e,t,n):(Rt(_l,1&_l.current,t),t=dr(e,t,n),null!==t?t.sibling:null);Rt(_l,1&_l.current,t);break;case 19:if(i=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(i)return cr(e,t,n);t.effectTag|=64}if(o=t.memoizedState,null!==o&&(o.rendering=null,o.tail=null),Rt(_l,_l.current,t),!i)return null}return dr(e,t,n)}Yl=!1}}else Yl=!1;switch(t.expirationTime=0,t.tag){case 2:if(i=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=It(t,Lu.current),Gt(t,n),o=Cn(null,t,i,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,Rn(),Mt(i)){var a=!0;zt(t)}else a=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var u=i.getDerivedStateFromProps;"function"==typeof u&&dn(t,i,u,e),o.updater=dl,t.stateNode=o,o._reactInternalFiber=t,yn(t,i,e,n),t=ar(null,t,i,!0,a,n)}else t.tag=0,Zn(null,t,o,n),t=t.child;return t;case 16:if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,y(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,a=t.tag=ci(o),e=Vt(o,e),a){case 0:t=ir(null,t,o,e,n);break;case 1:t=or(null,t,o,e,n);break;case 11:t=er(null,t,o,e,n);break;case 14:t=tr(null,t,o,Vt(o.type,e),i,n);break;default:throw Error(r(306,o,""))}return t;case 0:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:Vt(i,o),ir(e,t,i,o,n);case 1:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:Vt(i,o),or(e,t,i,o,n);case 3:if(ur(t),i=t.updateQueue,null===i)throw Error(r(282));if(o=t.memoizedState,o=null!==o?o.element:null,sn(t,i,t.pendingProps,null,n),i=t.memoizedState.element,i===o)Gn(),t=dr(e,t,n);else{if((o=t.stateNode.hydrate)&&(Dl=it(t.stateNode.containerInfo.firstChild),Bl=t,o=Fl=!0),o)for(n=vl(t,null,i,n),t.child=n;n;)n.effectTag=n.effectTag&-3|1024,n=n.sibling;else Zn(e,t,i,n),Gn();t=t.child}return t;case 5:return Sn(t),null===e&&$n(t),i=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,u=o.children,rt(i,o)?u=null:null!==a&&rt(i,a)&&(t.effectTag|=16),rr(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Zn(e,t,u,n),t=t.child),t;case 6:return null===e&&$n(t),null;case 13:return lr(e,t,n);case 4:return wn(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=hl(t,null,i,n):Zn(e,t,i,n),t.child;case 11:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:Vt(i,o),er(e,t,i,o,n);case 7:return Zn(e,t,t.pendingProps,n),t.child;case 8:return Zn(e,t,t.pendingProps.children,n),t.child;case 12:return Zn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,o=t.pendingProps,u=t.memoizedProps,a=o.value,$t(t,a),null!==u){var l=u.value;if(a=bu(l,a)?0:0|("function"==typeof i._calculateChangedBits?i._calculateChangedBits(l,a):1073741823),0===a){if(u.children===o.children&&!zu.current){t=dr(e,t,n);break e}}else for(l=t.child,null!==l&&(l.return=t);null!==l;){var s=l.dependencies;if(null!==s){u=l.child;for(var f=s.firstContext;null!==f;){if(f.context===i&&0!==(f.observedBits&a)){1===l.tag&&(f=nn(n,null),f.tag=2,on(l,f)),l.expirationTimeo(u,n))void 0!==s&&0>o(s,u)?(e[r]=s,e[l]=n,r=l):(e[r]=u,e[a]=n,r=a);else{if(!(void 0!==s&&0>o(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}function a(e){for(var t=r(N);null!==t;){if(null===t.callback)i(N);else{if(!(t.startTime<=e))break;i(N),t.sortIndex=t.expirationTime,n(A,t)}t=r(N)}}function u(e){if(D=!1,a(e),!B)if(null!==r(A))B=!0,f(l);else{var t=r(N);null!==t&&c(u,t.startTime-e)}}function l(e,n){B=!1,D&&(D=!1,d()),U=!0;var o=z;try{for(a(n),L=r(A);null!==L&&(!(L.expirationTime>n)||e&&!p());){var l=L.callback;if(null!==l){L.callback=null,z=L.priorityLevel;var s=l(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?L.callback=s:L===r(A)&&i(A),a(n)}else i(A);L=r(A)}if(null!==L)var f=!0;else{var h=r(N);null!==h&&c(u,h.startTime-n),f=!1}return f}finally{L=null,z=o,U=!1}}function s(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}Object.defineProperty(t,"__esModule",{value:!0});var f,c,d,p,h;if("undefined"==typeof window||"function"!=typeof MessageChannel){var v=null,y=null,m=function(){if(null!==v)try{var e=t.unstable_now();v(!0,e),v=null}catch(e){throw setTimeout(m,0),e}},g=Date.now();t.unstable_now=function(){return Date.now()-g},f=function(e){null!==v?setTimeout(f,0,e):(v=e,setTimeout(m,0))},c=function(e,t){y=setTimeout(e,t)},d=function(){clearTimeout(y)},p=function(){return!1},h=t.unstable_forceFrameRate=function(){}}else{var b=window.performance,_=window.Date,w=window.setTimeout,E=window.clearTimeout,S=window.requestAnimationFrame,k=window.cancelAnimationFrame;if("undefined"!=typeof console&&("function"!=typeof S&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof k&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),"object"==typeof b&&"function"==typeof b.now)t.unstable_now=function(){return b.now()};else{var x=_.now();t.unstable_now=function(){return _.now()-x}}var T=!1,P=null,O=-1,C=5,R=0;p=function(){return t.unstable_now()>=R},h=function(){},t.unstable_forceFrameRate=function(e){0>e||125a?(e.sortIndex=p,n(N,e),null===r(A)&&e===r(N)&&(D?d():D=!0,c(u,p-a))):(e.sortIndex=o,n(A,e),B||U||(B=!0,f(l))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=z;return function(){var n=z;z=t;try{return e.apply(this,arguments)}finally{z=n}}},t.unstable_getCurrentPriorityLevel=function(){return z},t.unstable_shouldYield=function(){var e=t.unstable_now();a(e);var n=r(A);return n!==L&&null!==L&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime3&&void 0!==arguments[3]?arguments[3]:{},s=Boolean(e),d=e||k,h=void 0;h="function"==typeof t?t:t?(0,m.default)(t):x;var y=n||T,g=r.pure,b=void 0===g||g,_=r.withRef,E=void 0!==_&&_,C=b&&y!==T,R=O++;return function(e){function t(e,t,n){var r=y(e,t,n);return r}var n="Connect("+u(e)+")",r=function(r){function u(e,t){i(this,u);var a=o(this,r.call(this,e,t));a.version=R,a.store=e.store||t.store,(0,S.default)(a.store,'Could not find "store" in either the context or '+('props of "'+n+'". ')+"Either wrap the root component in a , "+('or explicitly pass "store" as a prop to "'+n+'".'));var l=a.store.getState();return a.state={storeState:l},a.clearCache(),a}return a(u,r),u.prototype.shouldComponentUpdate=function(){return!b||this.haveOwnPropsChanged||this.hasStoreStateChanged},u.prototype.computeStateProps=function(e,t){if(!this.finalMapStateToProps)return this.configureFinalMapState(e,t);var n=e.getState(),r=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(n,t):this.finalMapStateToProps(n);return r},u.prototype.configureFinalMapState=function(e,t){var n=d(e.getState(),t),r="function"==typeof n;return this.finalMapStateToProps=r?n:d,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,r?this.computeStateProps(e,t):n},u.prototype.computeDispatchProps=function(e,t){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(e,t);var n=e.dispatch,r=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(n,t):this.finalMapDispatchToProps(n);return r},u.prototype.configureFinalMapDispatch=function(e,t){var n=h(e.dispatch,t),r="function"==typeof n;return this.finalMapDispatchToProps=r?n:h,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,r?this.computeDispatchProps(e,t):n},u.prototype.updateStatePropsIfNeeded=function(){var e=this.computeStateProps(this.store,this.props);return(!this.stateProps||!(0,v.default)(e,this.stateProps))&&(this.stateProps=e,!0)},u.prototype.updateDispatchPropsIfNeeded=function(){var e=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!(0,v.default)(e,this.dispatchProps))&&(this.dispatchProps=e,!0)},u.prototype.updateMergedPropsIfNeeded=function(){var e=t(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&C&&(0,v.default)(e,this.mergedProps))&&(this.mergedProps=e,!0)},u.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},u.prototype.trySubscribe=function(){s&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},u.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},u.prototype.componentDidMount=function(){this.trySubscribe()},u.prototype.componentWillReceiveProps=function(e){b&&(0,v.default)(e,this.props)||(this.haveOwnPropsChanged=!0)},u.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},u.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},u.prototype.handleChange=function(){if(this.unsubscribe){var e=this.store.getState(),t=this.state.storeState;if(!b||t!==e){if(b&&!this.doStatePropsDependOnOwnProps){var n=l(this.updateStatePropsIfNeeded,this);if(!n)return;n===P&&(this.statePropsPrecalculationError=P.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:e})}}},u.prototype.getWrappedInstance=function(){return(0,S.default)(E,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},u.prototype.render=function(){var t=this.haveOwnPropsChanged,n=this.hasStoreStateChanged,r=this.haveStatePropsBeenPrecalculated,i=this.statePropsPrecalculationError,o=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,i)throw i;var a=!0,u=!0;b&&o&&(a=n||t&&this.doStatePropsDependOnOwnProps,u=t&&this.doDispatchPropsDependOnOwnProps);var l=!1,s=!1;r?l=!0:a&&(l=this.updateStatePropsIfNeeded()),u&&(s=this.updateDispatchPropsIfNeeded());var d=!0;return d=!!(l||s||t)&&this.updateMergedPropsIfNeeded(),!d&&o?o:(E?this.renderedElement=(0,c.createElement)(e,f({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,c.createElement)(e,this.mergedProps),this.renderedElement)},u}(c.Component);return r.displayName=n,r.WrappedComponent=e,r.contextTypes={store:p.default},r.propTypes={store:p.default},(0,w.default)(r,e)}}t.__esModule=!0;var f=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(l)throw l;for(var r=!1,o={},a=0;a1&&void 0!==arguments[1]?arguments[1]:o.default.Map,n=Object.keys(e);return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t(),i=arguments[1];return r.withMutations(function(t){n.forEach(function(n){var r=e[n],o=t.get(n),u=r(o,i);(0,a.validateNextState)(u,n,i),t.set(n,u)})})}},e.exports=t.default},function(e,t,n){!function(t,n){e.exports=n()}(this,function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return o(e)?e:C(e)}function n(e){return a(e)?e:R(e)}function r(e){return u(e)?e:I(e)}function i(e){return o(e)&&!l(e)?e:M(e)}function o(e){return!(!e||!e[sn])}function a(e){return!(!e||!e[fn])}function u(e){return!(!e||!e[cn])}function l(e){return a(e)||u(e)}function s(e){return!(!e||!e[dn])}function f(e){return e.value=!1,e}function c(e){e&&(e.value=!0)}function d(){}function p(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?h(e)+t:t}function y(){return!0}function m(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function g(e,t){return _(e,t,0)}function b(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}function w(e){this.next=e}function E(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function S(){return{value:void 0,done:!0}}function k(e){return!!P(e)}function x(e){return e&&"function"==typeof e.next}function T(e){var t=P(e);return t&&t.call(e)}function P(e){var t=e&&(Sn&&e[Sn]||e[kn]);if("function"==typeof t)return t}function O(e){return e&&"number"==typeof e.length}function C(e){return null===e||void 0===e?U():o(e)?e.toSeq():F(e)}function R(e){return null===e||void 0===e?U().toKeyedSeq():o(e)?a(e)?e.toSeq():e.fromEntrySeq():B(e)}function I(e){return null===e||void 0===e?U():o(e)?a(e)?e.entrySeq():e.toIndexedSeq():D(e)}function M(e){return(null===e||void 0===e?U():o(e)?a(e)?e.entrySeq():e:D(e)).toSetSeq()}function A(e){this._array=e,this.size=e.length}function N(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function j(e){this._iterable=e,this.size=e.length||e.size}function L(e){this._iterator=e,this._iteratorCache=[]}function z(e){return!(!e||!e[Tn])}function U(){return Pn||(Pn=new A([]))}function B(e){var t=Array.isArray(e)?new A(e).fromEntrySeq():x(e)?new L(e).fromEntrySeq():k(e)?new j(e).fromEntrySeq():"object"==typeof e?new N(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function D(e){var t=q(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function F(e){var t=q(e)||"object"==typeof e&&new N(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function q(e){return O(e)?new A(e):x(e)?new L(e):k(e)?new j(e):void 0}function Y(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var u=i[n?o-a:a];if(t(u[1],r?u[0]:a,e)===!1)return a+1}return a}return e.__iterateUncached(t,n)}function K(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new w(function(){var e=i[n?o-a:a];return a++>o?S():E(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function W(e,t){return t?H(t,e,"",{"":e}):V(e)}function H(e,t,n,r){return Array.isArray(t)?e.call(r,n,I(t).map(function(n,r){return H(e,n,r,t)})):Q(t)?e.call(r,n,R(t).map(function(n,r){return H(e,n,r,t)})):t}function V(e){return Array.isArray(e)?I(e).map(V).toList():Q(e)?R(e).map(V).toMap():e}function Q(e){return e&&(e.constructor===Object||void 0===e.constructor)}function $(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function J(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||a(e)!==a(t)||u(e)!==u(t)||s(e)!==s(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(s(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&$(i[1],e)&&(n||$(i[0],t))})&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{i=!0;var f=e;e=t,t=f}var c=!0,d=t.__iterate(function(t,r){if(n?!e.has(t):i?!$(t,e.get(r,mn)):!$(e.get(r,mn),t))return c=!1,!1});return c&&e.size===d}function X(e,t){if(!(this instanceof X))return new X(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(On)return On;On=this}}function G(e,t){if(!e)throw new Error(t)}function Z(e,t,n){if(!(this instanceof Z))return new Z(e,t,n);if(G(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t>>1&1073741824|3221225471&e}function oe(e){if(e===!1||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(e=e.valueOf(),e===!1||null===e||void 0===e))return 0;if(e===!0)return 1;var t=typeof e;if("number"===t){if(e!==e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)e/=4294967295,n^=e;return ie(n)}if("string"===t)return e.length>zn?ae(e):ue(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return le(e);if("function"==typeof e.toString)return ue(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ae(e){var t=Dn[e];return void 0===t&&(t=ue(e),Bn===Un&&(Bn=0,Dn={}),Bn++,Dn[e]=t),t}function ue(e){for(var t=0,n=0;n0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function fe(e){G(e!==1/0,"Cannot perform this action with an infinite size.")}function ce(e){return null===e||void 0===e?Ee():de(e)&&!s(e)?e:Ee().withMutations(function(t){var r=n(e);fe(r.size),r.forEach(function(e,n){return t.set(n,e)})})}function de(e){return!(!e||!e[Fn])}function pe(e,t){this.ownerID=e,this.entries=t}function he(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function ve(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function ye(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function me(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function ge(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&_e(e._root)}function be(e,t){return E(e,t[0],t[1])}function _e(e,t){return{node:e,index:0,__prev:t}}function we(e,t,n,r){var i=Object.create(qn);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Ee(){return Yn||(Yn=we(0))}function Se(e,t,n){var r,i;if(e._root){var o=f(gn),a=f(bn);if(r=ke(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===mn?-1:1:0)}else{if(n===mn)return e;i=1,r=new pe(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?we(i,r):Ee()}function ke(e,t,n,r,i,o,a,u){return e?e.update(t,n,r,i,o,a,u):o===mn?e:(c(u),c(a),new me(t,r,[i,o]))}function xe(e){return e.constructor===me||e.constructor===ye}function Te(e,t,n,r,i){if(e.keyHash===r)return new ye(t,r,[e.entry,i]);
var o,a=(0===n?e.keyHash:e.keyHash>>>n)&yn,u=(0===n?r:r>>>n)&yn,l=a===u?[Te(e,t,n+hn,r,i)]:(o=new me(t,r,i),a>>=1)a[u]=1&n?t[o++]:void 0;return a[r]=i,new ve(e,o+1,a)}function Re(e,t,r){for(var i=[],a=0;a>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,127&e}function Le(e,t,n,r){var i=r?e:p(e);return i[t]=n,i}function ze(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,u=0;u0&&io?0:o-n,s=a-n;return s>vn&&(s=vn),function(){if(i===s)return Jn;var e=t?--s:i++;return r&&r[e]}}function i(e,r,i){var u,l=e&&e.array,s=i>o?0:o-i>>r,f=(a-i>>r)+1;return f>vn&&(f=vn),function(){for(;;){if(u){var e=u();if(e!==Jn)return e;u=null}if(s===f)return Jn;var o=t?--f:s++;u=n(l&&l[o],r-hn,i+(o<=e.size||t<0)return e.withMutations(function(e){t<0?$e(e,t).set(0,n):$e(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=f(bn);return t>=Xe(e._capacity)?r=He(r,e.__ownerID,0,t,n,o):i=He(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Ye(e._origin,e._capacity,e._level,i,r):e}function He(e,t,n,r,i,o){var a=r>>>n&yn,u=e&&a0){var s=e&&e.array[a],f=He(s,t,n-hn,r,i,o);return f===s?e:(l=Ve(e,t),l.array[a]=f,l)}return u&&e.array[a]===i?e:(c(o),l=Ve(e,t),void 0===i&&a===l.array.length-1?l.array.pop():l.array[a]=i,l)}function Ve(e,t){return t&&e&&t===e.ownerID?e:new Fe(e?e.array.slice():[],t)}function Qe(e,t){if(t>=Xe(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&yn],r-=hn;return n}}function $e(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new d,i=e._origin,o=e._capacity,a=i+t,u=void 0===n?o:n<0?o+n:i+n;if(a===i&&u===o)return e;if(a>=u)return e.clear();for(var l=e._level,s=e._root,f=0;a+f<0;)s=new Fe(s&&s.array.length?[void 0,s]:[],r),l+=hn,f+=1<=1<c?new Fe([],r):h;if(h&&p>c&&ahn;m-=hn){var g=c>>>m&yn;y=y.array[g]=Ve(y.array[g],r)}y.array[c>>>hn&yn]=h}if(u=p)a-=p,u-=p,l=hn,s=null,v=v&&v.removeBefore(r,0,a);else if(a>i||p>>l&yn;if(b!==p>>>l&yn)break;b&&(f+=(1<i&&(s=s.removeBefore(r,l,a-f)),s&&pa&&(a=s.size),o(l)||(s=s.map(function(e){return W(e)})),i.push(s)}return a>e.size&&(e=e.setSize(a)),Ae(e,t,i)}function Xe(e){return e>>hn<=vn&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&u!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=u===a.size-1?a.pop():a.set(u,void 0))}else if(l){if(n===a.get(u)[1])return e;r=o,i=a.set(u,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):et(r,i)}function rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function it(e){this._iter=e,this.size=e.size}function ot(e){this._iter=e,this.size=e.size}function at(e){this._iter=e,this.size=e.size}function ut(e){var t=Ot(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Ct,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===En){var r=e.__iterator(t,n);return new w(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===wn?_n:wn,n)},t}function lt(e,t,n){var r=Ot(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var o=e.get(r,mn);return o===mn?i:t.call(n,o,r,e)},r.__iterateUncached=function(r,i){var o=this;return e.__iterate(function(e,i,a){return r(t.call(n,e,i,a),i,o)!==!1},i)},r.__iteratorUncached=function(r,i){var o=e.__iterator(En,i);return new w(function(){var i=o.next();if(i.done)return i;var a=i.value,u=a[0];return E(r,u,t.call(n,a[1],u,e),i)})},r}function st(e,t){var n=Ot(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=ut(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Ct,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ft(e,t,n,r){var i=Ot(e);return r&&(i.has=function(r){var i=e.get(r,mn);return i!==mn&&!!t.call(n,i,r,e)},i.get=function(r,i){var o=e.get(r,mn);return o!==mn&&t.call(n,o,r,e)?o:i}),i.__iterateUncached=function(i,o){var a=this,u=0;return e.__iterate(function(e,o,l){if(t.call(n,e,o,l))return u++,i(e,r?o:u-1,a)},o),u},i.__iteratorUncached=function(i,o){var a=e.__iterator(En,o),u=0;return new w(function(){for(;;){var o=a.next();if(o.done)return o;var l=o.value,s=l[0],f=l[1];if(t.call(n,f,s,e))return E(i,r?s:u++,f,o)}})},i}function ct(e,t,n){var r=ce().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(e){return e+1})}),r.asImmutable()}function dt(e,t,n){var r=a(e),i=(s(e)?Ge():ce()).asMutable();e.__iterate(function(o,a){i.update(t.call(n,o,a,e),function(e){return e=e||[],e.push(r?[a,o]:o),e})});var o=Pt(e);return i.map(function(t){return kt(e,o(t))})}function pt(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),m(t,n,i))return e;var o=g(t,i),a=b(n,i);if(o!==o||a!==a)return pt(e.toSeq().cacheResult(),t,n,r);var u,l=a-o;l===l&&(u=l<0?0:l);var s=Ot(e);return s.size=0===u?u:e.size&&u||void 0,!r&&z(e)&&u>=0&&(s.get=function(t,n){return t=v(this,t),t>=0&&tu)return S();var e=i.next();return r||t===wn?e:t===_n?E(t,l-1,void 0,e):E(t,l-1,e.value[1],e)})},s}function ht(e,t,n){var r=Ot(e);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return e.__iterate(function(e,i,u){return t.call(n,e,i,u)&&++a&&r(e,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(En,i),u=!0;return new w(function(){if(!u)return S();var e=a.next();if(e.done)return e;var i=e.value,l=i[0],s=i[1];return t.call(n,s,l,o)?r===En?e:E(r,l,s,e):(u=!1,S())})},r}function vt(e,t,n,r){var i=Ot(e);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var u=!0,l=0;return e.__iterate(function(e,o,s){if(!u||!(u=t.call(n,e,o,s)))return l++,i(e,r?o:l-1,a)}),l},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var u=e.__iterator(En,o),l=!0,s=0;return new w(function(){var e,o,f;do{if(e=u.next(),e.done)return r||i===wn?e:i===_n?E(i,s++,void 0,e):E(i,s++,e.value[1],e);var c=e.value;o=c[0],f=c[1],l&&(l=t.call(n,f,o,a))}while(l);return i===En?e:E(i,o,f,e)})},i}function yt(e,t){var r=a(e),i=[e].concat(t).map(function(e){return o(e)?r&&(e=n(e)):e=r?B(e):D(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===i.length)return e;if(1===i.length){var l=i[0];if(l===e||r&&a(l)||u(e)&&u(l))return l}var s=new A(i);return r?s=s.toKeyedSeq():u(e)||(s=s.toSetSeq()),s=s.flatten(!0),s.size=i.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),s}function mt(e,t,n){var r=Ot(e);return r.__iterateUncached=function(r,i){function a(e,s){var f=this;e.__iterate(function(e,i){return(!t||s0}function St(e,n,r){var i=Ot(e);return i.size=new A(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(wn,t),i=0;!(n=r.next()).done&&e(n.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(e,i){var o=r.map(function(e){return e=t(e),T(i?e.reverse():e)}),a=0,u=!1;return new w(function(){var t;return u||(t=o.map(function(e){return e.next()}),u=t.some(function(e){return e.done})),u?S():E(e,a++,n.apply(null,t.map(function(e){return e.value})))})},i}function kt(e,t){return z(e)?t:e.constructor(t)}function xt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Tt(e){return fe(e.size),h(e)}function Pt(e){return a(e)?n:u(e)?r:i}function Ot(e){return Object.create((a(e)?R:u(e)?I:M).prototype)}function Ct(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):C.prototype.cacheResult.call(this)}function Rt(e,t){return e>t?1:et?-1:0}function on(e){if(e.size===1/0)return 0;var t=s(e),n=a(e),r=t?1:0,i=e.__iterate(n?t?function(e,t){r=31*r+un(oe(e),oe(t))|0}:function(e,t){r=r+un(oe(e),oe(t))|0}:t?function(e){r=31*r+oe(e)|0}:function(e){r=r+oe(e)|0});return an(i,r)}function an(e,t){return t=In(t,3432918353),t=In(t<<15|t>>>-15,461845907),t=In(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=In(t^t>>>16,2246822507),t=In(t^t>>>13,3266489909),t=ie(t^t>>>16)}function un(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var ln=Array.prototype.slice;e(n,t),e(r,t),e(i,t),t.isIterable=o,t.isKeyed=a,t.isIndexed=u,t.isAssociative=l,t.isOrdered=s,t.Keyed=n,t.Indexed=r,t.Set=i;var sn="@@__IMMUTABLE_ITERABLE__@@",fn="@@__IMMUTABLE_KEYED__@@",cn="@@__IMMUTABLE_INDEXED__@@",dn="@@__IMMUTABLE_ORDERED__@@",pn="delete",hn=5,vn=1<r?S():E(e,i,n[t?r-i++:i++])})},e(N,R),N.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},N.prototype.has=function(e){return this._object.hasOwnProperty(e)},N.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[t?i-o:o];if(e(n[a],a,this)===!1)return o+1}return o},N.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,o=0;return new w(function(){var a=r[t?i-o:o];return o++>i?S():E(e,a,n[a])})},N.prototype[dn]=!0,e(j,I),j.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=T(n),i=0;if(x(r))for(var o;!(o=r.next()).done&&e(o.value,i++,this)!==!1;);return i},j.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=T(n);if(!x(r))return new w(S);var i=0;return new w(function(){var t=r.next();return t.done?t:E(e,i++,t.value)})},e(L,I),L.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return E(e,i,r[i++])})};var Pn;e(X,I),X.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},X.prototype.get=function(e,t){return this.has(e)?this._value:t},X.prototype.includes=function(e){return $(this._value,e)},X.prototype.slice=function(e,t){var n=this.size;return m(e,t,n)?this:new X(this._value,b(t,n)-g(e,n))},X.prototype.reverse=function(){return this},X.prototype.indexOf=function(e){return $(this._value,e)?0:-1},X.prototype.lastIndexOf=function(e){return $(this._value,e)?this.size:-1},X.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?S():E(e,o++,a)})},Z.prototype.equals=function(e){return e instanceof Z?this._start===e._start&&this._end===e._end&&this._step===e._step:J(this,e)};var Cn;e(ee,t),e(te,ee),e(ne,ee),e(re,ee),ee.Keyed=te,ee.Indexed=ne,ee.Set=re;var Rn,In="function"==typeof Math.imul&&Math.imul(4294967295,2)===-2?Math.imul:function(e,t){e|=0,t|=0;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},Mn=Object.isExtensible,An=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Nn="function"==typeof WeakMap;Nn&&(Rn=new WeakMap);var jn=0,Ln="__immutablehash__";"function"==typeof Symbol&&(Ln=Symbol(Ln));var zn=16,Un=255,Bn=0,Dn={};e(ce,te),ce.of=function(){var e=ln.call(arguments,0);return Ee().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},ce.prototype.toString=function(){return this.__toString("Map {","}")},ce.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ce.prototype.set=function(e,t){return Se(this,e,t)},ce.prototype.setIn=function(e,t){return this.updateIn(e,mn,function(){return t})},ce.prototype.remove=function(e){return Se(this,e,mn)},ce.prototype.deleteIn=function(e){return this.updateIn(e,function(){return mn})},ce.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ce.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=Ne(this,It(e),t,n);return r===mn?void 0:r},ce.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ee()},ce.prototype.merge=function(){return Re(this,void 0,arguments)},ce.prototype.mergeWith=function(e){var t=ln.call(arguments,1);return Re(this,e,t)},ce.prototype.mergeIn=function(e){var t=ln.call(arguments,1);return this.updateIn(e,Ee(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},ce.prototype.mergeDeep=function(){return Re(this,Ie,arguments)},ce.prototype.mergeDeepWith=function(e){var t=ln.call(arguments,1);return Re(this,Me(e),t)},ce.prototype.mergeDeepIn=function(e){var t=ln.call(arguments,1);return this.updateIn(e,Ee(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},ce.prototype.sort=function(e){return Ge(_t(this,e))},ce.prototype.sortBy=function(e,t){return Ge(_t(this,t,e))},ce.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ce.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new d)},ce.prototype.asImmutable=function(){return this.__ensureOwner()},ce.prototype.wasAltered=function(){return this.__altered},ce.prototype.__iterator=function(e,t){return new ge(this,e,t)},ce.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},ce.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?we(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ce.isMap=de;var Fn="@@__IMMUTABLE_MAP__@@",qn=ce.prototype;qn[Fn]=!0,qn[pn]=qn.remove,qn.removeIn=qn.deleteIn,pe.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=Kn)return Pe(e,l,r,i);var h=e&&e===this.ownerID,v=h?l:p(l);return d?u?s===f-1?v.pop():v[s]=v.pop():v[s]=[r,i]:v.push([r,i]),h?(this.entries=v,this):new pe(e,v)}},he.prototype.get=function(e,t,n,r){void 0===t&&(t=oe(n));var i=1<<((0===e?t:t>>>e)&yn),o=this.bitmap;return 0===(o&i)?r:this.nodes[je(o&i-1)].get(e+hn,t,n,r)},he.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=oe(r));var u=(0===t?n:n>>>t)&yn,l=1<=Wn)return Ce(e,d,s,u,h);if(f&&!h&&2===d.length&&xe(d[1^c]))return d[1^c];if(f&&h&&1===d.length&&xe(h))return h;var v=e&&e===this.ownerID,y=f?h?s:s^l:s|l,m=f?h?Le(d,c,h,v):Ue(d,c,v):ze(d,c,h,v);return v?(this.bitmap=y,this.nodes=m,this):new he(e,y,m)},ve.prototype.get=function(e,t,n,r){void 0===t&&(t=oe(n));var i=(0===e?t:t>>>e)&yn,o=this.nodes[i];return o?o.get(e+hn,t,n,r):r},ve.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=oe(r));var u=(0===t?n:n>>>t)&yn,l=i===mn,s=this.nodes,f=s[u];if(l&&!f)return this;var c=ke(f,e,t+hn,n,r,i,o,a);if(c===f)return this;var d=this.count;if(f){if(!c&&(d--,d=0&&e>>t&yn;if(r>=this.array.length)return new Fe([],e);var i,o=0===r;if(t>0){var a=this.array[r];if(i=a&&a.removeBefore(e,t-hn,n),i===a&&o)return this}if(o&&!i)return this;var u=Ve(this,e);if(!o)for(var l=0;l>>t&yn;if(r>=this.array.length)return this;var i;if(t>0){var o=this.array[r];if(i=o&&o.removeAfter(e,t-hn,n),i===o&&r===this.array.length-1)return this}var a=Ve(this,e);return a.array.splice(r+1),i&&(a.array[r]=i),a};var $n,Jn={};e(Ge,ce),Ge.of=function(){return this(arguments)},Ge.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ge.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ge.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):tt()},Ge.prototype.set=function(e,t){return nt(this,e,t)},Ge.prototype.remove=function(e){return nt(this,e,mn)},Ge.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ge.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Ge.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ge.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?et(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,
this)},Ge.isOrderedMap=Ze,Ge.prototype[dn]=!0,Ge.prototype[pn]=Ge.prototype.remove;var Xn;e(rt,R),rt.prototype.get=function(e,t){return this._iter.get(e,t)},rt.prototype.has=function(e){return this._iter.has(e)},rt.prototype.valueSeq=function(){return this._iter.valueSeq()},rt.prototype.reverse=function(){var e=this,t=st(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},rt.prototype.map=function(e,t){var n=this,r=lt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Tt(this):0,function(i){return e(i,t?--n:n++,r)}),t)},rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(wn,t),r=t?Tt(this):0;return new w(function(){var i=n.next();return i.done?i:E(e,t?--r:r++,i.value,i)})},rt.prototype[dn]=!0,e(it,I),it.prototype.includes=function(e){return this._iter.includes(e)},it.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},it.prototype.__iterator=function(e,t){var n=this._iter.__iterator(wn,t),r=0;return new w(function(){var t=n.next();return t.done?t:E(e,r++,t.value,t)})},e(ot,M),ot.prototype.has=function(e){return this._iter.includes(e)},ot.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(wn,t);return new w(function(){var t=n.next();return t.done?t:E(e,t.value,t.value,t)})},e(at,R),at.prototype.entrySeq=function(){return this._iter.toSeq()},at.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){xt(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},at.prototype.__iterator=function(e,t){var n=this._iter.__iterator(wn,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){xt(r);var i=o(r);return E(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},it.prototype.cacheResult=rt.prototype.cacheResult=ot.prototype.cacheResult=at.prototype.cacheResult=Ct,e(Mt,te),Mt.prototype.toString=function(){return this.__toString(Nt(this)+" {","}")},Mt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Mt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Mt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=At(this,Ee()))},Mt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Nt(this));if(this._map&&!this._map.has(e)){var n=this._defaultValues[e];if(t===n)return this}var r=this._map&&this._map.set(e,t);return this.__ownerID||r===this._map?this:At(this,r)},Mt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:At(this,t)},Mt.prototype.wasAltered=function(){return this._map.wasAltered()},Mt.prototype.__iterator=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterator(e,t)},Mt.prototype.__iterate=function(e,t){var r=this;return n(this._defaultValues).map(function(e,t){return r.get(t)}).__iterate(e,t)},Mt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?At(this,t,e):(this.__ownerID=e,this._map=t,this)};var Gn=Mt.prototype;Gn[pn]=Gn.remove,Gn.deleteIn=Gn.removeIn=qn.removeIn,Gn.merge=qn.merge,Gn.mergeWith=qn.mergeWith,Gn.mergeIn=qn.mergeIn,Gn.mergeDeep=qn.mergeDeep,Gn.mergeDeepWith=qn.mergeDeepWith,Gn.mergeDeepIn=qn.mergeDeepIn,Gn.setIn=qn.setIn,Gn.update=qn.update,Gn.updateIn=qn.updateIn,Gn.withMutations=qn.withMutations,Gn.asMutable=qn.asMutable,Gn.asImmutable=qn.asImmutable,e(zt,re),zt.of=function(){return this(arguments)},zt.fromKeys=function(e){return this(n(e).keySeq())},zt.prototype.toString=function(){return this.__toString("Set {","}")},zt.prototype.has=function(e){return this._map.has(e)},zt.prototype.add=function(e){return Bt(this,this._map.set(e,!0))},zt.prototype.remove=function(e){return Bt(this,this._map.remove(e))},zt.prototype.clear=function(){return Bt(this,this._map.clear())},zt.prototype.union=function(){var e=ln.call(arguments,0);return e=e.filter(function(e){return 0!==e.size}),0===e.length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(t){for(var n=0;n=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Qt(e,t)},Ht.prototype.pushAll=function(e){if(e=r(e),0===e.size)return this;fe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Qt(t,n)},Ht.prototype.pop=function(){return this.slice(1)},Ht.prototype.unshift=function(){return this.push.apply(this,arguments)},Ht.prototype.unshiftAll=function(e){return this.pushAll(e)},Ht.prototype.shift=function(){return this.pop.apply(this,arguments)},Ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):$t()},Ht.prototype.slice=function(e,t){if(m(e,t,this.size))return this;var n=g(e,this.size),r=b(t,this.size);if(r!==this.size)return ne.prototype.slice.call(this,e,t);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Qt(i,o)},Ht.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Qt(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ht.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&e(r.value,n++,this)!==!1;)r=r.next;return n},Ht.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new w(function(){if(r){var t=r.value;return r=r.next,E(e,n++,t)}return S()})},Ht.isStack=Vt;var ir="@@__IMMUTABLE_STACK__@@",or=Ht.prototype;or[ir]=!0,or.withMutations=qn.withMutations,or.asMutable=qn.asMutable,or.asImmutable=qn.asImmutable,or.wasAltered=qn.wasAltered;var ar;t.Iterator=w,Jt(t,{toArray:function(){fe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new it(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new rt(this,!0)},toMap:function(){return ce(this.toKeyedSeq())},toObject:function(){fe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return Ge(this.toKeyedSeq())},toOrderedSet:function(){return qt(a(this)?this.valueSeq():this)},toSet:function(){return zt(a(this)?this.valueSeq():this)},toSetSeq:function(){return new ot(this)},toSeq:function(){return u(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ht(a(this)?this.valueSeq():this)},toList:function(){return Be(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var e=ln.call(arguments,0);return kt(this,yt(this,e))},includes:function(e){return this.some(function(t){return $(t,e)})},entries:function(){return this.__iterator(En)},every:function(e,t){fe(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!e.call(t,r,i,o))return n=!1,!1}),n},filter:function(e,t){return kt(this,ft(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return fe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){fe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""}),t},keys:function(){return this.__iterator(_n)},map:function(e,t){return kt(this,lt(this,e,t))},reduce:function(e,t,n){fe(this.size);var r,i;return arguments.length<2?i=!0:r=t,this.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return kt(this,st(this,!0))},slice:function(e,t){return kt(this,pt(this,e,t,!0))},some:function(e,t){return!this.every(Zt(e),t)},sort:function(e){return kt(this,_t(this,e))},values:function(){return this.__iterator(wn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return h(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return ct(this,e,t)},equals:function(e){return J(this,e)},entrySeq:function(){var e=this;if(e._cache)return new A(e._cache);var t=e.toSeq().map(Gt).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Zt(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,o){if(e.call(t,n,i,o))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(y)},flatMap:function(e,t){return kt(this,gt(this,e,t))},flatten:function(e){return kt(this,mt(this,e,!0))},fromEntrySeq:function(){return new at(this)},get:function(e,t){return this.find(function(t,n){return $(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,i=It(e);!(n=i.next()).done;){var o=n.value;if(r=r&&r.get?r.get(o,mn):mn,r===mn)return t}return r},groupBy:function(e,t){return dt(this,e,t)},has:function(e){return this.get(e,mn)!==mn},hasIn:function(e){return this.getIn(e,mn)!==mn},isSubset:function(e){return e="function"==typeof e.includes?e:t(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e="function"==typeof e.isSubset?e:t(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return $(t,e)})},keySeq:function(){return this.toSeq().map(Xt).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return wt(this,e)},maxBy:function(e,t){return wt(this,t,e)},min:function(e){return wt(this,e?en(e):rn)},minBy:function(e,t){return wt(this,t?en(t):rn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return kt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return kt(this,vt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Zt(e),t)},sortBy:function(e,t){return kt(this,_t(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return kt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return kt(this,ht(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Zt(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var ur=t.prototype;ur[sn]=!0,ur[xn]=ur.values,ur.__toJS=ur.toArray,ur.__toStringMapper=tn,ur.inspect=ur.toSource=function(){return this.toString()},ur.chain=ur.flatMap,ur.contains=ur.includes,Jt(n,{flip:function(){return kt(this,ut(this))},mapEntries:function(e,t){var n=this,r=0;return kt(this,this.toSeq().map(function(i,o){return e.call(t,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return kt(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var lr=n.prototype;lr[fn]=!0,lr[xn]=ur.entries,lr.__toJS=ur.toObject,lr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+tn(e)},Jt(r,{toKeyedSeq:function(){return new rt(this,!1)},filter:function(e,t){return kt(this,ft(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return kt(this,st(this,!1))},slice:function(e,t){return kt(this,pt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=g(e,e<0?this.count():this.size);var r=this.slice(0,e);return kt(this,1===n?r:r.concat(p(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return kt(this,mt(this,e,!1))},get:function(e,t){return e=v(this,e),e<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return e=v(this,e),e>=0&&(void 0!==this.size?this.size===1/0||e0?"Unexpected "+(1===a.length?"property":"properties")+' "'+a.join('", "')+'" found in '+i+'. Expected to find one of the known reducer property names instead: "'+r.join('", "')+'". Unexpected properties will be ignored.':null},e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(void 0===e)throw new Error('Reducer "'+t+'" returned undefined when handling "'+n.type+'" action. To ignore an action, you must explicitly return the previous state.')},e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=n(52),u=!(!a.lastRecord||void 0===a.lastRecord.pause)&&!!a.lastRecord.pause,l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1];switch(t.type){case o.PAUSE:return t.data;default:return e}};t.default=l},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PAUSE="PAUSE",t.MUSIC="MUSIC",t.MATRIX="MATRIX",t.NEXT_BLOCK="NEXT_BLOCK",t.MOVE_BLOCK="MOVE_BLOCK",t.START_LINES="START_LINES",t.MAX="MAX",t.POINTS="POINTS",t.SPEED_START="SPEED_START",t.SPEED_RUN="SPEED_RUN",t.LOCK="LOCK",t.CLEAR_LINES="CLEAR_LINES",t.RESET="RESET",t.DROP="DROP",t.KEY_DROP="KEY_DROP",t.KEY_DOWN="KEY_DOWN",t.KEY_LEFT="KEY_LEFT",t.KEY_RIGHT="KEY_RIGHT",t.KEY_ROTATE="KEY_ROTATE",t.KEY_RESET="KEY_RESET",t.KEY_MUSIC="KEY_MUSIC",t.KEY_PAUSE="KEY_PAUSE",t.FOCUS="FOCUS"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(45),o=n(53),a=r(o),u={I:[[1,1,1,1]],L:[[0,0,1],[1,1,1]],J:[[1,0,0],[1,1,1]],Z:[[1,1,0],[0,1,1]],S:[[0,1,1],[1,1,0]],O:[[1,1],[1,1]],T:[[0,1,0],[1,1,1]]},l={I:[[-1,1],[1,-1]],L:[[0,0]],J:[[0,0]],Z:[[0,0]],S:[[0,0]],O:[[0,0]],T:[[0,0],[1,0],[-1,1],[0,-1]]},s=Object.keys(u),f=[800,650,500,370,250,160],c=[50,60,70,80,90,100],d=[1,1,1,1,1,1,1,1,1,1],p=[0,0,0,0,0,0,0,0,0,0],h=function(){for(var e=[],t=0;t<20;t++)e.push((0,i.List)(p));return(0,i.List)(e)}(),v=[100,300,700,1500],y="REACT_TETRIS",m=function(){var e=localStorage.getItem(y);if(!e)return!1;try{window.btoa&&(e=atob(e)),e=decodeURIComponent(e),e=JSON.parse(e)}catch(e){return(window.console||window.console.error)&&window.console.error("读取记录错误:",e),!1}return e}(),g=999999,b=function(){var e=["transform","webkitTransform","msTransform","mozTransform","oTransform"],t=document.body;return e.filter(function(e){return void 0!==t.style[e]})[0]}(),_=20,w=function(e){var t=new RegExp("\\?(?:.+&)?"+e+"=(.*?)(?:&.*)?$"),n=window.location.toString().match(t);return n?decodeURI(n[1]):""},E=function(){var e=w("lan").toLowerCase();return e=a.default.lan.indexOf(e)===-1?a.default.default:e}();e.exports={blockShape:u,origin:l,blockType:s,speeds:f,delays:c,fillLine:d,blankLine:p,blankMatrix:h,clearPoints:v,StorageKey:y,lastRecord:m,maxPoint:g,eachLines:_,transform:b,lan:E,i18n:a.default.data}},function(e,t){e.exports={lan:["cn","en","fr","fa"],default:"en",data:{title:{cn:"俄罗斯方块",en:"Good Old Tetris",fr:"Good Old Tetris",fa:"خانه سازی"},seoTitle:{cn:"俄罗斯方块",en:"Tetris Online - Play Good Old Tetris free & online",fr:"Tetris Online - Play Good Old Tetris free & online",fa:"خانه سازی"},github:{cn:"GitHub",en:"GitHub",fr:"GitHub",fa:"گیتهاب"},linkTitle:{cn:"查看源代码",en:"View data source",fr:"Afficher la source des données",fa:"مشاهده سورس پروژه"},QRCode:{cn:"二维码",en:"QR code",fr:"QR code",fa:"کیوآر کد"},titleCenter:{cn:"俄罗斯方块
TETRIS",en:"TETRIS",fr:"TETRIS",fa:"خانه سازی"},point:{cn:"得分",en:"Point",fr:"Score",fa:"امتیاز"},highestScore:{cn:"最高分",en:"Max",fr:"Max",fa:"حداکثر"},lastRound:{cn:"上轮得分",en:"Last Round",fr:"Dernier Tour",fa:"آخرین دور"},cleans:{cn:"消除行",en:"Cleans",fr:"Lignes",fa:"پاک کرد"},level:{cn:"级别",en:"Level",fr:"Difficulté",fa:"سطح"},startLine:{cn:"起始行",en:"Start Line",fr:"Ligne Départ",fa:"خط شروع"},next:{cn:"下一个",en:"Next",fr:"Prochain",fa:"بعدی"},pause:{cn:"暂停",en:"Pause",fr:"Pause",fa:"مکث"},sound:{cn:"音效",en:"Sound",fr:"Sonore",fa:"صدا"},reset:{cn:"重玩",en:"Reset",fr:"Réinitialiser",fa:"ریست"},rotation:{cn:"旋转",en:"Rotation",fr:"Rotation",fa:"چرخش"},left:{cn:"左移",en:"Left",fr:"Gauche",fa:"چپ"},right:{cn:"右移",en:"Right",fr:"Droite",fa:"راست"},down:{cn:"下移",en:"Down",fr:"Bas",fa:"پایین"},drop:{cn:"掉落",en:"Drop",fr:"Tomber",fa:"سقوط"}}}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=n(52),u=n(55),l=!a.lastRecord||void 0===a.lastRecord.music||!!a.lastRecord.music;u.hasWebAudioAPI.data||(l=!1);var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments[1];switch(t.type){case o.MUSIC:return!!u.hasWebAudioAPI.data&&t.data;default:return e}};t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(41),o=r(i),a=window.AudioContext||window.webkitAudioContext||window.mozAudioContext||window.oAudioContext||window.msAudioContext,u={data:!!a&&location.protocol.indexOf("http")!==-1},l={};!function(){if(u.data){var e="./music.mp3",t=new a,n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){t.decodeAudioData(n.response,function(e){var n=function(){var n=t.createBufferSource();return n.buffer=e,n.connect(t.destination),n};l.killStart=function(){l.start=function(){}},l.start=function(){l.killStart(),o.default.getState().get("music")&&n().start(0,3.7202,3.6224)},l.clear=function(){o.default.getState().get("music")&&n().start(0,0,.7675)},l.fall=function(){o.default.getState().get("music")&&n().start(0,1.2558,.3546)},l.gameover=function(){o.default.getState().get("music")&&n().start(0,8.1276,1.1437)},l.rotate=function(){o.default.getState().get("music")&&n().start(0,2.2471,.0807)},l.move=function(){o.default.getState().get("music")&&n().start(0,2.9088,.1437)}},function(t){window.console&&window.console.error&&(window.console.error("音频: "+e+" 读取错误",t),u.data=!1)})},n.send()}}(),e.exports={hasWebAudioAPI:u,music:l}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(45),o=n(51),a=r(o),u=n(52),l=u.lastRecord&&Array.isArray(u.lastRecord.matrix)?(0,i.List)(u.lastRecord.matrix.map(function(e){return(0,i.List)(e)})):u.blankMatrix,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments[1];switch(t.type){case a.MATRIX:return t.data;default:return e}};t.default=s},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(58),o=n(51),a=r(o),u=n(52),l=u.lastRecord&&u.blockType.indexOf(u.lastRecord.next)!==-1?u.lastRecord.next:(0,i.getNextType)(),s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments[1];switch(t.type){case a.NEXT_BLOCK:return t.data;default:return e}};t.default=s},function(e,t,n){"use strict";var r=n(52),i=function(){var e=["hidden","webkitHidden","mozHidden","msHidden"];return e=e.filter(function(e){return e in document}),e.length>0&&e[0]}(),o=function(){return!!i&&i.replace(/hidden/i,"visibilitychange")}(),a=function(){return!i||!document[i]},u={getNextType:function(){var e=r.blockType.length;return r.blockType[Math.floor(Math.random()*e)]},want:function(e,t){var n=e.xy,r=e.shape,i=r.get(0).size;return r.every(function(e,r){return e.every(function(e,o){return!(n[1]<0)&&(!(n[1]+i>10)&&(n[0]+r<0||!(n[0]+r>=20)&&(!e||!t.get(n[0]+r).get(n[1]+o))))})})},isClear:function(e){var t=[];return e.forEach(function(e,n){e.every(function(e){return!!e})&&t.push(n)}),0!==t.length&&t},isOver:function(e){return e.get(0).some(function(e){return!!e})},subscribeRecord:function(e){e.subscribe(function(){var t=e.getState().toJS();t.lock||(t=JSON.stringify(t),t=encodeURIComponent(t),window.btoa&&(t=btoa(t)),localStorage.setItem(r.StorageKey,t))})},isMobile:function(){var e=navigator.userAgent,t=/Android (\d+\.\d+)/.test(e),n=e.indexOf("iPhone")>-1,r=e.indexOf("iPod")>-1,i=e.indexOf("iPad")>-1,o=e.indexOf("NokiaN")>-1;return t||n||r||i||o},visibilityChangeEvent:o,isFocus:a};e.exports=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var o=n(45),a=n(51),u=i(a),l=n(52),s=n(60),f=r(s),c=function(){if(!l.lastRecord||!l.lastRecord.cur)return null;var e=l.lastRecord.cur,t={type:e.type,rotateIndex:e.rotateIndex,shape:(0,o.List)(e.shape.map(function(e){return(0,o.List)(e)})),xy:e.xy};return new f.default(t)}(),d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments[1];switch(t.type){case u.MOVE_BLOCK:return t.data;default:return e}};t.default=d},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n=a.origin[this.type].length?0:this.rotateIndex+1;return{shape:t,type:this.type,xy:n,rotateIndex:r,timeStamp:this.timeStamp}}},{key:"fall",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return{shape:this.shape,type:this.type,xy:[this.xy.get(0)+e,this.xy.get(1)],rotateIndex:this.rotateIndex,timeStamp:Date.now()}}},{key:"right",value:function(){return{shape:this.shape,type:this.type,xy:[this.xy.get(0),this.xy.get(1)+1],rotateIndex:this.rotateIndex,timeStamp:this.timeStamp}}},{key:"left",value:function(){return{shape:this.shape,type:this.type,xy:[this.xy.get(0),this.xy.get(1)-1],rotateIndex:this.rotateIndex,timeStamp:this.timeStamp}}}]),e}();t.default=u},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=n(52),u=a.lastRecord&&!isNaN(parseInt(a.lastRecord.startLines,10))?parseInt(a.lastRecord.startLines,10):0;(u<0||u>10)&&(u=0);var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1];switch(t.type){case o.START_LINES:return t.data;default:return e}};t.default=l},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=n(52),u=a.lastRecord&&!isNaN(parseInt(a.lastRecord.max,10))?parseInt(a.lastRecord.max,10):0;u<0?u=0:u>a.maxPoint&&(u=a.maxPoint);var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1];switch(t.type){case o.MAX:return t.data>999999?999999:t.data;default:return e}};t.default=l},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=n(52),u=a.lastRecord&&!isNaN(parseInt(a.lastRecord.points,10))?parseInt(a.lastRecord.points,10):0;u<0?u=0:u>a.maxPoint&&(u=a.maxPoint);var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1];switch(t.type){case o.POINTS:return t.data>a.maxPoint?a.maxPoint:t.data;default:return e}};t.default=l},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=n(52),u=a.lastRecord&&!isNaN(parseInt(a.lastRecord.speedStart,10))?parseInt(a.lastRecord.speedStart,10):1;(u<1||u>6)&&(u=1);var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1];switch(t.type){case o.SPEED_START:return t.data;default:return e}};t.default=l},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=n(52),u=a.lastRecord&&!isNaN(parseInt(a.lastRecord.speedRun,10))?parseInt(a.lastRecord.speedRun,10):1;(u<1||u>6)&&(u=1);var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1];switch(t.type){case o.SPEED_RUN:return t.data;default:return e}};t.default=l;
},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=n(52),u=!(!a.lastRecord||void 0===a.lastRecord.lock)&&!!a.lastRecord.lock,l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1];switch(t.type){case o.LOCK:return t.data;default:return e}};t.default=l},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=n(52),u=a.lastRecord&&!isNaN(parseInt(a.lastRecord.clearLines,10))?parseInt(a.lastRecord.clearLines,10):0;u<0&&(u=0);var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1];switch(t.type){case o.CLEAR_LINES:return t.data;default:return e}};t.default=l},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=n(52),u=!(!a.lastRecord||!a.lastRecord.reset)&&!!a.lastRecord.reset,l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1];switch(t.type){case o.RESET:return t.data;default:return e}};t.default=l},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=n(52),u=!(!a.lastRecord||void 0===a.lastRecord.drop)&&!!a.lastRecord.drop,l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1];switch(t.type){case o.DROP:return t.data;default:return e}};t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(43),o=n(71),a=r(o),u=n(72),l=r(u),s=n(73),f=r(s),c=n(74),d=r(c),p=n(75),h=r(p),v=n(76),y=r(v),m=n(77),g=r(m),b=n(78),_=r(b),w=(0,i.combineReducers)({drop:a.default,down:l.default,left:f.default,right:d.default,rotate:h.default,reset:y.default,music:g.default,pause:_.default});t.default=w},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=!1,u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments[1];switch(t.type){case o.KEY_DROP:return t.data;default:return e}};t.default=u},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=!1,u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments[1];switch(t.type){case o.KEY_DOWN:return t.data;default:return e}};t.default=u},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=!1,u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments[1];switch(t.type){case o.KEY_LEFT:return t.data;default:return e}};t.default=u},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=!1,u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments[1];switch(t.type){case o.KEY_RIGHT:return t.data;default:return e}};t.default=u},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=!1,u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments[1];switch(t.type){case o.KEY_ROTATE:return t.data;default:return e}};t.default=u},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=!1,u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments[1];switch(t.type){case o.KEY_RESET:return t.data;default:return e}};t.default=u},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=!1,u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments[1];switch(t.type){case o.KEY_MUSIC:return t.data;default:return e}};t.default=u},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=!1,u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments[1];switch(t.type){case o.KEY_PAUSE:return t.data;default:return e}};t.default=u},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),o=r(i),a=n(58),u=(0,a.isFocus)(),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1];switch(t.type){case o.FOCUS:return t.data;default:return e}};t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=(0,g.isClear)(e.matrix),n=e.reset;this.setState({clearLines:t,isOver:n}),t&&!this.state.clearLines&&this.clearAnimate(t),t||!n||this.state.isOver||this.over(e)}},{key:"shouldComponentUpdate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props;return!(c.default.is(e.matrix,t.matrix)&&c.default.is(e.cur&&e.cur.shape,t.cur&&t.cur.shape)&&c.default.is(e.cur&&e.cur.xy,t.cur&&t.cur.xy))||this.state.clearLines||this.state.isOver}},{key:"getResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.cur,n=t&&t.shape,r=t&&t.xy,i=e.matrix,o=this.state.clearLines;if(o){var a=this.state.animateColor;o.forEach(function(e){i=i.set(e,(0,f.List)([a,a,a,a,a,a,a,a,a,a]))})}else n&&n.forEach(function(e,t){return e.forEach(function(e,n){if(e&&r.get(0)+t>=0){var a=i.get(r.get(0)+t),u=void 0;u=1!==a.get(r.get(1)+n)||o?1:2,a=a.set(r.get(1)+n,u),i=i.set(r.get(0)+t,a)}})});return i}},{key:"clearAnimate",value:function(){var e=this,t=function(t){E(function(){e.setState({animateColor:0}),E(function(){e.setState({animateColor:2}),"function"==typeof t&&t()},100)},100)};t(function(){t(function(){t(function(){E(function(){w.default.clearLines(e.props.matrix,e.state.clearLines)},100)})})})}},{key:"over",value:function(e){var t=this,n=this.getResult(e);this.setState({overState:n});for(var r=function(e){if(e<=19)n=n.set(19-e,(0,f.List)(b.fillLine));else{if(!(e>=20&&e<=39))return void w.default.overEnd();n=n.set(e-20,(0,f.List)(b.blankLine))}t.setState({overState:n})},i=0;i<=40;i++)E(r.bind(null,i),40*(i+1))}},{key:"render",value:function(){var e=void 0;return e=this.state.isOver?this.state.overState:this.getResult(),s.default.createElement("div",{className:m.default.matrix},e.map(function(e,t){return s.default.createElement("p",{key:t},e.map(function(e,t){return s.default.createElement("b",{className:(0,p.default)({c:1===e,d:2===e}),key:t})}))}))}}]),t}(s.default.Component);t.default=S,S.propTypes={matrix:v.default.object.isRequired,cur:v.default.object,reset:v.default.bool.isRequired}},function(e,t){e.exports={matrix:"_6pVK"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(45),o=n(41),a=r(o),u=n(58),l=n(86),s=r(l),f=n(52),c=n(55),d=function(e){for(var t=function(e,t){for(var n=parseInt((t-e+1)*Math.random()+e,10),r=[],o=0;o=0){var r=i.get(l.get(0)+t);r=r.set(l.get(1)+n,1),i=i.set(l.get(0)+t,r)}})}),p.nextAround(i)}};clearTimeout(p.fallInterval),p.fallInterval=setTimeout(i,void 0===t?f.speeds[n.get("speedRun")-1]:t)},nextAround:function(e,t){clearTimeout(p.fallInterval),a.default.dispatch(s.default.lock(!0)),a.default.dispatch(s.default.matrix(e)),"function"==typeof t&&t();var n=a.default.getState().get("points")+10+2*(a.default.getState().get("speedRun")-1);return p.dispatchPoints(n),(0,u.isClear)(e)?void(c.music.clear&&c.music.clear()):(0,u.isOver)(e)?(c.music.gameover&&c.music.gameover(),void p.overStart()):void setTimeout(function(){a.default.dispatch(s.default.lock(!1)),a.default.dispatch(s.default.moveBlock({type:a.default.getState().get("next")})),a.default.dispatch(s.default.nextBlock()),p.auto()},100)},focus:function(e){if(a.default.dispatch(s.default.focus(e)),!e)return void clearTimeout(p.fallInterval);var t=a.default.getState();!t.get("cur")||t.get("reset")||t.get("pause")||p.auto()},pause:function(e){return a.default.dispatch(s.default.pause(e)),e?void clearTimeout(p.fallInterval):void p.auto()},clearLines:function e(t,n){var r=a.default.getState(),o=t;n.forEach(function(e){o=o.splice(e,1),o=o.unshift((0,i.List)(f.blankLine))}),a.default.dispatch(s.default.matrix(o)),a.default.dispatch(s.default.moveBlock({type:r.get("next")})),a.default.dispatch(s.default.nextBlock()),p.auto(),a.default.dispatch(s.default.lock(!1));var e=r.get("clearLines")+n.length;a.default.dispatch(s.default.clearLines(e));var u=a.default.getState().get("points")+f.clearPoints[n.length-1];p.dispatchPoints(u);var l=Math.floor(e/f.eachLines),c=r.get("speedStart")+l;c=c>6?6:c,a.default.dispatch(s.default.speedRun(c))},overStart:function(){clearTimeout(p.fallInterval),a.default.dispatch(s.default.lock(!0)),a.default.dispatch(s.default.reset(!0)),a.default.dispatch(s.default.pause(!1))},overEnd:function(){a.default.dispatch(s.default.matrix(f.blankMatrix)),a.default.dispatch(s.default.moveBlock({reset:!0})),a.default.dispatch(s.default.reset(!1)),a.default.dispatch(s.default.lock(!1)),a.default.dispatch(s.default.clearLines(0))},dispatchPoints:function(e){a.default.dispatch(s.default.points(e)),e>0&&e>a.default.getState().get("max")&&a.default.dispatch(s.default.max(e))}};t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,_.getNextType)();return{type:E.NEXT_BLOCK,data:e}}function a(e){return{type:E.MOVE_BLOCK,data:e.reset===!0?null:new k.default(e)}}function u(e){return{type:E.SPEED_START,data:e}}function l(e){return{type:E.SPEED_RUN,data:e}}function s(e){return{type:E.START_LINES,data:e}}function f(e){return{type:E.MATRIX,data:e}}function c(e){return{type:E.LOCK,data:e}}function d(e){return{type:E.CLEAR_LINES,data:e}}function p(e){return{type:E.POINTS,data:e}}function h(e){return{type:E.MAX,data:e}}function v(e){return{type:E.RESET,data:e}}function y(e){return{type:E.DROP,data:e}}function m(e){return{type:E.PAUSE,data:e}}function g(e){return{type:E.MUSIC,data:e}}function b(e){return{type:E.FOCUS,data:e}}Object.defineProperty(t,"__esModule",{value:!0});var _=n(58),w=n(51),E=i(w),S=n(60),k=r(S),x=n(87),T=r(x);t.default={nextBlock:o,moveBlock:a,speedStart:u,speedRun:l,startLines:s,matrix:f,lock:c,clearLines:d,points:p,reset:v,max:h,drop:y,pause:m,keyboard:T.default,music:g,focus:b}},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return{type:p.KEY_DROP,data:e}}function o(e){return{type:p.KEY_DOWN,data:e}}function a(e){return{type:p.KEY_LEFT,data:e}}function u(e){return{type:p.KEY_RIGHT,data:e}}function l(e){return{type:p.KEY_ROTATE,data:e}}function s(e){return{type:p.KEY_RESET,data:e}}function f(e){return{type:p.KEY_MUSIC,data:e}}function c(e){return{type:p.KEY_PAUSE,data:e}}Object.defineProperty(t,"__esModule",{value:!0});var d=n(51),p=r(d);t.default={drop:i,down:o,left:a,right:u,rotate:l,reset:s,music:f,pause:c}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n=o?y:v,number:i});else{var a=function e(){n.setState({label:m,number:i}),t.timeout=setTimeout(function(){n.setState({label:y,number:o}),t.timeout=setTimeout(e,3e3)},3e3)};0!==i?a():this.setState({label:y,number:o})}}},{key:"render",value:function(){return s.default.createElement("div",null,s.default.createElement("p",null,this.state.label),s.default.createElement(p.default,{number:this.state.number}))}}]),t}(s.default.Component);t.default=g,g.statics={timeout:null},g.propTypes={cur:c.default.bool,max:c.default.number.isRequired,point:c.default.number.isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n6?1:s+1,e.dispatch(l.default.speedStart(s))}}}})},h=function(e){e.dispatch(l.default.keyboard.right(!1)),a.default.up({key:"right"})};t.default={down:p,up:h}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(58),o=n(107),a=r(o),u=n(86),l=r(u),s=n(85),f=r(s),c=n(55),d=function(e){e.dispatch(l.default.keyboard.down(!0)),null!==e.getState().get("cur")?a.default.down({key:"down",begin:40,interval:40,callback:function(t){var n=e.getState();if(!n.get("lock")){c.music.move&&c.music.move();var r=n.get("cur");if(null!==r){if(n.get("pause"))return void f.default.pause(!1);var o=r.fall();if((0,i.want)(o,n.get("matrix")))e.dispatch(l.default.moveBlock(o)),f.default.auto();else{var a=n.get("matrix"),u=r.shape,s=r.xy;u.forEach(function(e,t){return e.forEach(function(e,n){if(e&&s.get(0)+t>=0){var r=a.get(s.get(0)+t);r=r.set(s.get(1)+n,1),a=a.set(s.get(0)+t,r)}})}),f.default.nextAround(a,t)}}}}}):a.default.down({key:"down",begin:200,interval:100,callback:function(){if(!e.getState().get("lock")){var t=e.getState(),n=t.get("cur");if(!n){c.music.move&&c.music.move();var r=t.get("startLines");r=r-1<0?10:r-1,e.dispatch(l.default.startLines(r))}}}})},p=function(e){e.dispatch(l.default.keyboard.down(!1)),a.default.up({key:"down"})};t.default={down:d,up:p}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(58),o=n(107),a=r(o),u=n(86),l=r(u),s=n(85),f=r(s),c=n(55),d=function(e){e.dispatch(l.default.keyboard.rotate(!0)),null!==e.getState().get("cur")?a.default.down({key:"rotate",once:!0,callback:function(){var t=e.getState();if(!t.get("lock")){t.get("pause")&&f.default.pause(!1);var n=t.get("cur");if(null!==n){c.music.rotate&&c.music.rotate();var r=n.rotate();(0,i.want)(r,t.get("matrix"))&&e.dispatch(l.default.moveBlock(r))}}}}):a.default.down({key:"rotate",begin:200,interval:100,callback:function(){if(!e.getState().get("lock")){c.music.move&&c.music.move();var t=e.getState(),n=t.get("cur");if(!n){var r=t.get("startLines");r=r+1>10?0:r+1,e.dispatch(l.default.startLines(r))}}}})},p=function(e){e.dispatch(l.default.keyboard.rotate(!1)),a.default.up({key:"rotate"})};t.default={down:d,up:p}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(58),o=n(107),a=r(o),u=n(86),l=r(u),s=n(85),f=r(s),c=n(55),d=function(e){e.dispatch(l.default.keyboard.drop(!0)),a.default.down({key:"space",once:!0,callback:function(){var t=e.getState();if(!t.get("lock")){var n=t.get("cur");if(null!==n){if(t.get("pause"))return void f.default.pause(!1);c.music.fall&&c.music.fall();for(var r=0,o=n.fall(r);(0,i.want)(o,t.get("matrix"));)o=n.fall(r),r++;var a=t.get("matrix");o=n.fall(r-2),e.dispatch(l.default.moveBlock(o));var u=o.shape,s=o.xy;u.forEach(function(e,t){return e.forEach(function(e,n){if(e&&s[0]+t>=0){var r=a.get(s[0]+t);r=r.set(s[1]+n,1),a=a.set(s[0]+t,r)}})}),e.dispatch(l.default.drop(!0)),setTimeout(function(){e.dispatch(l.default.drop(!1))},100),f.default.nextAround(a)}else f.default.start()}}})},p=function(e){e.dispatch(l.default.keyboard.drop(!1)),a.default.up({key:"space"})};t.default={down:d,up:p}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(107),o=r(i),a=n(86),u=r(a),l=function(e){e.dispatch(u.default.keyboard.music(!0)),e.getState().get("lock")||o.default.down({key:"s",once:!0,callback:function(){e.getState().get("lock")||e.dispatch(u.default.music(!e.getState().get("music")))}})},s=function(e){e.dispatch(u.default.keyboard.music(!1)),o.default.up({key:"s"})};t.default={down:l,up:s}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(107),o=r(i),a=n(85),u=r(a),l=n(86),s=r(l),f=function(e){e.dispatch(s.default.keyboard.reset(!0)),e.getState().get("lock")||(null!==e.getState().get("cur")?o.default.down({key:"r",once:!0,callback:function(){u.default.overStart()}}):o.default.down({key:"r",once:!0,callback:function(){e.getState().get("lock")||u.default.start()}}))},c=function(e){e.dispatch(s.default.keyboard.reset(!1)),o.default.up({key:"r"})};t.default={down:f,up:c}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(107),o=r(i),a=n(85),u=r(a),l=n(86),s=r(l),f=function(e){e.dispatch(s.default.keyboard.pause(!0)),o.default.down({key:"p",once:!0,callback:function(){var t=e.getState();if(!t.get("lock")){var n=t.get("cur"),r=t.get("pause");null!==n?u.default.pause(!r):u.default.start()}}})},c=function(e){e.dispatch(s.default.keyboard.pause(!1)),o.default.up({key:"p"})};t.default={down:f,up:c}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0&&u<=6&&(0===l||6===l)||l>=0&&l<=6&&(0===u||6===u)||u>=2&&u<=4&&l>=2&&l<=4?e.set(o+u,a+l,!0,!0):e.set(o+u,a+l,!1,!0))}function i(e){for(var t=e.size,n=8;n>u&1),e.set(n,r,i,!0),e.set(r,n,i,!0)}function u(e,t,n){var r,i,o=e.size,a=S.getEncodedBits(t,n);for(r=0;r<15;r++)i=1===(a>>r&1),r<6?e.set(r,8,i,!0):r<8?e.set(r+1,8,i,!0):e.set(o-15+r,8,i,!0),r<8?e.set(8,o-r-1,i,!0):r<9?e.set(8,15-r-1+1,i,!0):e.set(8,15-r-1,i,!0);e.set(o-8,8,1,!0)}function l(e,t){for(var n=e.size,r=-1,i=n-1,o=7,a=0,u=n-1;u>0;u-=2)for(6===u&&u--;;){for(var l=0;l<2;l++)if(!e.isReserved(i,u-l)){var s=!1;a>>o&1)),e.set(i,u-l,s),o--,o===-1&&(a++,o=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function s(e,t,n){var r=new v;n.forEach(function(t){r.put(t.mode.bit,4),r.put(t.getLength(),k.getCharCountIndicator(t.mode,e)),t.write(r)});var i=p.getSymbolTotalCodewords(e),o=_.getTotalCodewordsCount(e,t),a=8*(i-o);for(r.getLengthInBits()+4<=a&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);for(var u=(a-r.getLengthInBits())/8,l=0;l=7&&a(_,t),l(_,m),isNaN(f)&&(f=b.getBestMask(_,u.bind(null,_,n))),b.applyMask(f,_),u(_,n,f),{modules:_,version:t,errorCorrectionLevel:n,maskPattern:f,segments:c}}var d=n(119),p=n(125),h=n(126),v=n(127),y=n(128),m=n(129),g=n(130),b=n(131),_=n(132),w=n(133),E=n(137),S=n(141),k=n(138),x=n(142),T=n(124);t.create=function(e,t){if("undefined"==typeof e||""===e)throw new Error("No input text");var n,r,i=h.M;return"undefined"!=typeof t&&(i=h.from(t.errorCorrectionLevel,h.M),n=E.from(t.version),r=b.from(t.maskPattern),t.toSJISFunc&&p.setToSJISFunction(t.toSJISFunc)),c(e,n,i,r)}},function(e,t,n){(function(t){"use strict";function r(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}function t(e,n,r){return t.TYPED_ARRAY_SUPPORT||this instanceof t?"number"==typeof e?u(this,e):y(this,e,n,r):new t(e,n,r)}function i(e){if(e>=g)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g.toString(16)+" bytes");return 0|e}function o(e){return e!==e}function a(e,n){var r;return t.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(n),r.__proto__=t.prototype):(r=e,null===r&&(r=new t(n)),r.length=n),r}function u(e,n){var r=a(e,n<0?0:0|i(n));if(!t.TYPED_ARRAY_SUPPORT)for(var o=0;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function p(e){if(t.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;return 0===n?0:d(e).length}function h(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function v(e,t,n,r){return h(d(t,e.length-n),e,n,r)}function y(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?f(e,t,n,r):"string"==typeof t?l(e,t,n):c(e,t)}var m=n(124);t.TYPED_ARRAY_SUPPORT=r();var g=t.TYPED_ARRAY_SUPPORT?2147483647:1073741823;t.TYPED_ARRAY_SUPPORT&&(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),t.prototype.write=function(e,t,n){void 0===t?(n=this.length,t=0):void 0===n&&"string"==typeof t?(n=this.length,t=0):isFinite(t)&&(t|=0,isFinite(n)?n|=0:n=void 0);var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return v(this,e,t,n)},t.prototype.slice=function(e,n){var r=this.length;e=~~e,n=void 0===n?r:~~n,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n=e.length&&(n=e.length),n||(n=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-n=0;--o)e[o+n]=this[o+r];else if(a<1e3||!t.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var o;if("number"==typeof e)for(o=n;o
* @license MIT
*/
"use strict";function r(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}function i(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(i()=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),a.alloc(+e)}function m(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(r)return W(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function _(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,i);if("number"==typeof t)return t&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,u=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,u/=2,l/=2,n/=2}var s;if(i){var f=-1;for(s=n;su&&(n=u-l),s=n;s>=0;s--){for(var c=!0,d=0;di&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+u<=n){var l,s,f,c;switch(u){case 1:o<128&&(a=o);break;case 2:l=e[i+1],128===(192&l)&&(c=(31&o)<<6|63&l,c>127&&(a=c));break;case 3:l=e[i+1],s=e[i+2],128===(192&l)&&128===(192&s)&&(c=(15&o)<<12|(63&l)<<6|63&s,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:l=e[i+1],s=e[i+2],f=e[i+3],128===(192&l)&&128===(192&s)&&128===(192&f)&&(c=(15&o)<<18|(63&l)<<12|(63&s)<<6|63&f,c>65535&&c<1114112&&(a=c))}}null===a?(a=65533,u=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=u}return R(r)}function R(e){var t=e.length;if(t<=ee)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function z(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function U(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function B(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return i||B(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),G.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,i){return i||B(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),G.write(e,t,n,r,52,8),n+8}function q(e){if(e=Y(e).replace(te,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function Y(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function K(e){return e<16?"0"+e.toString(16):e.toString(16)}function W(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function Q(e){return X.toByteArray(q(e))}function $(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function J(e){return e!==e}var X=n(121),G=n(122),Z=n(123);t.Buffer=a,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:r(),t.kMaxLength=i(),a.poolSize=8192,a._augment=function(e){return e.__proto__=a.prototype,e},a.from=function(e,t,n){return u(null,e,t,n)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(e,t,n){return s(null,e,t,n)},a.allocUnsafe=function(e){return f(null,e)},a.allocUnsafeSlow=function(e){return f(null,e)},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},a.prototype.compare=function(e,t,n,r,i){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,u=n-t,l=Math.min(o,u),s=this.slice(r,i),f=e.slice(t,n),c=0;ci)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return S(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ee=4096;a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e],i=1,o=0;++o=i&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),G.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),G.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),G.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),G.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;L(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+o]=e/a&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):U(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}var o=0,a=1,u=0;for(this[t]=255&e;++o>0)-u&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}var o=n-1,a=1,u=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===u&&0!==this[t+o+1]&&(u=1),this[t+o]=(e/a>>0)-u&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):U(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!a.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;o0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function r(e){return 3*e.length/4-n(e)}function i(e){var t,r,i,o,a,u=e.length;o=n(e),a=new f(3*u/4-o),r=o>0?u-4:u;var l=0;for(t=0;t>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=s[e.charCodeAt(t)]<<2|s[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=s[e.charCodeAt(t)]<<10|s[e.charCodeAt(t+1)]<<4|s[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}function o(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function a(e,t,n){for(var r,i=[],a=t;af?f:s+u));return 1===r?(t=e[n-1],i+=l[t>>2],i+=l[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=l[t>>10],i+=l[t>>4&63],i+=l[t<<2&63],i+="="),o.push(i),o.join("")}t.byteLength=r,t.toByteArray=i,t.fromByteArray=u;for(var l=[],s=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,p=c.length;d>1,f=-7,c=n?i-1:0,d=n?-1:1,p=e[t+c];for(c+=d,o=p&(1<<-f)-1,p>>=-f,f+=u;f>0;o=256*o+e[t+c],c+=d,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=r;f>0;a=256*a+e[t+c],c+=d,f-=8);if(0===o)o=1-s;else{if(o===l)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,r),o-=s}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,u,l,s=8*o-i-1,f=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+c>=1?d/l:d*Math.pow(2,1-c),t*l>=2&&(a++,l/=2),a+c>=f?(u=0,a=f):a+c>=1?(u=(t*l-1)*Math.pow(2,i),a+=c):(u=t*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&u,p+=h,u/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,s-=8);e[n+p-h]|=128*v}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){var n,r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return"undefined"!=typeof n},t.toSJIS=function(e){return n(e)}},function(e,t){function n(e){if("string"!=typeof e)throw new Error("Param is not a string");var n=e.toLowerCase();switch(n){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&"undefined"!=typeof e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return n(e)}catch(e){return r}}},function(e,t){function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){var t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=n},function(e,t,n){function r(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=i.alloc(e*e),this.reservedBit=i.alloc(e*e)}var i=n(119);r.prototype.set=function(e,t,n,r){var i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},r.prototype.get=function(e,t){return this.data[e*this.size+t]},r.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},r.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=r},function(e,t,n){var r=n(125).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,n=r(e),i=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7],a=1;a=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,n=0,i=0,o=0,a=null,u=null,l=0;l=5&&(n+=r.N1+(i-5)),a=f,i=1),f=e.get(s,l),f===u?o++:(o>=5&&(n+=r.N1+(o-5)),u=f,o=1)}i>=5&&(n+=r.N1+(i-5)),o>=5&&(n+=r.N1+(o-5))}return n},t.getPenaltyN2=function(e){for(var t=e.size,n=0,i=0;i=10&&(1488===i||93===i)&&n++,o=o<<1&2047|e.get(u,a),u>=10&&(1488===o||93===o)&&n++}return n*r.N3},t.getPenaltyN4=function(e){for(var t=0,n=e.data.length,i=0;i0){var l=i.alloc(this.degree);return r.copy(l,u),l}return r},e.exports=r},function(e,t,n){var r=n(119),i=n(135);t.mul=function(e,t){for(var n=r.alloc(e.length+t.length-1),o=0;o=0;){for(var o=n[0],a=0;a
* @license MIT
*/
"use strict";function r(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function i(t){if(t>$)throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=new Uint8Array(t);return Object.setPrototypeOf(n,e.prototype),n}function e(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return o(e,t,n)}function o(t,n,r){if("string"==typeof t)return s(t,n);if(ArrayBuffer.isView(t))return f(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(K(t,ArrayBuffer)||t&&K(t.buffer,ArrayBuffer))return c(t,n,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return e.from(i,n,r);var o=d(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return e.from(t[Symbol.toPrimitive]("string"),n,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function a(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e,t,n){return a(e),e<=0?i(e):void 0!==t?"string"==typeof n?i(e).fill(t,n):i(e).fill(t):i(e)}function l(e){return a(e),i(e<0?0:0|p(e))}function s(t,n){if("string"==typeof n&&""!==n||(n="utf8"),!e.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var r=0|v(t,n),o=i(r),a=o.write(t,n);return a!==r&&(o=o.slice(0,a)),o}function f(e){for(var t=e.length<0?0:0|p(e.length),n=i(t),r=0;r=$)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+$.toString(16)+" bytes");return 0|e}function h(t){return+t!=t&&(t=0),e.alloc(+t)}function v(t,n){if(e.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||K(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&0===r)return 0;for(var o=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(t).length;default:if(o)return i?-1:B(t).length;n=(""+n).toLowerCase(),o=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(t,n,r,i,o){if(0===t.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,W(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof n&&(n=e.from(n,i)),e.isBuffer(n))return 0===n.length?-1:b(t,n,r,i,o);if("number"==typeof n)return n&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,n,r):Uint8Array.prototype.lastIndexOf.call(t,n,r):b(t,[n],r,i,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,u=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,u/=2,l/=2,n/=2}var s;if(i){var f=-1;for(s=n;su&&(n=u-l),s=n;s>=0;s--){for(var c=!0,d=0;di&&(r=i)):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+u<=n){var l,s,f,c;switch(u){case 1:o<128&&(a=o);break;case 2:l=e[i+1],128===(192&l)&&(c=(31&o)<<6|63&l,c>127&&(a=c));break;case 3:l=e[i+1],s=e[i+2],128===(192&l)&&128===(192&s)&&(c=(15&o)<<12|(63&l)<<6|63&s,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:l=e[i+1],s=e[i+2],f=e[i+3],128===(192&l)&&128===(192&s)&&128===(192&f)&&(c=(15&o)<<18|(63&l)<<12|(63&s)<<6|63&f,c>65535&&c<1114112&&(a=c))}}null===a?(a=65533,u=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=u}return O(r)}function O(e){var t=e.length;if(t<=J)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function N(t,n,r,i,o,a){if(!e.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>o||nt.length)throw new RangeError("Index out of range")}function j(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,i){return t=+t,n>>>=0,i||j(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),V.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,i){return t=+t,n>>>=0,i||j(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),V.write(e,t,n,r,52,8),n+8}function U(e){if(e=e.split("=")[0],e=e.trim().replace(X,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function B(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function D(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function q(e){return H.toByteArray(U(e))}function Y(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function W(e){return e!==e}var H=n(121),V=n(122),Q="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=e,t.SlowBuffer=h,t.INSPECT_MAX_BYTES=50;var $=2147483647;t.kMaxLength=$,e.TYPED_ARRAY_SUPPORT=r(),e.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(e.prototype,"parent",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.buffer}}),Object.defineProperty(e.prototype,"offset",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&e[Symbol.species]===e&&Object.defineProperty(e,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),e.poolSize=8192,e.from=function(e,t,n){return o(e,t,n)},Object.setPrototypeOf(e.prototype,Uint8Array.prototype),Object.setPrototypeOf(e,Uint8Array),e.alloc=function(e,t,n){return u(e,t,n)},e.allocUnsafe=function(e){return l(e)},e.allocUnsafeSlow=function(e){return l(e)},e.isBuffer=function(t){return null!=t&&t._isBuffer===!0&&t!==e.prototype},e.compare=function(t,n){if(K(t,Uint8Array)&&(t=e.from(t,t.offset,t.byteLength)),K(n,Uint8Array)&&(n=e.from(n,n.offset,n.byteLength)),!e.isBuffer(t)||!e.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===n)return 0;for(var r=t.length,i=n.length,o=0,a=Math.min(r,i);on&&(e+=" ... "),""},Q&&(e.prototype[Q]=e.prototype.inspect),e.prototype.compare=function(t,n,r,i,o){if(K(t,Uint8Array)&&(t=e.from(t,t.offset,t.byteLength)),!e.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===n&&(n=0),void 0===r&&(r=t?t.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),n<0||r>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&n>=r)return 0;if(i>=o)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,i>>>=0,o>>>=0,this===t)return 0;for(var a=o-i,u=r-n,l=Math.min(a,u),s=this.slice(i,o),f=t.slice(n,r),c=0;c>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;e.prototype.slice=function(t,n){var r=this.length;t=~~t,n=void 0===n?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n>>=0,t>>>=0,n||A(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||A(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},e.prototype.readUInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),this[e]},e.prototype.readUInt16LE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]|this[e+1]<<8},e.prototype.readUInt16BE=function(e,t){return e>>>=0,t||A(e,2,this.length),this[e]<<8|this[e+1]},e.prototype.readUInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},e.prototype.readUInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},e.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);for(var r=this[e],i=1,o=0;++o=i&&(r-=Math.pow(2,8*t)),r},e.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||A(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},e.prototype.readInt8=function(e,t){return e>>>=0,t||A(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},e.prototype.readInt16LE=function(e,t){e>>>=0,t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},e.prototype.readInt16BE=function(e,t){e>>>=0,t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},e.prototype.readInt32LE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},e.prototype.readInt32BE=function(e,t){return e>>>=0,t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},e.prototype.readFloatLE=function(e,t){return e>>>=0,t||A(e,4,this.length),V.read(this,e,!0,23,4)},e.prototype.readFloatBE=function(e,t){return e>>>=0,t||A(e,4,this.length),V.read(this,e,!1,23,4)},e.prototype.readDoubleLE=function(e,t){return e>>>=0,t||A(e,8,this.length),V.read(this,e,!0,52,8)},e.prototype.readDoubleBE=function(e,t){return e>>>=0,t||A(e,8,this.length),V.read(this,e,!1,52,8)},e.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;N(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;N(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},e.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},e.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},e.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},e.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},e.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},e.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var o=0,a=1,u=0;for(this[t]=255&e;++o>0)-u&255;return t+n},e.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var o=n-1,a=1,u=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===u&&0!==this[t+o+1]&&(u=1),this[t+o]=(e/a>>0)-u&255;return t+n},e.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},e.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},e.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},e.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},e.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},e.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},e.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},e.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},e.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},e.prototype.copy=function(t,n,r,i){if(!e.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),n>=t.length&&(n=t.length),n||(n=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-n=0;--a)t[a+n]=this[a+r];else Uint8Array.prototype.set.call(t,this.subarray(r,i),n);return o},e.prototype.fill=function(t,n,r,i){if("string"==typeof t){if("string"==typeof n?(i=n,n=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!e.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===t.length){var o=t.charCodeAt(0);("utf8"===i&&o<128||"latin1"===i)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(n<0||this.length>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var a;if("number"==typeof t)for(a=n;a1)return a(e,i);if(0===e.length)return 1;n=e[0]}else n=e;return r(n.mode,n.getLength(),i)},t.getEncodedBits=function(e){if(!c.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;u.getBCHDigit(t)-h>=0;)t^=p<=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return r(e)}catch(e){return n}}},function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},function(e,t){var n="[0-9]+",r="[A-Z $%*+\\-./:]+",i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");var o="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+")(?:.|[\r\n]))+";t.KANJI=new RegExp(i,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp(r,"g");var a=new RegExp("^"+i+"$"),u=new RegExp("^"+n+"$"),l=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return a.test(e)},t.testNumeric=function(e){return u.test(e)},t.testAlphanumeric=function(e){return l.test(e)}},function(e,t,n){var r=n(125),i=1335,o=21522,a=r.getBCHDigit(i);t.getEncodedBits=function(e,t){for(var n=e.bit<<3|t,u=n<<10;r.getBCHDigit(u)-a>=0;)u^=i<=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function l(e){for(var t=[],n=0;n0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*i+1))},e.exports=r},function(e,t,n){function r(e){this.mode=i.ALPHANUMERIC,this.data=e}var i=n(138),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];r.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){var t;for(t=0;t+2<=this.data.length;t+=2){var n=45*o.indexOf(this.data[t]);n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=r},function(e,t,n){function r(e){this.mode=o.BYTE,this.data=i.from(e)}var i=n(119),o=n(138);r.getBitsLength=function(e){return 8*e},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(var t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=r},function(e,t,n){"use strict";var r={single_source_shortest_paths:function(e,t,n){var i={},o={};o[t]=0;var a=r.PriorityQueue.make();a.push(t,0);for(var u,l,s,f,c,d,p,h,v;!a.empty();){u=a.pop(),l=u.value,f=u.cost,c=e[l]||{};for(s in c)c.hasOwnProperty(s)&&(d=c[s],p=f+d,h=o[s],v="undefined"==typeof o[s],(v||h>p)&&(o[s]=p,a.push(s,p),i[s]=l))}if("undefined"!=typeof n&&"undefined"==typeof o[n]){var y=["Could not find a path from ",t," to ",n,"."].join("");throw new Error(y)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n,r=[],i=t;i;)r.push(i),n=e[i],i=e[i];return r.reverse(),r},find_path:function(e,t,n){var i=r.single_source_shortest_paths(e,t,n);return r.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var t,n=r.PriorityQueue,i={};e=e||{};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i.queue=[],i.sorter=e.sorter||n.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=r},function(e,t,n){function r(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}function i(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}var o=n(149);t.render=function(e,t,n){var a=n,u=t;"undefined"!=typeof a||t&&t.getContext||(a=t,t=void 0),t||(u=i()),a=o.getOptions(a);var l=o.getImageWidth(e.modules.size,a),s=u.getContext("2d"),f=s.createImageData(l,l);return o.qrToImageData(f.data,e,a),r(s,u,l),s.putImageData(f,0,0),u},t.renderToDataURL=function(e,n,r){var i=r;"undefined"!=typeof i||n&&n.getContext||(i=n,n=void 0),i||(i={});var o=t.render(e,n,i),a=i.type||"image/png",u=i.rendererOpts||{};return o.toDataURL(a,u.quality)}},function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");var n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t="undefined"==typeof e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){var r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){for(var i=n.modules.size,o=n.modules.data,a=t.getScale(i,r),u=Math.floor((i+2*r.margin)*a),l=r.margin*a,s=[r.color.light,r.color.dark],f=0;f=l&&c>=l&&f0&&s>0&&e[l-1]||(r+=a?i("M",s+n,.5+f+n):i("m",o,0),o=0,a=!1),s+1':"",c="',d='viewBox="0 0 '+s+" "+s+'"',p=i.width?'width="'+i.width+'" height="'+i.width+'" ':"",h='\n";return"function"==typeof n&&n(null,h),h}},function(e,t){e.exports={guide:"_2iIk",right:"_15Dj",left:"_I0Q",qr:"_111n",up:"_2fH-",down:"_1Pbk",space:"_3qj_"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i=n(41),o=r(i),a=n(105),u=r(a),l={37:"left",38:"rotate",39:"right",40:"down",32:"space",83:"s",82:"r",80:"p"},s=void 0,f=Object.keys(l).map(function(e){return parseInt(e,10)}),c=function(e){if(e.metaKey!==!0&&f.indexOf(e.keyCode)!==-1){var t=l[e.keyCode];t!==s&&(s=t,u.default[t].down(o.default))}},d=function(e){if(e.metaKey!==!0&&f.indexOf(e.keyCode)!==-1){var t=l[e.keyCode];t===s&&(s=""),u.default[t].up(o.default)}};document.addEventListener("keydown",c,!0),document.addEventListener("keyup",d,!0)}]);
//# sourceMappingURL=app-2.0.2.5.js.map