"},toObject:function(e){return i(this.callSuper("toObject",e),{path:this.path.map(function(e){return e.slice()}),top:this.top,left:this.left})},toDatalessObject:function(e){var t=this.toObject(["sourcePath"].concat(e));return t.sourcePath&&delete t.path,t},_toSVG:function(){var e=this._getOffsetTransform();return["\n"]},_getOffsetTransform:function(){var e=t.Object.NUM_FRACTION_DIGITS;return" translate("+s(-this.pathOffset.x,e)+", "+s(-this.pathOffset.y,e)+")"},toClipPathSVG:function(e){var t=this._getOffsetTransform();return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},complexity:function(){return this.path.length},_parsePath:function(){for(var e,t,r,n,i,o=[],a=[],s=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,c=0,p=this.path.length;cm)for(var g=1,y=i.length;g"},addWithUpdate:function(e){return this._restoreObjectsState(),t.util.resetObjectTransform(this),e&&(this._objects.push(e),e.group=this,e._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},removeWithUpdate:function(e){return this._restoreObjectsState(),t.util.resetObjectTransform(this),this.remove(e),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(e){this.dirty=!0,e.group=this,e._set("canvas",this.canvas)},_onObjectRemoved:function(e){this.dirty=!0,delete e.group},_set:function(e,r){var n=this._objects.length;if(this.useSetOnGroup)for(;n--;)this._objects[n].setOnGroup(e,r);if("canvas"===e)for(;n--;)this._objects[n]._set(e,r);t.Object.prototype._set.call(this,e,r)},toObject:function(e){var r=this.includeDefaultValues,n=this._objects.map(function(t){var n=t.includeDefaultValues;t.includeDefaultValues=r;var i=t.toObject(e);return t.includeDefaultValues=n,i}),i=t.Object.prototype.toObject.call(this,e);return i.objects=n,i},toDatalessObject:function(e){var r,n=this.sourcePath;if(n)r=n;else{var i=this.includeDefaultValues;r=this._objects.map(function(t){var r=t.includeDefaultValues;t.includeDefaultValues=i;var n=t.toDatalessObject(e);return t.includeDefaultValues=r,n})}var o=t.Object.prototype.toDatalessObject.call(this,e);return o.objects=r,o},render:function(e){this._transformDone=!0,this.callSuper("render",e),this._transformDone=!1},shouldCache:function(){var e=this.objectCaching&&(!this.group||this.needsItsOwnCache()||!this.group.isOnACache());if(this.ownCaching=e)for(var t=0,r=this._objects.length;t"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(e,t,r){e.save(),e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,this.callSuper("_renderControls",e,t),void 0===(r=r||{}).hasControls&&(r.hasControls=!1),void 0===r.hasRotatingPoint&&(r.hasRotatingPoint=!1),r.forActiveSelection=!0;for(var n=0,i=this._objects.length;n\n','\t\n',"\n"),o=' clip-path="url(#imageCrop_'+a+')" '}if(r.push("\t\n"),this.stroke||this.strokeDashArray){var s=this.fill;this.fill=null,e=["\t\n'],this.fill=s}return"fill"!==this.paintFirst?t.concat(e,r):t.concat(r,e)},getSrc:function(e){var t=e?this._element:this._originalElement;return t?t.toDataURL?t.toDataURL():t.src:this.src||""},setSrc:function(e,t,r){return O.util.loadImage(e,function(e){this.setElement(e,r),this._setWidthHeight(),t(this)},this,r&&r.crossOrigin),this},toString:function(){return'#'},applyResizeFilters:function(){var e=this.resizeFilter,t=this.minimumScaleTrigger,r=this.getTotalObjectScaling(),n=r.scaleX,i=r.scaleY,o=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!e||t=e;for(var s=["highp","mediump","lowp"],u=0;u<3;u++)if(r="precision "+s[u]+" float;\nvoid main(){}",n=(t=o).createShader(t.FRAGMENT_SHADER),t.shaderSource(n,r),t.compileShader(n),t.getShaderParameter(n,t.COMPILE_STATUS)){O.webGlPrecision=s[u];break}}return this.isSupported=a},(O.WebglFilterBackend=function(e){e&&e.tileSize&&(this.tileSize=e.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}).prototype={tileSize:2048,resources:{},setupGLContext:function(e,t){this.dispose(),this.createWebGLCanvas(e,t),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(e,t)},chooseFastestCopyGLTo2DMethod:function(e,t){var r,n=void 0!==window.performance;try{new ImageData(1,1),r=!0}catch(e){r=!1}var i="undefined"!=typeof ArrayBuffer,o="undefined"!=typeof Uint8ClampedArray;if(n&&r&&i&&o){var a,s,u,l=O.util.createCanvasElement(),c=new ArrayBuffer(e*t*4),p={imageBuffer:c,destinationWidth:e,destinationHeight:t,targetCanvas:l};l.width=e,l.height=t,a=window.performance.now(),I.call(p,this.gl,p),s=window.performance.now()-a,a=window.performance.now(),F.call(p,this.gl,p),u=window.performance.now()-a,this.copyGLTo2D=u 0.0) {\n"+this.fragmentSource[e]+"}\n}"},retrieveShader:function(e){var t,r=this.type+"_"+this.mode;return e.programCache.hasOwnProperty(r)||(t=this.buildSource(this.mode),e.programCache[r]=this.createProgram(e.context,t)),e.programCache[r]},applyTo2d:function(e){var t,n,i,o,a,s,u,l=e.imageData.data,c=l.length,p=1-this.alpha;t=(u=new r.Color(this.color).getSource())[0]*this.alpha,n=u[1]*this.alpha,i=u[2]*this.alpha;for(var h=0;h'},_getCacheCanvasDimensions:function(){var e=this.callSuper("_getCacheCanvasDimensions"),t=this.fontSize;return e.width+=t*e.zoomX,e.height+=t*e.zoomY,e},_render:function(e){this._setTextStyles(e),this._renderTextLinesBackground(e),this._renderTextDecoration(e,"underline"),this._renderText(e),this._renderTextDecoration(e,"overline"),this._renderTextDecoration(e,"linethrough")},_renderText:function(e){"stroke"===this.paintFirst?(this._renderTextStroke(e),this._renderTextFill(e)):(this._renderTextFill(e),this._renderTextStroke(e))},_setTextStyles:function(e,t,r){e.textBaseline="alphabetic",e.font=this._getFontDeclaration(t,r)},calcTextWidth:function(){for(var e=this.getLineWidth(0),t=1,r=this._textLines.length;tthis.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=t):(this.selectionStart=t,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===r&&this.selectionEnd===n||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(e,t,r){var n=r.slice(0,e),i=O.util.string.graphemeSplit(n).length;if(e===t)return{selectionStart:i,selectionEnd:i};var o=r.slice(e,t);return{selectionStart:i,selectionEnd:i+O.util.string.graphemeSplit(o).length}},fromGraphemeToStringSelection:function(e,t,r){var n=r.slice(0,e).join("").length;return e===t?{selectionStart:n,selectionEnd:n}:{selectionStart:n,selectionEnd:n+r.slice(e,t).join("").length}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var e=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=e.selectionStart,this.hiddenTextarea.selectionEnd=e.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var e=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=e.selectionEnd,this.inCompositionMode||(this.selectionStart=e.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var e=this._calcTextareaPosition();this.hiddenTextarea.style.left=e.left,this.hiddenTextarea.style.top=e.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var e=this.inCompositionMode?this.compositionStart:this.selectionStart,t=this._getCursorBoundaries(e),r=this.get2DCursorLocation(e),n=r.lineIndex,i=r.charIndex,o=this.getValueOfPropertyAt(n,i,"fontSize")*this.lineHeight,a=t.leftOffset,s=this.calcTransformMatrix(),u={x:t.left+a,y:t.top+t.topOffset+o},l=this.canvas.upperCanvasEl,c=l.width,p=l.height,h=c-o,d=p-o,f=l.clientWidth/c,m=l.clientHeight/p;return u=O.util.transformPoint(u,s),(u=O.util.transformPoint(u,this.canvas.viewportTransform)).x*=f,u.y*=m,u.x<0&&(u.x=0),u.x>h&&(u.x=h),u.y<0&&(u.y=0),u.y>d&&(u.y=d),u.x+=this.canvas._offset.left,u.y+=this.canvas._offset.top,{left:u.x+"px",top:u.y+"px",fontSize:o+"px",charHeight:o}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var e=this._textBeforeEdit!==this.text;return this.selected=!1,this.isEditing=!1,this.selectable=!0,this.selectionEnd=this.selectionStart,this.hiddenTextarea&&(this.hiddenTextarea.blur&&this.hiddenTextarea.blur(),this.canvas&&this.hiddenTextarea.parentNode.removeChild(this.hiddenTextarea),this.hiddenTextarea=null),this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),e&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),e&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var e in this.styles)this._textLines[e]||delete this.styles[e]},removeStyleFromTo:function(e,t){var r,n,i=this.get2DCursorLocation(e,!0),o=this.get2DCursorLocation(t,!0),a=i.lineIndex,s=i.charIndex,u=o.lineIndex,l=o.charIndex;if(a!==u){if(this.styles[a])for(r=s;re?this.selectionStart=e:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>e?this.selectionEnd=e:this.selectionEnd<0&&(this.selectionEnd=0)}}),O.util.object.extend(O.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(e){if(this.canvas){this.__newClickTime=+new Date;var t=e.pointer;this.isTripleClick(t)&&(this.fire("tripleclick",e),this._stopEvent(e.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=t,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(e){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===e.x&&this.__lastPointer.y===e.y},_stopEvent:function(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},initClicks:function(){this.on("mousedblclick",function(e){this.selectWord(this.getSelectionStartFromPointer(e.e))}),this.on("tripleclick",function(e){this.selectLine(this.getSelectionStartFromPointer(e.e))})},_mouseDownHandler:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.__isMousedown=!0,this.selected&&this.setCursorByClick(e.e),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||this===this.canvas._activeObject&&(this.selected=!0)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(e){if(this.__isMousedown=!1,!(!this.editable||this.group||e.transform&&e.transform.actionPerformed||e.e.button&&1!==e.e.button)){if(this.canvas){var t=this.canvas._activeObject;if(t&&t!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(e.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(e){var t=this.getSelectionStartFromPointer(e),r=this.selectionStart,n=this.selectionEnd;e.shiftKey?this.setSelectionStartEndWithShift(r,n,t):(this.selectionStart=t,this.selectionEnd=t),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(e){for(var t=this.getLocalPointer(e),r=0,n=0,i=0,o=0,a=0,s=0,u=this._textLines.length;sthis._text.length&&(s=this._text.length),s}}),O.util.object.extend(O.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=O.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var e=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+e.top+"; left: "+e.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding\uff70top: "+e.fontSize+";",O.document.body.appendChild(this.hiddenTextarea),O.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),O.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),O.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),O.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),O.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),O.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),O.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),O.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),O.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(O.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(e){if(this.isEditing&&!this.inCompositionMode){if(e.keyCode in this.keysMap)this[this.keysMap[e.keyCode]](e);else{if(!(e.keyCode in this.ctrlKeysMapDown&&(e.ctrlKey||e.metaKey)))return;this[this.ctrlKeysMapDown[e.keyCode]](e)}e.stopImmediatePropagation(),e.preventDefault(),33<=e.keyCode&&e.keyCode<=40?(this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(e){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:e.keyCode in this.ctrlKeysMapUp&&(e.ctrlKey||e.metaKey)&&(this[this.ctrlKeysMapUp[e.keyCode]](e),e.stopImmediatePropagation(),e.preventDefault(),this.canvas&&this.canvas.requestRenderAll())},onInput:function(e){var t=this.fromPaste;if(this.fromPaste=!1,e&&e.stopPropagation(),this.isEditing){var r,n,i=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,o=this._text.length,a=i.length,s=a-o;if(""===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire("changed"),void(this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll()));var u=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),l=this.selectionStart>u.selectionStart;this.selectionStart!==this.selectionEnd?(r=this._text.slice(this.selectionStart,this.selectionEnd),s+=this.selectionEnd-this.selectionStart):a=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",e)},moveCursorUp:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",e)},_moveCursorUpOrDown:function(e,t){var r=this["get"+e+"CursorOffset"](t,"right"===this._selectionDirection);t.shiftKey?this.moveCursorWithShift(r):this.moveCursorWithoutShift(r),0!==r&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(e){var t="left"===this._selectionDirection?this.selectionStart+e:this.selectionEnd+e;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,t),0!==e},moveCursorWithoutShift:function(e){return e<0?(this.selectionStart+=e,this.selectionEnd=this.selectionStart):(this.selectionEnd+=e,this.selectionStart=this.selectionEnd),0!==e},moveCursorLeft:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",e)},_move:function(e,t,r){var n;if(e.altKey)n=this["findWordBoundary"+r](this[t]);else{if(!e.metaKey&&35!==e.keyCode&&36!==e.keyCode)return this[t]+="Left"===r?-1:1,!0;n=this["findLineBoundary"+r](this[t])}if(void 0!==typeof n&&this[t]!==n)return this[t]=n,!0},_moveLeft:function(e,t){return this._move(e,t,"Left")},_moveRight:function(e,t){return this._move(e,t,"Right")},moveCursorLeftWithoutShift:function(e){var t=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(t=this._moveLeft(e,"selectionStart")),this.selectionEnd=this.selectionStart,t},moveCursorLeftWithShift:function(e){return"right"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveLeft(e,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection="left",this._moveLeft(e,"selectionStart")):void 0},moveCursorRight:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",e)},_moveCursorLeftOrRight:function(e,t){var r="moveCursor"+e+"With";this._currentCursorOpacity=1,t.shiftKey?r+="Shift":r+="outShift",this[r](t)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(e){return"left"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveRight(e,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection="right",this._moveRight(e,"selectionEnd")):void 0},moveCursorRightWithoutShift:function(e){var t=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(t=this._moveRight(e,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,t},removeChars:function(e,t){void 0===t&&(t=e+1),this.removeStyleFromTo(e,t),this._text.splice(e,t-e),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(e,t,r,n){void 0===n&&(n=r),r",e.textSpans.join(""),"\n"]},_getSVGTextAndBg:function(e,t){var r,n=[],i=[],o=e;this._setSVGBg(i);for(var a=0,s=this._textLines.length;a",O.util.string.escapeXml(e),""].join("")},_setSVGTextLineText:function(e,t,r,n){var i,o,a,s,u,l=this.getHeightOfLine(t),c=-1!==this.textAlign.indexOf("justify"),p="",h=0,d=this._textLines[t];n+=l*(1-this._fontSizeFraction)/this.lineHeight;for(var f=0,m=d.length-1;f<=m;f++)u=f===m||this.charSpacing,p+=d[f],a=this.__charBounds[t][f],0===h?(r+=a.kernedWidth-a.width,h+=a.width):h+=a.kernedWidth,c&&!u&&this._reSpaceAndTab.test(d[f])&&(u=!0),u||(i=i||this.getCompleteStyleDeclaration(t,f),o=this.getCompleteStyleDeclaration(t,f+1),u=this._hasStyleChangedForSvg(i,o)),u&&(s=this._getStyleDeclaration(t,f)||{},e.push(this._createTextCharSpan(p,s,r,n)),p="",i=o,r+=h,h=0)},_pushTextBgRect:function(e,t,r,n,i,o){var a=O.Object.NUM_FRACTION_DIGITS;e.push("\t\t\n')},_setSVGTextLineBg:function(e,t,r,n){for(var i,o,a=this._textLines[t],s=this.getHeightOfLine(t)/this.lineHeight,u=0,l=0,c=this.getValueOfPropertyAt(t,0,"textBackgroundColor"),p=0,h=a.length;pthis.width&&this._set("width",this.dynamicMinWidth),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(e){for(var t=0,r=0,n=0,i={},o=0;othis.dynamicMinWidth&&(this.dynamicMinWidth=d-m+i),a},isEndOfWrapping:function(e){return!this._styleMap[e+1]||this._styleMap[e+1].line!==this._styleMap[e].line},_splitTextIntoLines:function(e){for(var r=t.Text.prototype._splitTextIntoLines.call(this,e),n=this._wrapText(r.lines,this.width),i=new Array(n.length),o=0;o=s.getMinWidth()?(s.set("width",l),!0):void 0},O.util.object.extend(O.Textbox.prototype,{_removeExtraneousStyles:function(){for(var e in this._styleMap)this._textLines[e]||delete this.styles[this._styleMap[e].line]}})}).call(this,r(19).Buffer)},function(e,t,r){"use strict";e.exports=r(15)},function(e,t,r){var n=r(9),i=r(10),o=r(11);e.exports=function(e,t){return n(e)||i(e,t)||o()}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(t){return"function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?e.exports=n=function(e){return r(e)}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(t,n)}e.exports=r},function(e,t,r){"use strict";var n=r(16),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,p=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.concurrent_mode"):60111,d=i?Symbol.for("react.forward_ref"):60112,f=i?Symbol.for("react.suspense"):60113,m=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t=arguments.length-1,r="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=0;n=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(u.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 r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return M(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(e).length;default:if(n)return M(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s/=a=2,u/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;o>>10&1023|55296),c=56320|1023&c),n.push(c),i+=p}return function(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);for(var r="",n=0;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,r);case"utf8":case"utf-8":return x(this,t,r);case"ascii":return _(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return w(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return 0r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(i<=n&&r<=t)return 0;if(i<=n)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(n,i),c=e.slice(t,r),p=0;pthis.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o,a,s,u,l,c,p=!1;;)switch(n){case"hex":return y(this,e,t,r);case"utf8":case"utf-8":return l=t,c=r,R(M(e,this.length-l),this,l,c);case"ascii":return b(this,e,t,r);case"latin1":case"binary":return b(this,e,t,r);case"base64":return this,s=t,u=r,R(B(e),this,s,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o=t,a=r,R(function(e,t){for(var r,n,i,o=[],a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(e,this.length-o),this,o,a);default:if(p)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function _(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;ie.length)throw new RangeError("Index out of range")}function C(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function O(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function I(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F(e,t,r,n,o){return o||I(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function j(e,t,r,n,o){return o||I(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):n>>8):C(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);A(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);A(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return F(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return F(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return j(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return j(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),0=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function B(e){return n.toByteArray(function(e){var t;if((e=(t=e,t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(P,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function R(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(20))},function(XLa,YLa){var ZLa;ZLa=function(){return this}();try{ZLa=ZLa||Function("return this")()||eval("this")}catch(t){"object"==typeof window&&(ZLa=window)}XLa.exports=ZLa},function(e,t,r){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){for(var t,r=l(e),n=r[0],a=r[1],s=new o(3*(n+(h=a))/4-h),u=0,c=0>16&255,s[u++]=t>>8&255,s[u++]=255&t;var h;return 2===a&&(t=i[e.charCodeAt(p)]<<2|i[e.charCodeAt(p+1)]>>4,s[u++]=255&t),1===a&&(t=i[e.charCodeAt(p)]<<10|i[e.charCodeAt(p+1)]<<4|i[e.charCodeAt(p+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t),s},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,c=-7,p=r?i-1:0,h=r?-1:1,d=e[t+p];for(p+=h,o=d&(1<<-c)-1,d>>=-c,c+=s;0>=-c,c+=n;0>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),2<=(t+=1<=a+p?h/u:h*Math.pow(2,1-p))*u&&(a++,u/=2),c<=a+p?(s=0,a=c):1<=a+p?(s=(t*u-1)*Math.pow(2,i),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),a=0));8<=i;e[r+d]=255&s,d+=f,s/=256,i-=8);for(a=a<this.undoLimit&&this.undoList.shift(),this.current=e}finally{this.print()}}},{key:"undo",value:function(){try{return this.current&&(this.redoList.push(this.current),this.redoList.length>this.undoLimit&&this.redoList.shift(),0===this.undoList.length&&(this.current=null)),0 "+this.current+" <- ",this.redoList.slice(0).reverse())}}]),e}(),w=function(){function e(t){a()(this,e),this._canvas=t}return y()(e,[{key:"configureCanvas",value:function(e){}},{key:"doMouseUp",value:function(e){}},{key:"doMouseDown",value:function(e){}},{key:"doMouseMove",value:function(e){}},{key:"doMouseOut",value:function(e){}}]),e}(),x=function(e){function t(){return a()(this,t),u()(this,c()(t).apply(this,arguments))}return h()(t,e),y()(t,[{key:"configureCanvas",value:function(e){var t=this._canvas;t.isDrawingMode=!1,t.selection=!0,t.forEachObject(function(e){e.selectable=e.evented=!0})}}]),t}(w),E=function(e){function t(){return a()(this,t),u()(this,c()(t).apply(this,arguments))}return h()(t,e),y()(t,[{key:"configureCanvas",value:function(e){this._canvas.isDrawingMode=!0,this._canvas.freeDrawingBrush.width=e.lineWidth,this._canvas.freeDrawingBrush.color=e.lineColor}}]),t}(w),_=r(6).fabric,T=function(e){function t(){return a()(this,t),u()(this,c()(t).apply(this,arguments))}return h()(t,e),y()(t,[{key:"configureCanvas",value:function(e){var t=this._canvas;t.isDrawingMode=t.selection=!1,t.forEachObject(function(e){return e.selectable=e.evented=!1}),this._width=e.lineWidth,this._color=e.lineColor}},{key:"doMouseDown",value:function(e){this.isDown=!0;var t=this._canvas,r=t.getPointer(e.e),n=[r.x,r.y,r.x,r.y];this.line=new _.Line(n,{strokeWidth:this._width,fill:this._color,stroke:this._color,originX:"center",originY:"center",selectable:!1,evented:!1}),t.add(this.line)}},{key:"doMouseMove",value:function(e){if(this.isDown){var t=this._canvas,r=t.getPointer(e.e);this.line.set({x2:r.x,y2:r.y}),this.line.setCoords(),t.renderAll()}}},{key:"doMouseUp",value:function(e){this.isDown=!1}},{key:"doMouseOut",value:function(e){this.isDown=!1}}]),t}(w),S=r(6).fabric,D=function(e){function t(){return a()(this,t),u()(this,c()(t).apply(this,arguments))}return h()(t,e),y()(t,[{key:"configureCanvas",value:function(e){var t=this._canvas;t.isDrawingMode=t.selection=!1,t.forEachObject(function(e){return e.selectable=e.evented=!1}),this._width=e.lineWidth,this._color=e.lineColor,this._fill=e.fillColor}},{key:"doMouseDown",value:function(e){var t=this._canvas;this.isDown=!0;var r=t.getPointer(e.e);this.startX=r.x,this.startY=r.y,this.rect=new S.Rect({left:this.startX,top:this.startY,originX:"left",originY:"top",width:r.x-this.startX,height:r.y-this.startY,stroke:this._color,strokeWidth:this._width,fill:this._fill,transparentCorners:!1,selectable:!1,evented:!1,angle:0}),t.add(this.rect)}},{key:"doMouseMove",value:function(e){if(this.isDown){var t=this._canvas,r=t.getPointer(e.e);this.startX>r.x&&this.rect.set({left:Math.abs(r.x)}),this.startY>r.y&&this.rect.set({top:Math.abs(r.y)}),this.rect.set({width:Math.abs(this.startX-r.x)}),this.rect.set({height:Math.abs(this.startY-r.y)}),this.rect.setCoords(),t.renderAll()}}},{key:"doMouseUp",value:function(e){this.isDown=!1}}]),t}(w),k=r(6).fabric,A=function(e){function t(){return a()(this,t),u()(this,c()(t).apply(this,arguments))}return h()(t,e),y()(t,[{key:"configureCanvas",value:function(e){var t=this._canvas;t.isDrawingMode=t.selection=!1,t.forEachObject(function(e){return e.selectable=e.evented=!1}),this._width=e.lineWidth,this._color=e.lineColor,this._fill=e.fillColor}},{key:"doMouseDown",value:function(e){var t=this._canvas;this.isDown=!0;var r=t.getPointer(e.e),n=[r.x,r.y];this.startX=n[0],this.startY=n[1],this.circle=new k.Circle({left:this.startX,top:this.startY,originX:"left",originY:"center",strokeWidth:this._width,stroke:this._color,fill:this._fill,selectable:!1,evented:!1,radius:1}),t.add(this.circle)}},{key:"doMouseMove",value:function(e){if(this.isDown){var t,r,n,i,o=this._canvas,a=o.getPointer(e.e);this.circle.set({radius:(t={x:this.startX,y:this.startY},r={x:a.x,y:a.y},n=r.x-t.x,i=r.y-t.y,Math.sqrt(n*n+i*i)/2),angle:180*Math.atan2(a.y-this.startY,a.x-this.startX)/Math.PI}),this.circle.setCoords(),o.renderAll()}}},{key:"doMouseUp",value:function(e){this.isDown=!1}}]),t}(w),C=(r(6).fabric,function(e){function t(){return a()(this,t),u()(this,c()(t).apply(this,arguments))}return h()(t,e),y()(t,[{key:"configureCanvas",value:function(e){var t=this._canvas;t.isDrawingMode=t.selection=!1,t.forEachObject(function(e){return e.selectable=e.evented=!1}),t.defaultCursor="move"}},{key:"doMouseDown",value:function(e){var t=this._canvas;this.isDown=!0;var r=t.getPointer(e.e);this.startX=r.x,this.startY=r.y}},{key:"doMouseMove",value:function(e){if(this.isDown){var t=this._canvas,r=t.getPointer(e.e);t.relativePan({x:r.x-this.startX,y:r.y-this.startY}),t.renderAll()}}},{key:"doMouseUp",value:function(e){this.isDown=!1}}]),t}(w)),O={Circle:"circle",Line:"line",Pencil:"pencil",Rectangle:"rectangle",Select:"select",Pan:"pan"},I=r(6).fabric,F=function(e){function t(){var e,r;a()(this,t);for(var n=arguments.length,o=new Array(n),s=0;s=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,l=t;return u+=(l=l+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,l){var c=0,p=t;return c+=(p=p+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,l){return t+n+o+s+l>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){r(36);var n=r(34);function i(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,i),this.name="FingerprintFormatError",this.fingerprint=e,this.format=t,this.message="Fingerprint format is not supported, or is invalid: ",void 0!==e&&(this.message+=" fingerprint = "+e),void 0!==t&&(this.message+=" format = "+t)}function o(e){Error.captureStackTrace&&Error.captureStackTrace(this,o),this.name="InvalidAlgorithmError",this.algorithm=e,this.message='Algorithm "'+e+'" is not supported'}function a(e,t,r){Error.captureStackTrace&&Error.captureStackTrace(this,a),this.name="KeyParseError",this.format=t,this.keyName=e,this.innerErr=r,this.message="Failed to parse "+e+" as a valid "+t+" format key: "+r.message}function s(e,t,r){Error.captureStackTrace&&Error.captureStackTrace(this,s),this.name="SignatureParseError",this.type=e,this.format=t,this.innerErr=r,this.message="Failed to parse the given data as a "+e+" signature in "+t+" format: "+r.message}function u(e,t,r){Error.captureStackTrace&&Error.captureStackTrace(this,u),this.name="CertificateParseError",this.format=t,this.certName=e,this.innerErr=r,this.message="Failed to parse "+e+" as a valid "+t+" format certificate: "+r.message}function l(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,l),this.name="KeyEncryptedError",this.format=t,this.keyName=e,this.message="The "+t+" format key "+e+" is encrypted (password-protected), and no passphrase was provided in `options`"}n.inherits(i,Error),n.inherits(o,Error),n.inherits(a,Error),n.inherits(s,Error),n.inherits(u,Error),n.inherits(l,Error),e.exports={FingerprintFormatError:i,InvalidAlgorithmError:o,KeyParseError:a,SignatureParseError:s,KeyEncryptedError:l,CertificateParseError:u}},function(e,t,r){"use strict";(function(t){var n=r(132),i=r(529),o=r(530),a=r(266),s=a.percentEncode,u=a.percentDecode,l={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},c=Symbol("failure");function p(e){return n.ucs2.decode(e).length}function h(e,t){var r=e[t];return isNaN(r)?void 0:String.fromCodePoint(r)}function d(e){return"."===e||"%2e"===e.toLowerCase()}function f(e){return 2===e.length&&o.isASCIIAlpha(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function m(e){return void 0!==l[e]}function v(e){return m(e.scheme)}function g(e){return!m(e.scheme)}function y(e){return l[e]}function b(e){return e<=31||e>126}var w=new Set([47,58,59,61,64,91,92,93,94,124]);function x(e){return S(e)||w.has(e)}var E=new Set([32,34,60,62,96]);function _(e){return b(e)||E.has(e)}var T=new Set([35,63,123,125]);function S(e){return _(e)||T.has(e)}function D(e,r){var n=String.fromCodePoint(e);return r(e)?function(e){for(var r=t.from(e),n="",i=0;i=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),t=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),t=8),""===e)return 0;var r=/[^0-7]/;return 10===t&&(r=/[^0-9]/),16===t&&(r=/[^0-9A-Fa-f]/),r.test(e)?c:parseInt(e,t)}function A(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("["===e[0])return"]"!==e[e.length-1]?c:function(e){var t=[0,0,0,0,0,0,0,0],r=0,i=null,a=0;if(58===(e=n.ucs2.decode(e))[a]){if(58!==e[a+1])return c;a+=2,i=++r}for(;a6)return c;for(var l=0;void 0!==e[a];){var p=null;if(l>0){if(!(46===e[a]&&l<4))return c;++a}if(!o.isASCIIDigit(e[a]))return c;for(;o.isASCIIDigit(e[a]);){var d=parseInt(h(e,a));if(null===p)p=d;else{if(0===p)return c;p=10*p+d}if(p>255)return c;++a}t[r]=256*t[r]+p,2!==++l&&4!==l||++r}if(4!==l)return c;break}if(58===e[a]){if(void 0===e[++a])return c}else if(void 0!==e[a])return c;t[r]=s,++r}else{if(null!==i)return c;++a,i=++r}}if(null!==i){var f=r-i;for(r=7;0!==r&&f>0;){var m=t[i+f-1];t[i+f-1]=t[r],t[r]=m,--r,--f}}else if(null===i&&8!==r)return c;return t}(e.substring(1,e.length-1));if(r)return function(e){if(t=e,-1!==t.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return c;var t;for(var r="",i=n.ucs2.decode(e),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=i.toASCII(e,{checkBidi:!0,checkHyphens:!1,checkJoiners:!0,useSTD3ASCIIRules:t,verifyDNSLength:t});if(null===r)return c;return r}(u(t.from(e)).toString());if(a===c)return c;if(-1!==a.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/))return c;var s=function(e){var t=e.split(".");if(""===t[t.length-1]&&t.length>1&&t.pop(),t.length>4)return e;var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;if(""===u)return e;var l=k(u);if(l===c)return e;r.push(l)}}catch(v){i=!0,o=v}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}for(var p=0;p255)return c;if(r[r.length-1]>=Math.pow(256,5-r.length))return c;for(var h=r.pop(),d=0,f=0,m=r;fr&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),{idx:t,len:r}}(e).idx,n=!1,i=0;i<=7;++i)n&&0===e[i]||(n&&(n=!1),r!==i?(t+=e[i].toString(16),7!==i&&(t+=":")):(t+=0===i?"::":":",n=!0));return t}(e)+"]":e}function O(e){var t,r=e.path;0!==r.length&&("file"===e.scheme&&1===r.length&&(t=r[0],/^[A-Za-z]:$/.test(t))||r.pop())}function I(e){return""!==e.username||""!==e.password}function F(e,t,r,i,o){if(this.pointer=0,this.input=e,this.base=t||null,this.encodingOverride=r||"utf-8",this.stateOverride=o,this.url=i,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};var a=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}(this.input);a!==this.input&&(this.parseError=!0),this.input=a}var s=function(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}(this.input);for(s!==this.input&&(this.parseError=!0),this.input=s,this.state=o||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=n.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){var u=this.input[this.pointer],l=isNaN(u)?void 0:String.fromCodePoint(u),p=this["parse "+this.state](u,l);if(!p)break;if(p===c){this.failure=!0;break}}}F.prototype["parse scheme start"]=function(e,t){if(o.isASCIIAlpha(e))this.buffer+=t.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,c;this.state="no scheme",--this.pointer}return!0},F.prototype["parse scheme"]=function(e,t){if(o.isASCIIAlphanumeric(e)||43===e||45===e||46===e)this.buffer+=t.toLowerCase();else if(58===e){if(this.stateOverride){if(v(this.url)&&!m(this.buffer))return!1;if(!v(this.url)&&m(this.buffer))return!1;if((I(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&(""===this.url.host||null===this.url.host))return!1}if(this.url.scheme=this.buffer,this.stateOverride)return this.url.port===y(this.url.scheme)&&(this.url.port=null),!1;this.buffer="","file"===this.url.scheme?(47===this.input[this.pointer+1]&&47===this.input[this.pointer+2]||(this.parseError=!0),this.state="file"):v(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":v(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,c;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},F.prototype["parse no scheme"]=function(e){return null===this.base||this.base.cannotBeABaseURL&&35!==e?c:(this.base.cannotBeABaseURL&&35===e?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},F.prototype["parse special relative or authority"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},F.prototype["parse path or authority"]=function(e){return 47===e?this.state="authority":(this.state="path",--this.pointer),!0},F.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,isNaN(e)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===e?this.state="relative slash":63===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):v(this.url)&&92===e?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},F.prototype["parse relative slash"]=function(e){return!v(this.url)||47!==e&&92!==e?47===e?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(92===e&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},F.prototype["parse special authority slashes"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},F.prototype["parse special authority ignore slashes"]=function(e){return 47!==e&&92!==e?(this.state="authority",--this.pointer):this.parseError=!0,!0},F.prototype["parse authority"]=function(e,t){if(64===e){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;for(var r=p(this.buffer),n=0;nMath.pow(2,16)-1)return this.parseError=!0,c;this.url.port=r===y(this.url.scheme)?null:r,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};var j=new Set([47,92,63,35]);function P(e,t){var r,n,i=e.length-t;return i>=2&&(r=e[t],n=e[t+1],o.isASCIIAlpha(r)&&(58===n||124===n))&&(2===i||j.has(e[t+2]))}F.prototype["parse file"]=function(e){return this.url.scheme="file",47===e||92===e?(92===e&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(e)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(P(this.input,this.pointer)?this.parseError=!0:(this.url.host=this.base.host,this.url.path=this.base.path.slice(),O(this.url)),this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},F.prototype["parse file slash"]=function(e){var t;return 47===e||92===e?(92===e&&(this.parseError=!0),this.state="file host"):(null===this.base||"file"!==this.base.scheme||P(this.input,this.pointer)||(2===(t=this.base.path[0]).length&&o.isASCIIAlpha(t.codePointAt(0))&&":"===t[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},F.prototype["parse file host"]=function(e,t){if(isNaN(e)||47===e||92===e||63===e||35===e)if(--this.pointer,!this.stateOverride&&f(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{var r=A(this.buffer,g(this.url));if(r===c)return c;if("localhost"===r&&(r=""),this.url.host=r,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=t;return!0},F.prototype["parse path start"]=function(e){return v(this.url)?(92===e&&(this.parseError=!0),this.state="path",47!==e&&92!==e&&--this.pointer):this.stateOverride||63!==e?this.stateOverride||35!==e?void 0!==e&&(this.state="path",47!==e&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},F.prototype["parse path"]=function(e){if(isNaN(e)||47===e||v(this.url)&&92===e||!this.stateOverride&&(63===e||35===e)){if(v(this.url)&&92===e&&(this.parseError=!0),".."===(t=(t=this.buffer).toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t?(O(this.url),47===e||v(this.url)&&92===e||this.url.path.push("")):!d(this.buffer)||47===e||v(this.url)&&92===e?d(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&f(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="","file"===this.url.scheme&&(void 0===e||63===e||35===e))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===e&&(this.url.query="",this.state="query"),35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||o.isASCIIHex(this.input[this.pointer+1])&&o.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=D(e,S);var t;return!0},F.prototype["parse cannot-be-a-base-URL path"]=function(e){return 63===e?(this.url.query="",this.state="query"):35===e?(this.url.fragment="",this.state="fragment"):(isNaN(e)||37===e||(this.parseError=!0),37!==e||o.isASCIIHex(this.input[this.pointer+1])&&o.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path[0]=this.url.path[0]+D(e,b))),!0},F.prototype["parse query"]=function(e,r){if(isNaN(e)||!this.stateOverride&&35===e){v(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");for(var n=t.from(this.buffer),i=0;i126||34===n[i]||35===n[i]||60===n[i]||62===n[i]||39===n[i]&&v(this.url)?this.url.query+=s(n[i]):this.url.query+=String.fromCodePoint(n[i]);this.buffer="",35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||o.isASCIIHex(this.input[this.pointer+1])&&o.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=r;return!0},F.prototype["parse fragment"]=function(e){return isNaN(e)||(0===e?this.parseError=!0:(37!==e||o.isASCIIHex(this.input[this.pointer+1])&&o.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=D(e,_))),!0},e.exports.serializeURL=function(e,t){var r=e.scheme+":";if(null!==e.host?(r+="//",""===e.username&&""===e.password||(r+=e.username,""!==e.password&&(r+=":"+e.password),r+="@"),r+=C(e.host),null!==e.port&&(r+=":"+e.port)):null===e.host&&"file"===e.scheme&&(r+="//"),e.cannotBeABaseURL)r+=e.path[0];else{var n=!0,i=!1,o=void 0;try{for(var a,s=e.path[Symbol.iterator]();!(n=(a=s.next()).done);n=!0)r+="/"+a.value}catch(u){i=!0,o=u}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}}return null!==e.query&&(r+="?"+e.query),t||null===e.fragment||(r+="#"+e.fragment),r},e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(t.path[0]))}catch(r){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(e){var t=e.scheme+"://";return t+=C(e.host),null!==e.port&&(t+=":"+e.port),t}({scheme:t.scheme,host:t.host,port:t.port});case"file":return"file://";default:return"null"}},e.exports.basicURLParse=function(e,t){void 0===t&&(t={});var r=new F(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);return r.failure?null:r.url},e.exports.setTheUsername=function(e,t){e.username="";for(var r=n.ucs2.decode(t),i=0;i126}var w=new Set([47,58,59,61,64,91,92,93,94,124]);function x(e){return S(e)||w.has(e)}var E=new Set([32,34,60,62,96]);function _(e){return b(e)||E.has(e)}var T=new Set([35,63,123,125]);function S(e){return _(e)||T.has(e)}function D(e,r){var n=String.fromCodePoint(e);return r(e)?function(e){for(var r=t.from(e),n="",i=0;i=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),t=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),t=8),""===e)return 0;var r=/[^0-7]/;return 10===t&&(r=/[^0-9]/),16===t&&(r=/[^0-9A-Fa-f]/),r.test(e)?c:parseInt(e,t)}function A(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("["===e[0])return"]"!==e[e.length-1]?c:function(e){var t=[0,0,0,0,0,0,0,0],r=0,i=null,a=0;if(58===(e=n.ucs2.decode(e))[a]){if(58!==e[a+1])return c;a+=2,i=++r}for(;a6)return c;for(var l=0;void 0!==e[a];){var p=null;if(l>0){if(!(46===e[a]&&l<4))return c;++a}if(!o.isASCIIDigit(e[a]))return c;for(;o.isASCIIDigit(e[a]);){var d=parseInt(h(e,a));if(null===p)p=d;else{if(0===p)return c;p=10*p+d}if(p>255)return c;++a}t[r]=256*t[r]+p,2!==++l&&4!==l||++r}if(4!==l)return c;break}if(58===e[a]){if(void 0===e[++a])return c}else if(void 0!==e[a])return c;t[r]=s,++r}else{if(null!==i)return c;++a,i=++r}}if(null!==i){var f=r-i;for(r=7;0!==r&&f>0;){var m=t[i+f-1];t[i+f-1]=t[r],t[r]=m,--r,--f}}else if(null===i&&8!==r)return c;return t}(e.substring(1,e.length-1));if(r)return function(e){if(t=e,-1!==t.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return c;var t;for(var r="",i=n.ucs2.decode(e),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=i.toASCII(e,{checkBidi:!0,checkHyphens:!1,checkJoiners:!0,useSTD3ASCIIRules:t,verifyDNSLength:t});if(null===r)return c;return r}(u(t.from(e)).toString());if(a===c)return c;if(-1!==a.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/))return c;var s=function(e){var t=e.split(".");if(""===t[t.length-1]&&t.length>1&&t.pop(),t.length>4)return e;var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;if(""===u)return e;var l=k(u);if(l===c)return e;r.push(l)}}catch(v){i=!0,o=v}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}for(var p=0;p255)return c;if(r[r.length-1]>=Math.pow(256,5-r.length))return c;for(var h=r.pop(),d=0,f=0,m=r;fr&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),{idx:t,len:r}}(e).idx,n=!1,i=0;i<=7;++i)n&&0===e[i]||(n&&(n=!1),r!==i?(t+=e[i].toString(16),7!==i&&(t+=":")):(t+=0===i?"::":":",n=!0));return t}(e)+"]":e}function O(e){var t,r=e.path;0!==r.length&&("file"===e.scheme&&1===r.length&&(t=r[0],/^[A-Za-z]:$/.test(t))||r.pop())}function I(e){return""!==e.username||""!==e.password}function F(e,t,r,i,o){if(this.pointer=0,this.input=e,this.base=t||null,this.encodingOverride=r||"utf-8",this.stateOverride=o,this.url=i,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};var a=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}(this.input);a!==this.input&&(this.parseError=!0),this.input=a}var s=function(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}(this.input);for(s!==this.input&&(this.parseError=!0),this.input=s,this.state=o||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=n.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){var u=this.input[this.pointer],l=isNaN(u)?void 0:String.fromCodePoint(u),p=this["parse "+this.state](u,l);if(!p)break;if(p===c){this.failure=!0;break}}}F.prototype["parse scheme start"]=function(e,t){if(o.isASCIIAlpha(e))this.buffer+=t.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,c;this.state="no scheme",--this.pointer}return!0},F.prototype["parse scheme"]=function(e,t){if(o.isASCIIAlphanumeric(e)||43===e||45===e||46===e)this.buffer+=t.toLowerCase();else if(58===e){if(this.stateOverride){if(v(this.url)&&!m(this.buffer))return!1;if(!v(this.url)&&m(this.buffer))return!1;if((I(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&(""===this.url.host||null===this.url.host))return!1}if(this.url.scheme=this.buffer,this.stateOverride)return this.url.port===y(this.url.scheme)&&(this.url.port=null),!1;this.buffer="","file"===this.url.scheme?(47===this.input[this.pointer+1]&&47===this.input[this.pointer+2]||(this.parseError=!0),this.state="file"):v(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":v(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,c;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},F.prototype["parse no scheme"]=function(e){return null===this.base||this.base.cannotBeABaseURL&&35!==e?c:(this.base.cannotBeABaseURL&&35===e?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},F.prototype["parse special relative or authority"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},F.prototype["parse path or authority"]=function(e){return 47===e?this.state="authority":(this.state="path",--this.pointer),!0},F.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,isNaN(e)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===e?this.state="relative slash":63===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):v(this.url)&&92===e?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},F.prototype["parse relative slash"]=function(e){return!v(this.url)||47!==e&&92!==e?47===e?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(92===e&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},F.prototype["parse special authority slashes"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},F.prototype["parse special authority ignore slashes"]=function(e){return 47!==e&&92!==e?(this.state="authority",--this.pointer):this.parseError=!0,!0},F.prototype["parse authority"]=function(e,t){if(64===e){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;for(var r=p(this.buffer),n=0;nMath.pow(2,16)-1)return this.parseError=!0,c;this.url.port=r===y(this.url.scheme)?null:r,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};var j=new Set([47,92,63,35]);function P(e,t){var r,n,i=e.length-t;return i>=2&&(r=e[t],n=e[t+1],o.isASCIIAlpha(r)&&(58===n||124===n))&&(2===i||j.has(e[t+2]))}F.prototype["parse file"]=function(e){return this.url.scheme="file",47===e||92===e?(92===e&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(e)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(P(this.input,this.pointer)?this.parseError=!0:(this.url.host=this.base.host,this.url.path=this.base.path.slice(),O(this.url)),this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},F.prototype["parse file slash"]=function(e){var t;return 47===e||92===e?(92===e&&(this.parseError=!0),this.state="file host"):(null===this.base||"file"!==this.base.scheme||P(this.input,this.pointer)||(2===(t=this.base.path[0]).length&&o.isASCIIAlpha(t.codePointAt(0))&&":"===t[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},F.prototype["parse file host"]=function(e,t){if(isNaN(e)||47===e||92===e||63===e||35===e)if(--this.pointer,!this.stateOverride&&f(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{var r=A(this.buffer,g(this.url));if(r===c)return c;if("localhost"===r&&(r=""),this.url.host=r,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=t;return!0},F.prototype["parse path start"]=function(e){return v(this.url)?(92===e&&(this.parseError=!0),this.state="path",47!==e&&92!==e&&--this.pointer):this.stateOverride||63!==e?this.stateOverride||35!==e?void 0!==e&&(this.state="path",47!==e&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},F.prototype["parse path"]=function(e){if(isNaN(e)||47===e||v(this.url)&&92===e||!this.stateOverride&&(63===e||35===e)){if(v(this.url)&&92===e&&(this.parseError=!0),".."===(t=(t=this.buffer).toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t?(O(this.url),47===e||v(this.url)&&92===e||this.url.path.push("")):!d(this.buffer)||47===e||v(this.url)&&92===e?d(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&f(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="","file"===this.url.scheme&&(void 0===e||63===e||35===e))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===e&&(this.url.query="",this.state="query"),35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||o.isASCIIHex(this.input[this.pointer+1])&&o.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=D(e,S);var t;return!0},F.prototype["parse cannot-be-a-base-URL path"]=function(e){return 63===e?(this.url.query="",this.state="query"):35===e?(this.url.fragment="",this.state="fragment"):(isNaN(e)||37===e||(this.parseError=!0),37!==e||o.isASCIIHex(this.input[this.pointer+1])&&o.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path[0]=this.url.path[0]+D(e,b))),!0},F.prototype["parse query"]=function(e,r){if(isNaN(e)||!this.stateOverride&&35===e){v(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");for(var n=t.from(this.buffer),i=0;i126||34===n[i]||35===n[i]||60===n[i]||62===n[i]||39===n[i]&&v(this.url)?this.url.query+=s(n[i]):this.url.query+=String.fromCodePoint(n[i]);this.buffer="",35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||o.isASCIIHex(this.input[this.pointer+1])&&o.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=r;return!0},F.prototype["parse fragment"]=function(e){return isNaN(e)||(0===e?this.parseError=!0:(37!==e||o.isASCIIHex(this.input[this.pointer+1])&&o.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=D(e,_))),!0},e.exports.serializeURL=function(e,t){var r=e.scheme+":";if(null!==e.host?(r+="//",""===e.username&&""===e.password||(r+=e.username,""!==e.password&&(r+=":"+e.password),r+="@"),r+=C(e.host),null!==e.port&&(r+=":"+e.port)):null===e.host&&"file"===e.scheme&&(r+="//"),e.cannotBeABaseURL)r+=e.path[0];else{var n=!0,i=!1,o=void 0;try{for(var a,s=e.path[Symbol.iterator]();!(n=(a=s.next()).done);n=!0)r+="/"+a.value}catch(u){i=!0,o=u}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}}return null!==e.query&&(r+="?"+e.query),t||null===e.fragment||(r+="#"+e.fragment),r},e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(t.path[0]))}catch(r){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(e){var t=e.scheme+"://";return t+=C(e.host),null!==e.port&&(t+=":"+e.port),t}({scheme:t.scheme,host:t.host,port:t.port});case"file":default:return"null"}},e.exports.basicURLParse=function(e,t){void 0===t&&(t={});var r=new F(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);return r.failure?null:r.url},e.exports.setTheUsername=function(e,t){e.username="";for(var r=n.ucs2.decode(t),i=0;i0}},function(e,t,r){var n=r(111),i=r(73),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=n(e);return t==a||t==s||t==o||t==u}},function(e,t,r){"use strict";var n=r(6),i=r.n(n),o=r(3),a=r.n(o),s=r(7),u=r.n(s),l=r(9),c=r.n(l),p=r(8),h=r.n(p),d=r(10),f=r.n(d),m=r(1),v=r.n(m),g=r(2),y=r.n(g),b=r(16),w=r.n(b),x=r(21),E=r.n(x),_=(r(67),r(12)),T=r.n(_),S=(r(15),r(0)),D=r.n(S),k=r(20),A=r(108),C=r(109),O=r(127),I=r(11);function F(e){var t=e.children,r=e.className,n=e.content,o=e.size,a=T()(o,"icons",r),s=Object(A.a)(F,e),u=Object(C.a)(F,e);return D.a.createElement(u,i()({},s,{className:a}),I.a.isNil(t)?n:t)}F.handledProps=["as","children","className","content","size"],F.propTypes={},F.defaultProps={as:"i"};var j=F,P=function(e){function t(){var e,r;a()(this,t);for(var n=arguments.length,i=new Array(n),o=0;o20&&0===o[0]&&(o=o.slice(1)),(l=this.part.s.data).length>20&&0===l[0]&&(l=l.slice(1)),this.hashAlgorithm&&"sha1"!==this.hashAlgorithm||o.length+l.length!==40)throw new Error("OpenSSH only supports DSA signatures with SHA1 hash");return t.writeBuffer(i.concat([o,l])),t.toBuffer()}if("ssh"===e&&"ecdsa"===this.type){var p,h=new u({});o=this.part.r.data,h.writeBuffer(o),h.writePart(this.part.s),t=new u({}),0===o[0]&&(o=o.slice(1));var d=8*o.length;return 256===d?p="nistp256":384===d?p="nistp384":528===d&&(p="nistp521"),t.writeString("ecdsa-sha2-"+p),t.writeBuffer(h.toBuffer()),t.toBuffer()}throw new Error("Invalid signature format");default:throw new Error("Invalid signature data")}},p.prototype.toString=function(e){return n.optionalString(e,"format"),this.toBuffer(e).toString("base64")},p.parse=function(e,t,r){"string"===typeof e&&(e=i.from(e,"base64")),n.buffer(e,"data"),n.string(r,"format"),n.string(t,"type");var o={};o.type=t.toLowerCase(),o.parts=[];try{switch(n.ok(e.length>0,"signature must not be empty"),o.type){case"rsa":case"ed25519":return h(e,t,r,o);case"dsa":case"ecdsa":return"asn1"===r?function(e,t,r,n){var i=new s.BerReader(e);i.readSequence();var o=i.readString(s.Ber.Integer,!0),u=i.readString(s.Ber.Integer,!0);return n.parts.push({name:"r",data:a.mpNormalize(o)}),n.parts.push({name:"s",data:a.mpNormalize(u)}),new p(n)}(e,0,0,o):"dsa"===o.type?function(e,t,r,i){if(40!=e.length){var o=new u({buffer:e}),a=o.readBuffer();"ssh-dss"===a.toString("ascii")&&(a=o.readBuffer()),n.ok(o.atEnd(),"extra trailing bytes"),n.strictEqual(a.length,40,"invalid inner length"),e=a}return i.parts.push({name:"r",data:e.slice(0,20)}),i.parts.push({name:"s",data:e.slice(20,40)}),new p(i)}(e,0,0,o):function(e,t,r,i){var o,a,s=new u({buffer:e}),l=s.readBuffer(),c=l.toString("ascii");if("ecdsa-"===c.slice(0,6)){var h=c.split("-");switch(n.strictEqual(h[0],"ecdsa"),n.strictEqual(h[1],"sha2"),i.curve=h[2],i.curve){case"nistp256":i.hashAlgo="sha256";break;case"nistp384":i.hashAlgo="sha384";break;case"nistp521":i.hashAlgo="sha512";break;default:throw new Error("Unsupported ECDSA curve: "+i.curve)}l=s.readBuffer(),n.ok(s.atEnd(),"extra trailing bytes on outer"),s=new u({buffer:l}),o=s.readPart()}else o={data:l};return a=s.readPart(),n.ok(s.atEnd(),"extra trailing bytes"),o.name="r",a.name="s",i.parts.push(o),i.parts.push(a),new p(i)}(e,0,0,o);default:throw new l(t)}}catch(d){if(d instanceof l)throw d;throw new c(t,r,d)}},p.isSignature=function(e,t){return a.isCompatible(e,p,t)},p.prototype._sshpkApiVersion=[2,1],p._oldVersionDetect=function(e){return n.func(e.toBuffer),e.hasOwnProperty("hashAlgorithm")?[2,0]:[1,0]}},function(e,t,r){var n=r(1008);e.exports={Ber:n,BerReader:n.Reader,BerWriter:n.Writer}},function(e,t,r){"use strict";r.d(t,"b",function(){return s}),r.d(t,"a",function(){return l}),r.d(t,"c",function(){return c});var n=r(56),i=r.n(n),o=r(389),a=r.n(o),s=["selected","defaultValue","defaultChecked","accept","autoCapitalize","autoComplete","autoCorrect","autoFocus","checked","disabled","form","id","lang","list","max","maxLength","min","minLength","multiple","name","pattern","placeholder","readOnly","required","step","title","type","value"],u=s.concat(["onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onClick","onContextMenu","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"]),l=["alt","height","src","srcSet","width"],c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.htmlProps,n=void 0===r?u:r,o=t.includeAria,s=void 0===o||o,l={},c={};return a()(e,function(e,t){var r=s&&(/^aria-.*$/.test(t)||"role"===t);(i()(n,t)||r?l:c)[t]=e}),[l,c]}},function(e,t,r){var n=r(786),i=r(806),o=r(245),a=r(44),s=r(808);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):n(e):s(e)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){var n=r(25).Buffer,i=r(90).Transform,o=r(212).StringDecoder;function a(e){i.call(this),this.hashMode="string"===typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(28)(a,i),a.prototype.update=function(e,t,r){"string"===typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){n=i}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},function(e,t,r){e.exports={read:function(e,t,r){var u=e;"string"!==typeof e&&(n.buffer(e,"buf"),e=e.toString("ascii"));var l,y,w=e.trim().split(/[\r\n]+/g),x=-1;for(;!l&&x0;)y=w[--E].match(/[-]+[ ]*END ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);n.ok(y,"invalid PEM footer"),n.equal(l[2],y[2]);var _,T=l[2].toLowerCase();l[1]&&(n.equal(l[1],y[1],"PEM header and footer mismatch"),_=l[1].trim());w=w.slice(x,E+1);var S,D,k,A={};for(;w=w.slice(1),l=w[0].match(/^([A-Za-z0-9-]+): (.+)$/);)A[l[1].toLowerCase()]=l[2];if(w=w.slice(0,-1).join(""),e=a.from(w,"base64"),A["proc-type"]){var C=A["proc-type"].split(",");if("4"===C[0]&&"ENCRYPTED"===C[1]){if("string"===typeof t.passphrase&&(t.passphrase=a.from(t.passphrase,"utf-8")),!a.isBuffer(t.passphrase))throw new f.KeyEncryptedError(t.filename,"PEM");C=A["dek-info"].split(","),n.ok(2===C.length),S=C[0].toLowerCase(),k=a.from(C[1],"hex"),D=s.opensslKeyDeriv(S,k,t.passphrase,1).key}}if(_&&"encrypted"===_.toLowerCase()){var O,I=new i.BerReader(e);I.readSequence(),I.readSequence(),O=I.offset+I.length;var F=I.readOID();if(F!==m)throw new Error("Unsupported PEM/PKCS8 encryption scheme: "+F);I.readSequence(),I.readSequence();var j=I.offset+I.length,P=I.readOID();if(P!==v)throw new Error("Unsupported PBES2 KDF: "+P);I.readSequence();var N=I.readString(i.Ber.OctetString,!0),M=I.readInt(),B="sha1";if(I.offsetd.length&&(y=d.length),v+=m.write(d.slice(g,y),v),m[v++]=10,g=y}return v+=m.write("-----END "+o+"-----\n",v),m.slice(0,v)}};var n=r(36),i=r(114),o=r(50),a=r(33).Buffer,s=(r(63),r(59)),u=r(58),l=r(61),c=r(335),p=r(221),h=r(265),d=r(120),f=r(100),m="1.2.840.113549.1.5.13",v="1.2.840.113549.1.5.12",g={"1.2.840.113549.3.7":"3des-cbc","2.16.840.1.101.3.4.1.2":"aes128-cbc","2.16.840.1.101.3.4.1.42":"aes256-cbc"},y={};Object.keys(g).forEach(function(e){y[g[e]]=e});var b={"1.2.840.113549.2.7":"sha1","1.2.840.113549.2.9":"sha256","1.2.840.113549.2.11":"sha512"},w={};Object.keys(b).forEach(function(e){w[b[e]]=e})},function(e,t,r){e.exports={read:h.bind(void 0,!1,void 0),readType:h.bind(void 0,!1),write:function(e,t){n.object(e);var r,s=p(e),c=o.info[e.type];u.isPrivateKey(e)&&(c=o.privInfo[e.type]);var h=c.parts,d=new l({});for(d.writeString(s),r=0;r=1,"key must have at least one part"),n.ok(e||f.atEnd(),"leftover bytes at end of key");var g=s,y=o.info[h.type];if("private"!==t&&y.parts.length===d.length||(y=o.privInfo[h.type],g=u),n.strictEqual(y.parts.length,d.length),"ecdsa"===h.type){var b=/^ecdsa-sha2-(.+)$/.exec(m);n.ok(null!==b),n.strictEqual(b[1],d[0].data.toString())}for(var w=!0,x=0;x=0;--v)m="with (".concat(d[v],") { ").concat(m," }");i&&(m+="\n//# sourceURL=".concat(i.URL)),d.push(m),a=p.apply(void 0,d).apply(void 0,f)}this._setEventHandlerFor(t,a)}return this._getEventHandlerFor(t)},set:function(e){e=function(e){if(t=e,("object"!==typeof t||null===t)&&"function"!==typeof t)return null;var t;return e}(e),this._setEventHandlerFor(t,e)}})}},function(e,t,r){var n=r(111),i=r(314),o=r(68),a="[object Object]",s=Function.prototype,u=Object.prototype,l=s.toString,c=u.hasOwnProperty,p=l.call(Object);e.exports=function(e){if(!o(e)||n(e)!=a)return!1;var t=i(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==p}},function(e,t,r){"use strict";var n=r(13),i=r(14),o=r(62),a=r(42),s=r(649),u="Invariant Violation",l=Object.setPrototypeOf,c=void 0===l?function(e,t){return e.__proto__=t,e}:l,p=function(e){function t(r){void 0===r&&(r=u);var n=e.call(this,r)||this;return n.framesToPop=1,n.name=u,c(n,t.prototype),n}return Object(n.c)(t,e),t}(Error);function h(e,t){if(!e)throw new p(t)}!function(e){e.warn=function(){for(var e=[],t=0;t0&&"none"===t||e.networkError))return{data:void 0,loading:!1,networkStatus:r.networkStatus,error:new w({graphQLErrors:r.graphQLErrors,networkError:r.networkError})};r&&r.variables&&(this.options.variables=Object.assign({},this.options.variables,r.variables));var o,a=this.queryManager.getCurrentQueryResult(this),s=a.data,u=a.partial,l=!r||r.networkStatus===d.loading,c="network-only"===this.options.fetchPolicy&&l||u&&"cache-only"!==this.options.fetchPolicy,p={data:s,loading:v(o=r?r.networkStatus:c?d.loading:d.ready),networkStatus:o};return r&&r.graphQLErrors&&"all"===this.options.errorPolicy&&(p.errors=r.graphQLErrors),u||(this.lastResult=Object(n.a)({},p,{stale:!1}),this.lastResultSnapshot=Object(i.e)(this.lastResult)),Object(n.a)({},p,{partial:u})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&Object(i.t)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;if("cache-only"===t)return Promise.reject(new Error("cache-only fetchPolicy option should not be used together with query refetch."));Object(i.t)(this.variables,e)||(this.variables=Object.assign({},this.variables,e)),Object(i.t)(this.options.variables,this.variables)||(this.options.variables=Object.assign({},this.options.variables,this.variables));var r="network-only"===t||"no-cache"===t,o=Object(n.a)({},this.options,{fetchPolicy:r?t:"network-only"});return this.queryManager.fetchQuery(this.queryId,o,y.refetch).then(function(e){return e})},t.prototype.fetchMore=function(e){var t,r=this;return h(e.updateQuery),Promise.resolve().then(function(){var i=r.queryManager.generateQueryId();return(t=e.query?e:Object(n.a)({},r.options,e,{variables:Object.assign({},r.variables,e.variables)})).fetchPolicy="network-only",r.queryManager.fetchQuery(i,t,y.normal,r.queryId)}).then(function(n){return r.updateQuery(function(r){return e.updateQuery(r,{fetchMoreResult:n.data,variables:t.variables})}),n})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(r){e.updateQuery&&t.updateQuery(function(t,n){var i=n.variables;return e.updateQuery(t,{subscriptionData:r,variables:i})})},error:function(t){e.onError?e.onError(t):console.error("Unhandled GraphQL subscription error",t)}});return this.subscriptionHandles.push(r),function(){var e=t.subscriptionHandles.indexOf(r);e>=0&&(t.subscriptionHandles.splice(e,1),r.unsubscribe())}},t.prototype.setOptions=function(e){var t=this.options;this.options=Object.assign({},this.options,e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var r="network-only"!==t.fetchPolicy&&"network-only"===e.fetchPolicy||"cache-only"===t.fetchPolicy&&"cache-only"!==e.fetchPolicy||"standby"===t.fetchPolicy&&"standby"!==e.fetchPolicy||!1;return this.setVariables(this.options.variables,r,e.fetchResults)},t.prototype.setVariables=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),this.isTornDown=!1;var o=e||this.variables;return Object(i.t)(o,this.variables)&&!t?0!==this.observers.length&&r?this.result():new Promise(function(e){return e()}):(this.variables=o,this.options.variables=o,0===this.observers.length?new Promise(function(e){return e()}):this.queryManager.fetchQuery(this.queryId,Object(n.a)({},this.options,{variables:this.variables})).then(function(e){return e}))},t.prototype.updateQuery=function(e){var t=this.queryManager.getQueryWithPreviousResult(this.queryId),r=t.previousResult,n=t.variables,o=t.document,a=Object(i.I)(function(){return e(r,{variables:n})});a&&(this.queryManager.dataStore.markUpdateQueryResult(o,n,a),this.queryManager.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){E(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.onSubscribe=function(e){var t=this;return e._subscription&&e._subscription._observer&&!e._subscription._observer.error&&(e._subscription._observer.error=function(e){console.error("Unhandled error",e.message,e.stack)}),this.observers.push(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),1===this.observers.length&&this.setUpQuery(),function(){t.observers=t.observers.filter(function(t){return t!==e}),0===t.observers.length&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this;this.shouldSubscribe&&this.queryManager.addObservableQuery(this.queryId,this),this.options.pollInterval&&(E(this),this.queryManager.startPollingQuery(this.options,this.queryId));var t={next:function(t){e.lastResult=t,e.lastResultSnapshot=Object(i.e)(t),e.observers.forEach(function(e){return e.next&&e.next(t)})},error:function(t){e.lastError=t,e.observers.forEach(function(e){return e.error&&e.error(t)})}};this.queryManager.startQuery(this.queryId,this.options,this.queryManager.queryListenerForObserver(this.queryId,this.options,t))},t.prototype.tearDownQuery=function(){this.isTornDown=!0,this.queryManager.stopPollingQuery(this.queryId),this.subscriptionHandles.forEach(function(e){return e.unsubscribe()}),this.subscriptionHandles=[],this.queryManager.removeObservableQuery(this.queryId),this.queryManager.stopQuery(this.queryId),this.observers=[]},t}(g);function E(e){var t=e.options.fetchPolicy;h("cache-first"!==t&&"cache-only"!==t)}var _=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,r){this.store[e]={mutation:t,variables:r||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var r=this.store[e];r&&(r.loading=!1,r.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),T=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];if(t&&t.document!==e.document&&!Object(i.t)(t.document,e.document))throw new p;var r,n=!1,o=null;e.storePreviousVariables&&t&&t.networkStatus!==d.loading&&(Object(i.t)(t.variables,e.variables)||(n=!0,o=t.variables)),r=n?d.setVariables:e.isPoll?d.poll:e.isRefetch?d.refetch:d.loading;var a=[];t&&t.graphQLErrors&&(a=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:o,networkError:null,graphQLErrors:a,networkStatus:r,metadata:e.metadata},"string"===typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=d.fetchMore)},e.prototype.markQueryResult=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=t.errors&&t.errors.length?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=d.ready,"string"===typeof r&&this.store[r]&&(this.store[r].networkStatus=d.ready))},e.prototype.markQueryError=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=d.error,"string"===typeof r&&this.markQueryResultClient(r,!0))},e.prototype.markQueryResultClient=function(e,t){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].previousVariables=null,this.store[e].networkStatus=t?d.ready:d.loading)},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;this.store=Object.keys(this.store).filter(function(t){return e.indexOf(t)>-1}).reduce(function(e,r){return e[r]=Object(n.a)({},t.store[r],{networkStatus:d.loading}),e},{})},e}();var S=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=Object(i.A)(t.resolvers,e)}):this.resolvers=Object(i.A)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return Object(n.b)(this,void 0,void 0,function(){return Object(n.d)(this,function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,s).then(function(e){return Object(n.a)({},r,{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(i.s)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?Object(i.C)(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return Object(n.a)({},e,{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);h(!1)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),Object(n.b)(this,void 0,void 0,function(){return Object(n.d)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return Object(n.a)({},t,e.exportedVariables)})]:[2,Object(n.a)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(m.b)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return m.a}}}),t},e.prototype.shouldForceResolver=function(e){return this.shouldForceResolvers(e)},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(i.d)(e),variables:t,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,o,a,s){return void 0===r&&(r={}),void 0===o&&(o={}),void 0===a&&(a=function(){return!0}),void 0===s&&(s=!1),Object(n.b)(this,void 0,void 0,function(){var u,l,c,p,h,d,f,m,v;return Object(n.d)(this,function(g){var y;return u=Object(i.k)(e),l=Object(i.i)(e),c=Object(i.f)(l),p=u.operation,h=p?(y=p).charAt(0).toUpperCase()+y.slice(1):"Query",f=(d=this).cache,m=d.client,v={fragmentMap:c,context:Object(n.a)({},r,{cache:f,client:m}),variables:o,fragmentMatcher:a,defaultOperationType:h,exportedVariables:{},onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(u.selectionSet,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r){return Object(n.b)(this,void 0,void 0,function(){var o,a,s,u,l,c=this;return Object(n.d)(this,function(p){return o=r.fragmentMap,a=r.context,s=r.variables,u=[t],l=function(e){return Object(n.b)(c,void 0,void 0,function(){var l,c;return Object(n.d)(this,function(n){return Object(i.F)(e,s)?Object(i.u)(e)?[2,this.resolveField(e,t,r).then(function(t){var r;"undefined"!==typeof t&&u.push(((r={})[Object(i.E)(e)]=t,r))})]:(Object(i.w)(e)?l=e:h(l=o[e.name.value]),l&&l.typeCondition&&(c=l.typeCondition.name.value,r.fragmentMatcher(t,c,a))?[2,this.resolveSelectionSet(l.selectionSet,t,r).then(function(e){u.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return Object(i.B)(u)})]})})},e.prototype.resolveField=function(e,t,r){return Object(n.b)(this,void 0,void 0,function(){var o,a,s,u,l,c,p,h,d,f=this;return Object(n.d)(this,function(n){return o=r.variables,a=e.name.value,s=Object(i.E)(e),u=a!==s,l=t[s]||t[a],c=Promise.resolve(l),r.onlyRunForcedResolvers&&!this.shouldForceResolver(e)||(p=t.__typename||r.defaultOperationType,(h=this.resolvers&&this.resolvers[p])&&(d=h[u?a:s])&&(c=Promise.resolve(d(t,Object(i.b)(e,o),r.context,{field:e})))),[2,c.then(function(t){return void 0===t&&(t=l),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=t)})}),e.selectionSet?null==t?t:Array.isArray(t)?f.resolveSubSelectedArray(e,t,r):e.selectionSet?f.resolveSelectionSet(e.selectionSet,t,r):void 0:t})]})})},e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map(function(t){return null===t?null:Array.isArray(t)?n.resolveSubSelectedArray(e,t,r):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,r):void 0}))},e}(),D=function(){function e(e){var t=e.link,r=e.queryDeduplication,n=void 0!==r&&r,i=e.store,o=e.onBroadcast,s=void 0===o?function(){}:o,u=e.ssrMode,l=void 0!==u&&u,c=e.clientAwareness,p=void 0===c?{}:c,h=e.localState;this.mutationStore=new _,this.queryStore=new T,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.queryIdsByName={},this.pollingInfoByQueryId=new Map,this.nextPoll=null,this.link=t,this.deduplicator=a.a.from([new f,t]),this.queryDeduplication=n,this.dataStore=i,this.onBroadcast=s,this.clientAwareness=p,this.localState=h||new S({cache:i.getCache()}),this.ssrMode=l}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.fetchQueryRejectFns.forEach(function(e){e(new Error("QueryManager stopped while query was in flight"))})},e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,o=e.optimisticResponse,s=e.updateQueries,u=e.refetchQueries,l=void 0===u?[]:u,c=e.awaitRefetchQueries,p=void 0!==c&&c,d=e.update,f=e.errorPolicy,m=void 0===f?"none":f,v=e.fetchPolicy,y=e.context,b=void 0===y?{}:y;return Object(n.b)(this,void 0,void 0,function(){var e,u,c,f,y,x=this;return Object(n.d)(this,function(E){switch(E.label){case 0:return h(t),h(!v||"no-cache"===v),e=this.generateQueryId(),u=this.dataStore.getCache(),t=u.transformDocument(t),r=Object(i.c)({},Object(i.g)(Object(i.l)(t)),r),this.setQuery(e,function(){return{document:t}}),c=function(){var e={};return s&&Object.keys(s).forEach(function(t){return(x.queryIdsByName[t]||[]).forEach(function(r){e[r]={updater:s[t],query:x.queryStore.get(r)}})}),e},Object(i.r)(t)?[4,this.localState.addExportedVariables(t,r,b)]:[3,2];case 1:return y=E.sent(),[3,3];case 2:y=r,E.label=3;case 3:return f=y,this.mutationStore.initMutation(e,t,f),this.dataStore.markMutationInit({mutationId:e,document:t,variables:f||{},updateQueries:c(),update:d,optimisticResponse:o}),this.broadcastQueries(),[2,new Promise(function(r,s){var u,h,y=x.buildOperationForLink(t,f,Object(n.a)({},b,{optimisticResponse:o})),E=function(){if(h&&x.mutationStore.markMutationError(e,h),x.dataStore.markMutationComplete({mutationId:e,optimisticResponse:o}),x.broadcastQueries(),h)return Promise.reject(h);"function"===typeof l&&(l=l(u));for(var t=[],r=0,n=l;r=(r||1)&&(O.queryStore.markQueryError(e,t,o),O.invalidate(!0,e,o),O.broadcastQueries()),new w({networkError:t})}),"cache-and-network"!==p)return[2,C];C.catch(function(){})}return[2,Promise.resolve({data:x})]}})})},e.prototype.queryListenerForObserver=function(e,t,r){var i=this,o=!1;return function(a,s,u){return Object(n.b)(i,void 0,void 0,function(){var i,l,c,p,h,d,f,m,g,y,b,x,E,_,T,S,D,k,A,C;return Object(n.d)(this,function(O){switch(O.label){case 0:if(this.invalidate(!1,e),!a)return[2];if(i=this.getQuery(e).observableQuery,"standby"===(l=i?i.options.fetchPolicy:t.fetchPolicy))return[2];if(c=i?i.options.errorPolicy:t.errorPolicy,p=i?i.getLastResult():null,h=i?i.getLastError():null,d=!s&&null!=a.previousVariables||"cache-only"===l||"cache-and-network"===l,f=Boolean(p&&a.networkStatus!==p.networkStatus),m=c&&(h&&h.graphQLErrors)!==a.graphQLErrors&&"none"!==c,!(!v(a.networkStatus)||f&&t.notifyOnNetworkStatusChange||d))return[3,8];if((!c||"none"===c)&&a.graphQLErrors&&a.graphQLErrors.length>0||a.networkError){if(g=new w({graphQLErrors:a.graphQLErrors,networkError:a.networkError}),o=!0,r.error)try{r.error(g)}catch(I){setTimeout(function(){throw I},0)}else setTimeout(function(){throw g},0);return[2]}O.label=1;case 1:if(O.trys.push([1,7,,8]),y=void 0,b=void 0,s?("no-cache"!==l&&"network-only"!==l&&this.setQuery(e,function(){return{newData:null}}),y=s.result,b=!s.complete||!1):p&&p.data&&!m?(y=p.data,b=!1):(x=this.getQuery(e).document,E=this.dataStore.getCache().diff({query:x,variables:a.previousVariables||a.variables,optimistic:!0}),y=E.result,b=!E.complete),_=void 0,_=b&&"cache-only"!==l?{data:p&&p.data,loading:v(a.networkStatus),networkStatus:a.networkStatus,stale:!0}:{data:y,loading:v(a.networkStatus),networkStatus:a.networkStatus,stale:!1},"all"===c&&a.graphQLErrors&&a.graphQLErrors.length>0&&(_.errors=a.graphQLErrors),!r.next)return[3,6];if(!o&&i&&!i.isDifferentFromLastResult(_))return[3,6];O.label=2;case 2:return O.trys.push([2,5,,6]),u?(T=t.query,S=t.variables,D=t.context,[4,this.localState.runResolvers({document:T,remoteResult:_,context:D,variables:S,onlyRunForcedResolvers:u})]):[3,4];case 3:k=O.sent(),_=Object(n.a)({},_,k),O.label=4;case 4:return r.next(_),[3,6];case 5:return A=O.sent(),setTimeout(function(){throw A},0),[3,6];case 6:return o=!1,[3,8];case 7:return C=O.sent(),o=!0,r.error&&r.error(new w({networkError:C})),[2];case 8:return[2]}})})}},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),h("standby"!==e.fetchPolicy);var r=Object(i.o)(e.query);if(r.variableDefinitions&&r.variableDefinitions.length){var o=Object(i.g)(r);e.variables=Object(i.c)({},o,e.variables)}"undefined"===typeof e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var a=Object(n.a)({},e);return new x({queryManager:this,options:a,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return h(e.query),h("Document"===e.query.kind),h(!e.returnPartialData),h(!e.pollInterval),new Promise(function(r,n){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,n),i.result().then(r,n).then(function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)})})},e.prototype.generateQueryId=function(){var e=this.idCounter.toString();return this.idCounter++,e},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(!0,e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,function(e){var r=e.listeners;return{listeners:(void 0===r?[]:r).concat([t]),invalidated:!1}})},e.prototype.updateQueryWatch=function(e,t,r){var n=this,i=this.getQuery(e).cancel;i&&i();return this.dataStore.getCache().watch({query:t,variables:r.variables,optimistic:!0,previousResult:function(){var t=null,r=n.getQuery(e).observableQuery;if(r){var i=r.getLastResult();i&&(t=i.data)}return t},callback:function(t){n.setQuery(e,function(){return{invalidated:!0,newData:t}})}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,function(){return{observableQuery:t}});var r=Object(i.o)(t.options.query);if(r.name&&r.name.value){var n=r.name.value;this.queryIdsByName[n]=this.queryIdsByName[n]||[],this.queryIdsByName[n].push(t.queryId)}},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e),r=t.observableQuery,n=t.cancel;if(n&&n(),r){var o=Object(i.o)(r.options.query),a=o.name?o.name.value:null;this.setQuery(e,function(){return{observableQuery:null}}),a&&(this.queryIdsByName[a]=this.queryIdsByName[a].filter(function(e){return!(r.queryId===e)}))}},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach(function(e){e(new Error("Store reset while query was in flight(not completed in link chain)"))});var e=[];return this.queries.forEach(function(t,r){t.observableQuery&&e.push(r)}),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then(function(){return e.reFetchObservableQueries()})},e.prototype.reFetchObservableQueries=function(e){var t=this.getObservableQueryPromises(e);return this.broadcastQueries(),Promise.all(t)},e.prototype.startQuery=function(e,t,r){return this.addQueryListener(e,r),this.fetchQuery(e,t).catch(function(){}),e},e.prototype.startGraphQLSubscription=function(e){var t,r=this,o=e.query,s=!(e.fetchPolicy&&"no-cache"===e.fetchPolicy),u=this.dataStore.getCache().transformDocument(o),l=Object(i.c)({},Object(i.g)(Object(i.m)(o)),e.variables),c=l,p=[],h=this.localState.clientQuery(u);return new g(function(e){if(p.push(e),1===p.length){var o=0,d=!1,f={next:function(e){return Object(n.b)(r,void 0,void 0,function(){var t;return Object(n.d)(this,function(r){switch(r.label){case 0:return o+=1,t=e,h&&Object(i.s)(["client"],h)?[4,this.localState.runResolvers({document:h,remoteResult:e,context:{},variables:c})]:[3,2];case 1:t=r.sent(),r.label=2;case 2:return s&&(this.dataStore.markSubscriptionResult(t,u,c),this.broadcastQueries()),p.forEach(function(e){Object(i.q)(t)&&e.error?e.error(new w({graphQLErrors:t.errors})):e.next&&e.next(t),o-=1}),0===o&&d&&f.complete(),[2]}})})},error:function(e){p.forEach(function(t){t.error&&t.error(e)})},complete:function(){0===o&&p.forEach(function(e){e.complete&&e.complete()}),d=!0}};Object(n.b)(r,void 0,void 0,function(){var e,r,o,s;return Object(n.d)(this,function(n){switch(n.label){case 0:return Object(i.r)(u)?[4,this.localState.addExportedVariables(u,l)]:[3,2];case 1:return r=n.sent(),[3,3];case 2:r=l,n.label=3;case 3:return e=r,(o=this.localState.serverQuery(u))?(s=this.buildOperationForLink(o,e),t=Object(a.b)(this.link,s).subscribe(f)):t=g.of({data:{}}).subscribe(f),[2]}})})}return function(){0===(p=p.filter(function(t){return t!==e})).length&&t&&t.unsubscribe()}})},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t=this.getQuery(e).subscriptions;this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),t.forEach(function(e){return e.unsubscribe()}),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var r=e.options,n=r.variables,i=r.query,o=r.fetchPolicy,a=e.getLastResult(),s=this.getQuery(e.queryId).newData;if(s&&s.complete)return{data:s.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};try{return{data:this.dataStore.getCache().read({query:i,variables:n,previousResult:a?a.data:void 0,optimistic:t})||void 0,partial:!1}}catch(u){return{data:void 0,partial:!0}}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"===typeof e){var r=this.getQuery(e).observableQuery;h(r),t=r}else t=e;var n=t.options,i=n.variables,o=n.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(e){var t=this;void 0===e&&(e=!1),this.onBroadcast(),this.queries.forEach(function(r,n){r.invalidated&&r.listeners&&r.listeners.filter(function(e){return!!e}).forEach(function(i){i(t.queryStore.get(n),r.newData,e)})})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableQueryPromises=function(e){var t=this,r=[];return this.queries.forEach(function(n,i){var o=n.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||r.push(o.refetch()),t.setQuery(i,function(){return{newData:null}}),t.invalidate(!0,i)}}),r},e.prototype.fetchRequest=function(e){var t,r,o=this,s=e.requestId,u=e.queryId,l=e.document,c=e.options,p=e.fetchMoreForQueryId,h=c.variables,f=c.context,m=c.errorPolicy,v=void 0===m?"none":m,y=c.fetchPolicy;return new Promise(function(e,c){var m,b={},x=o.localState.clientQuery(l),E=o.localState.serverQuery(l);if(E){var _=o.buildOperationForLink(E,h,Object(n.a)({},f,{forceFetch:!o.queryDeduplication}));b=_.context,m=Object(a.b)(o.deduplicator,_)}else b=o.prepareContext(f),m=g.of({data:{}});o.fetchQueryRejectFns.set("fetchRequest:"+u,c);var T=!1,S=!0,D={next:function(e){return Object(n.b)(o,void 0,void 0,function(){var o,a;return Object(n.d)(this,function(n){switch(n.label){case 0:return S=!0,o=e,a=this.getQuery(u).lastRequestId,s>=(a||1)?x&&Object(i.s)(["client"],x)?[4,this.localState.runResolvers({document:x,remoteResult:e,context:b,variables:h}).catch(function(t){return S=!1,c(t),e})]:[3,2]:[3,3];case 1:o=n.sent(),n.label=2;case 2:if("no-cache"!==y)try{this.dataStore.markQueryResult(o,l,h,p,"ignore"===v||"all"===v)}catch(d){return S=!1,c(d),[2]}else this.setQuery(u,function(){return{newData:{result:o.data,complete:!0}}});this.queryStore.markQueryResult(u,o,p),this.invalidate(!0,u,p),this.broadcastQueries(),n.label=3;case 3:if(o.errors&&"none"===v)return S=!1,c(new w({graphQLErrors:o.errors})),[2];if("all"===v&&(r=o.errors),p||"no-cache"===y)t=o.data;else try{t=this.dataStore.getCache().read({variables:h,query:l,optimistic:!1})}catch(d){}return S=!1,T&&D.complete(),[2]}})})},error:function(e){o.fetchQueryRejectFns.delete("fetchRequest:"+u),o.setQuery(u,function(e){return{subscriptions:e.subscriptions.filter(function(e){return e!==k})}}),c(e)},complete:function(){S||(o.fetchQueryRejectFns.delete("fetchRequest:"+u),o.setQuery(u,function(e){return{subscriptions:e.subscriptions.filter(function(e){return e!==k})}}),e({data:t,errors:r,loading:!1,networkStatus:d.ready,stale:!1})),T=!0}},k=m.subscribe(D);o.setQuery(u,function(e){return{subscriptions:e.subscriptions.concat([k])}})}).catch(function(e){throw o.fetchQueryRejectFns.delete("fetchRequest:"+u),e})},e.prototype.refetchQueryByName=function(e){var t=this,r=this.queryIdsByName[e];if(void 0!==r)return Promise.all(r.map(function(e){return t.getQuery(e).observableQuery}).filter(function(e){return!!e}).map(function(e){return e.refetch()}))},e.prototype.generateRequestId=function(){var e=this.idCounter;return this.idCounter++,e},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:[],invalidated:!1,document:null,newData:null,lastRequestId:null,observableQuery:null,subscriptions:[]}},e.prototype.setQuery=function(e,t){var r=this.getQuery(e),i=Object(n.a)({},r,t(r));this.queries.set(e,i)},e.prototype.invalidate=function(e,t,r){t&&this.setQuery(t,function(){return{invalidated:e}}),r&&this.setQuery(r,function(){return{invalidated:e}})},e.prototype.buildOperationForLink=function(e,t,r){var n=this.dataStore.getCache();return{query:n.transformForLink?n.transformForLink(e):e,variables:t,operationName:Object(i.n)(e)||void 0,context:this.prepareContext(r)}},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(n.a)({},t,{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==d.ready&&t.networkStatus!==d.error},e.prototype.startPollingQuery=function(e,t,r){var i=e.pollInterval;return h(i),this.ssrMode||(this.pollingInfoByQueryId.set(t,{interval:i,lastPollTimeMs:Date.now()-10,options:Object(n.a)({},e,{fetchPolicy:"network-only"})}),r&&this.addQueryListener(t,r),this.schedulePoll(i)),t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e.prototype.schedulePoll=function(e){var t=this,r=Date.now();if(this.nextPoll){if(!(e=r.interval){var i=function(){r.lastPollTimeMs=Date.now()};t.fetchQuery(n,r.options,y.poll).then(i,i)}}),isFinite(e)&&t.schedulePoll(e)},e)}},e}(),k=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,r,n,o){void 0===o&&(o=!1);var a=!Object(i.q)(e);o&&Object(i.q)(e)&&e.data&&(a=!0),!n&&a&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:r})},e.prototype.markSubscriptionResult=function(e,t,r){Object(i.q)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:r})},e.prototype.markMutationInit=function(e){var t=this;if(e.optimisticResponse){var r;r="function"===typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse;this.cache.recordOptimisticTransaction(function(n){var i=t.cache;t.cache=n;try{t.markMutationResult({mutationId:e.mutationId,result:{data:r},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{t.cache=i}},e.mutationId)}},e.prototype.markMutationResult=function(e){var t=this;if(!Object(i.q)(e.result)){var r=[];r.push({result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),e.updateQueries&&Object.keys(e.updateQueries).filter(function(t){return e.updateQueries[t]}).forEach(function(n){var o=e.updateQueries[n],a=o.query,s=o.updater,u=t.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),l=u.result;if(u.complete){var c=Object(i.I)(function(){return s(l,{mutationResult:e.result,queryName:Object(i.n)(a.document)||void 0,queryVariables:a.variables})});c&&r.push({result:c,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}}),this.cache.performTransaction(function(e){r.forEach(function(t){return e.write(t)})});var n=e.update;n&&this.cache.performTransaction(function(t){Object(i.I)(function(){return n(t,e.result)})})}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),A="2.5.1",C=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],this.clientAwareness={};var r=e.cache,n=e.ssrMode,o=void 0!==n&&n,s=e.ssrForceFetchDelay,u=void 0===s?0:s,l=e.connectToDevTools,c=e.queryDeduplication,h=void 0===c||c,d=e.defaultOptions,f=e.resolvers,m=e.typeDefs,v=e.fragmentMatcher,g=e.name,y=e.version,b=e.link;if(!b&&f&&(b=a.a.empty()),!b||!r)throw new p;var w=new Map,x=new a.a(function(e,t){var r=w.get(e.query);return r||(r=Object(i.D)(e.query),w.set(e.query,r),w.set(r,r)),e.query=r,t(e)});this.link=x.concat(b),this.cache=r,this.store=new k(r),this.disableNetworkFetches=o||u>0,this.queryDeduplication=h,this.ssrMode=o,this.defaultOptions=d||{},this.typeDefs=m,u&&setTimeout(function(){return t.disableNetworkFetches=!1},u),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);"undefined"!==typeof l&&(l&&"undefined"!==typeof window)&&(window.__APOLLO_CLIENT__=this),this.version=A,g&&(this.clientAwareness.name=g),y&&(this.clientAwareness.version=y),this.localState=new S({cache:r,client:this,resolvers:f,fragmentMatcher:v})}return e.prototype.stop=function(){this.queryManager&&this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(n.a)({},this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(n.a)({},e,{fetchPolicy:"cache-first"})),this.initQueryManager().watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(n.a)({},this.defaultOptions.query,e)),h("cache-and-network"!==e.fetchPolicy),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(n.a)({},e,{fetchPolicy:"cache-first"})),this.initQueryManager().query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(n.a)({},this.defaultOptions.mutate,e)),this.initQueryManager().mutate(e)},e.prototype.subscribe=function(e){return this.initQueryManager().startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.initProxy().readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.initProxy().readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.initProxy().writeQuery(e);return this.initQueryManager().broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.initProxy().writeFragment(e);return this.initQueryManager().broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.initProxy().writeData(e);return this.initQueryManager().broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Object(a.b)(this.link,e)},e.prototype.initQueryManager=function(){var e=this;return this.queryManager||(this.queryManager=new D({link:this.link,store:this.store,queryDeduplication:this.queryDeduplication,ssrMode:this.ssrMode,clientAwareness:this.clientAwareness,localState:this.localState,onBroadcast:function(){e.devToolsHookCb&&e.devToolsHookCb({action:{},state:{queries:e.queryManager?e.queryManager.queryStore.getStore():{},mutations:e.queryManager?e.queryManager.mutationStore.getStore():{}},dataWithOptimisticResults:e.cache.extract(!0)})}})),this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager?e.queryManager.clearStore():Promise.resolve(null)}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.queryManager&&e.queryManager.reFetchObservableQueries?e.queryManager.reFetchObservableQueries():Promise.resolve(null)})},e.prototype.clearStore=function(){var e=this,t=this.queryManager;return Promise.resolve().then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))}).then(function(){return t?t.clearStore():Promise.resolve(null)})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager?this.queryManager.reFetchObservableQueries(e):Promise.resolve(null)},e.prototype.extract=function(e){return this.initProxy().extract(e)},e.prototype.restore=function(e){return this.initProxy().restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.initProxy=function(){return this.proxy||(this.initQueryManager(),this.proxy=this.cache),this.proxy},e}();t.c=C},function(e,t,r){var n=r(424),i=r(116),o=r(810),a=r(44),s=r(252);e.exports=function(e,t,r){var u=a(e)?n:o;return r&&s(e,t,r)&&(t=void 0),u(e,i(t,3))}},function(e,t,r){"use strict";var n=r(0),i=r.n(n),o=r(391),a=r.n(o),s=r(15),u=r.n(s),l=r(652),c=r.n(l),p=1073741823;var h=i.a.createContext||function(e,t){var r,i,o="__create-react-context-"+c()()+"__",s=function(e){function r(){var t;return(t=e.apply(this,arguments)||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter(function(t){return t!==e})},get:function(){return e},set:function(r,n){e=r,t.forEach(function(t){return t(e,n)})}}}(t.props.value),t}a()(r,e);var n=r.prototype;return n.getChildContext=function(){var e;return(e={})[o]=this.emitter,e},n.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var r,n=this.props.value,i=e.value;((o=n)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?r=0:(r="function"===typeof t?t(n,i):p,0!==(r|=0)&&this.emitter.set(e.value,r))}var o,a},n.render=function(){return this.props.children},r}(n.Component);s.childContextTypes=((r={})[o]=u.a.object.isRequired,r);var l=function(t){function r(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,r){0!==((0|e.observedBits)&r)&&e.setState({value:e.getValue()})},e}a()(r,t);var n=r.prototype;return n.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?p:t},n.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?p:e},n.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},n.getValue=function(){return this.context[o]?this.context[o].get():e},n.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},r}(n.Component);return l.contextTypes=((i={})[o]=u.a.object,i),{Provider:s,Consumer:l}},d=r(97),f=r(85),m=r(76),v=r(392),g=r.n(v),y=r(60),b=(r(284),r(196)),w=r(653),x=r.n(w);r.d(t,"a",function(){return C}),r.d(t,"b",function(){return P}),r.d(t,"c",function(){return _}),r.d(t,"d",function(){return U}),r.d(t,"f",function(){return j}),r.d(t,"g",function(){return H}),r.d(t,"e",function(){return E});var E=function(e){var t=h();return t.displayName=e,t}("Router"),_=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={location:t.history.location},r._isMounted=!1,r._pendingLocation=null,t.staticContext||(r.unlisten=t.history.listen(function(e){r._isMounted?r.setState({location:e}):r._pendingLocation=e})),r}Object(d.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var r=t.prototype;return r.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&this.unlisten()},r.render=function(){return i.a.createElement(E.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(i.a.Component);i.a.Component;var T=function(e){function t(){return e.apply(this,arguments)||this}Object(d.a)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},r.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},r.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},r.render=function(){return null},t}(i.a.Component);var S={},D=1e4,k=0;function A(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(S[e])return S[e];var t=g.a.compile(e);return k3&&void 0!==arguments[3]?arguments[3]:{};if("function"!==typeof e&&"string"!==typeof e)throw new Error("createShorthand() Component must be a string or function.");if(w()(r)||y()(r))return null;var o=v()(r),s=f()(r),l=h()(r),p=Object(_.isValidElement)(r),d=c()(r),m=o||s||u()(r);if(!l&&!p&&!d&&!m)return null;var g=n.defaultProps,b=void 0===g?{}:g,x=p&&r.props||d&&r||m&&t(r),S=n.overrideProps,D=void 0===S?{}:S;D=h()(D)?D(i()({},b,x)):D;var k=i()({},b,x,D);if(b.className||D.className||x.className){var A=E()(b.className,D.className,x.className);k.className=a()(A.split(" ")).join(" ")}if((b.style||D.style||x.style)&&(k.style=i()({},b.style,x.style,D.style)),w()(k.key)){var C=k.childKey,O=n.autoGenerateKey,I=void 0===O||O;w()(C)?I&&(o||s)&&(k.key=r):(k.key="function"===typeof C?C(k):C,delete k.childKey)}return p?Object(_.cloneElement)(r,k):m||d?T.a.createElement(e,k):l?r(e,k,k.children):void 0}function D(e,t){if("function"!==typeof e&&"string"!==typeof e)throw new Error("createShorthandFactory() Component must be a string or function.");return function(r,n){return S(e,t,r,n)}}S.handledProps=[];D("div",function(e){return{children:e}}),D("iframe",function(e){return{src:e}}),D("img",function(e){return{src:e}});var k=D("input",function(e){return{type:e}}),A=D("label",function(e){return{children:e}}),C=D("p",function(e){return{children:e}})},function(e,t,r){var n=r(111),i=r(68),o="[object Number]";e.exports=function(e){return"number"==typeof e||i(e)&&n(e)==o}},,,function(e,t,r){var n=r(756),i=r(759);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},function(e,t,r){(function(e,n){var i;!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof n&&n;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,l=36,c=1,p=26,h=38,d=700,f=72,m=128,v="-",g=/^xn--/,y=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=l-c,E=Math.floor,_=String.fromCharCode;function T(e){throw new RangeError(w[e])}function S(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function D(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+S((e=e.replace(b,".")).split("."),t).join(".")}function k(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=_((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=_(e)}).join("")}function C(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function O(e,t,r){var n=0;for(e=r?E(e/d):e>>1,e+=E(e/t);e>x*p>>1;n+=l)e=E(e/x);return E(n+(x+1)*e/(e+h))}function I(e){var t,r,n,i,o,a,s,h,d,g,y,b=[],w=e.length,x=0,_=m,S=f;for((r=e.lastIndexOf(v))<0&&(r=0),n=0;n=128&&T("not-basic"),b.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=w&&T("invalid-input"),((h=(y=e.charCodeAt(i++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:l)>=l||h>E((u-x)/a))&&T("overflow"),x+=h*a,!(h<(d=s<=S?c:s>=S+p?p:s-S));s+=l)a>E(u/(g=l-d))&&T("overflow"),a*=g;S=O(x-o,t=b.length+1,0==o),E(x/t)>u-_&&T("overflow"),_+=E(x/t),x%=t,b.splice(x++,0,_)}return A(b)}function F(e){var t,r,n,i,o,a,s,h,d,g,y,b,w,x,S,D=[];for(b=(e=k(e)).length,t=m,r=0,o=f,a=0;a=t&&yE((u-r)/(w=n+1))&&T("overflow"),r+=(s-t)*w,t=s,a=0;au&&T("overflow"),y==t){for(h=r,d=l;!(h<(g=d<=o?c:d>=o+p?p:d-o));d+=l)S=h-g,x=l-g,D.push(_(C(g+S%x,0))),h=E(S/x);D.push(_(C(h,0))),o=O(r,w,n==i),r=0,++n}++r,++t}return D.join("")}s={version:"1.4.1",ucs2:{decode:k,encode:A},decode:I,encode:F,toASCII:function(e){return D(e,function(e){return y.test(e)?"xn--"+F(e):e})},toUnicode:function(e){return D(e,function(e){return g.test(e)?I(e.slice(4).toLowerCase()):e})}},void 0===(i=function(){return s}.call(t,r,t,e))||(e.exports=i)}()}).call(this,r(117)(e),r(43))},function(e,t,r){"use strict";var n=r(257),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=p;var o=r(154);o.inherits=r(28);var a=r(470),s=r(322);o.inherits(p,a);for(var u=i(s.prototype),l=0;l=0;l--)if(c[l]!==p[l])return!1;for(l=c.length-1;l>=0;l--)if(u=c[l],!y(e[u],t[u],r,n))return!1;return!0}(e,t,r,a))}return r?e===t:e==t}function b(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(r){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function x(e,t,r,n){var i;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(r){t=r}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&v(i,r,"Missing expected exception"+n);var a="string"===typeof n,s=!e&&i&&!r;if((!e&&o.isError(i)&&a&&w(i,r)||s)&&v(i,r,"Got unwanted exception"+n),e&&i&&r&&!w(i,r)||!e&&i)throw i}p.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=f(m((t=this).actual),128)+" "+t.operator+" "+f(m(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var n=new Error;if(n.stack){var i=n.stack,o=d(r),a=i.indexOf("\n"+o);if(a>=0){var s=i.indexOf("\n",a+1);i=i.substring(s+1)}this.stack=i}}},o.inherits(p.AssertionError,Error),p.fail=v,p.ok=g,p.equal=function(e,t,r){e!=t&&v(e,t,r,"==",p.equal)},p.notEqual=function(e,t,r){e==t&&v(e,t,r,"!=",p.notEqual)},p.deepEqual=function(e,t,r){y(e,t,!1)||v(e,t,r,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(e,t,r){y(e,t,!0)||v(e,t,r,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(e,t,r){y(e,t,!1)&&v(e,t,r,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function e(t,r,n){y(t,r,!0)&&v(t,r,n,"notDeepStrictEqual",e)},p.strictEqual=function(e,t,r){e!==t&&v(e,t,r,"===",p.strictEqual)},p.notStrictEqual=function(e,t,r){e===t&&v(e,t,r,"!==",p.notStrictEqual)},p.throws=function(e,t,r){x(!0,e,t,r)},p.doesNotThrow=function(e,t,r){x(!1,e,t,r)},p.ifError=function(e){if(e)throw e};var E=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(this,r(43))},function(e,t,r){"use strict";var n=r(1101),i=r(1119),o=r(1120),a=new Set(i);t.labelToName=function(e){return e=String(e).trim().toLowerCase(),o[e]||null},t.decode=function(e,r){var i=r;if(!t.isSupported(i))throw new RangeError('"'.concat(i,'" is not a supported encoding name'));var o=t.getBOMEncoding(e);return null!==o&&(i=o),n.decode(e,i)},t.getBOMEncoding=function(e){return 254===e[0]&&255===e[1]?"UTF-16BE":255===e[0]&&254===e[1]?"UTF-16LE":239===e[0]&&187===e[1]&&191===e[2]?"UTF-8":null},t.isSupported=function(e){return a.has(String(e))}},function(e,t,r){"use strict";var n=r(3),i=r(7),o=r(31),a=r(224),s=r(39).domSymbolTree,u=r(4),l=r(52).interface,c=function(){function e(){n(this,e),this._eventListeners=Object.create(null)}return i(e,[{key:"addEventListener",value:function(e,t,r){if(void 0===t||null===t)t=null;else if("object"!==typeof t&&"function"!==typeof t)throw new TypeError("Only undefined, null, an object, or a function are allowed for the callback parameter");if(r=h(r,["capture","once"]),null!==t){this._eventListeners[e]||(this._eventListeners[e]=[]);for(var n=0;n=0&&!e._stopPropagationFlag;--o){var a=r[o];p((u.implForWrapper(a)||a)._eventListeners[e.type],a,e)}(e.eventPhase=l.AT_TARGET,e._stopPropagationFlag)||this._eventListeners[e.type]&&p(this._eventListeners[e.type],e.target,e);if(e.bubbles){e.eventPhase=l.BUBBLING_PHASE;for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:{}).context,n=void 0===r?"The provided value":r;if(e.exports.is(t))return i.implForWrapper(t);throw new TypeError("".concat(n," is not of type 'UIEvent'."))},create:function(e,t){var r=Object.create(u.prototype);return r=this.setup(r,e,t)},createImpl:function(e,t){var r=Object.create(u.prototype);return r=this.setup(r,e,t),i.implForWrapper(r)},_internalSetup:function(e){s._internalSetup(e)},setup:function(e,t,r){return r||(r={}),r.wrapper=e,this._internalSetup(e),Object.defineProperty(e,a,{value:new c.implementation(t,r),writable:!1,enumerable:!1,configurable:!0}),e[a][i.wrapperSymbol]=e,c.init&&c.init(e[a],r),e},interface:u,expose:{Window:{UIEvent:u}}};e.exports=l;var c=r(165)},function(e,t,r){"use strict";var n=r(3),i=r(7),o=r(234),a=r(52),s=r(72).isDisabled,u=r(65).closest;t.implementation=function(){function e(){n(this,e)}return i(e,[{key:"checkValidity",value:function(){return!this._isCandidateForConstraintValidation()||(!!this._satisfiesConstraints()||(this.dispatchEvent(a.createImpl(["invalid",{cancelable:!0}])),!1))}},{key:"setCustomValidity",value:function(e){this._customValidityErrorMessage=e}},{key:"reportValidity",value:function(){return this.checkValidity()}},{key:"_isCandidateForConstraintValidation",value:function(){return!s(this)&&null===u(this,"datalist")&&!this._barredFromConstraintValidationSpecialization()}},{key:"_isBarredFromConstraintValidation",value:function(){return!this._isCandidateForConstraintValidation()}},{key:"_satisfiesConstraints",value:function(){return this.validity.valid}},{key:"willValidate",get:function(){return this._isCandidateForConstraintValidation()}},{key:"validity",get:function(){return this._validity||(this._validity=o.createImpl(this)),this._validity}},{key:"validationMessage",get:function(){var e=this.validity;return!this._isCandidateForConstraintValidation()||this._satisfiesConstraints()?"":e.customError?this._customValidityErrorMessage:"Constraints not satisfied"}}]),e}()},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,r){"use strict";var n=r(13),i=r(14);function o(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:a(e)}]}}function a(e){if("number"===typeof e||"boolean"===typeof e||"string"===typeof e||"undefined"===typeof e||null===e)return null;if(Array.isArray(e))return a(e[0]);var t=[];return Object.keys(e).forEach(function(r){var n={kind:"Field",name:{kind:"Name",value:r},selectionSet:a(e[r])||void 0};t.push(n)}),{kind:"SelectionSet",selections:t}}var s,u={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},l=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(i.j)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(i.j)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t,r,n=e.id,i=e.data;if("undefined"!==typeof n){var s=null;try{s=this.read({rootId:n,optimistic:!1,query:u})}catch(p){}var l=s&&s.__typename||"__ClientData",c=Object.assign({__typename:l},i);this.writeFragment({id:n,fragment:(t=c,r=l,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:a(t)}]}),data:c})}else this.writeQuery({query:o(i),data:i})},e}();s||(s={});var c=r(238),p="Invariant Violation",h=Object.setPrototypeOf,d=void 0===h?function(e,t){return e.__proto__=t,e}:h,f=function(e){function t(r){void 0===r&&(r=p);var n=e.call(this,r)||this;return n.framesToPop=1,n.name=p,d(n,t.prototype),n}return Object(n.c)(t,e),t}(Error);function m(e,t){if(!e)throw new f(t)}!function(e){e.warn=function(){for(var e=[],t=0;t-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach(function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map(function(e){return e.name}))}),t}}(),function(){function e(){this.children=null,this.key=null}return e.prototype.lookup=function(){for(var e=[],t=0;t0;return v&&!s&&m.missing.forEach(function(e){if(!e.tolerable)throw new f}),o&&Object(i.t)(o,m.result)&&(m.result=o),{result:m.result,complete:!v}},e.prototype.executeStoreQuery=function(e){var t=e.query,r=e.rootValue,n=e.contextValue,o=e.variableValues,a=e.fragmentMatcher,s=void 0===a?I:a,u=Object(i.k)(t),l=Object(i.i)(t),c={query:t,fragmentMap:Object(i.f)(l),contextValue:n,variableValues:o,fragmentMatcher:s};return this.executeSelectionSet({selectionSet:u.selectionSet,rootValue:r,execContext:c})},e.prototype.executeSelectionSet=function(e){var t=this,r=e.selectionSet,o=e.rootValue,a=e.execContext,s=a.fragmentMap,u=a.contextValue,l=a.variableValues,c={result:null},p=[],h=u.store.get(o.id),d=h&&h.__typename||"ROOT_QUERY"===o.id&&"Query"||void 0;function m(e){var t;return e.missing&&(c.missing=c.missing||[],(t=c.missing).push.apply(t,e.missing)),e.result}return r.selections.forEach(function(e){var r;if(Object(i.F)(e,l))if(Object(i.u)(e)){var c=m(t.executeField(h,d,e,a));"undefined"!==typeof c&&p.push(((r={})[Object(i.E)(e)]=c,r))}else{var v=void 0;if(Object(i.w)(e))v=e;else if(!(v=s[e.name.value]))throw new f;var g=v.typeCondition.name.value,y=a.fragmentMatcher(o,g,u);if(y){var b=t.executeSelectionSet({selectionSet:v.selectionSet,rootValue:o,execContext:a});"heuristic"===y&&b.missing&&(b=Object(n.a)({},b,{missing:b.missing.map(function(e){return Object(n.a)({},e,{tolerable:!0})})})),p.push(m(b))}}}),c.result=Object(i.B)(p),c},e.prototype.executeField=function(e,t,r,n){var o=n.variableValues,a=n.contextValue,s=function(e,t,r,n,o,a){a.resultKey;var s=a.directives,u=r;(n||s)&&(u=Object(i.p)(u,n,s));var l=void 0;if(e&&"undefined"===typeof(l=e[u])&&o.cacheRedirects&&"string"===typeof t){var c=o.cacheRedirects[t];if(c){var p=c[r];p&&(l=p(e,n,{getCacheKey:function(e){return Object(i.H)({id:o.dataIdFromObject(e),typename:e.__typename})}}))}}if("undefined"===typeof l)return{result:l,missing:[{object:e,fieldName:u,tolerable:!1}]};Object(i.x)(l)&&(l=l.json);return{result:l}}(e,t,r.name.value,Object(i.b)(r,o),a,{resultKey:Object(i.E)(r),directives:Object(i.h)(r,o)});return Array.isArray(s.result)?this.combineExecResults(s,this.executeSubSelectedArray(r,s.result,n)):r.selectionSet?null==s.result?s:this.combineExecResults(s,this.executeSelectionSet({selectionSet:r.selectionSet,rootValue:s.result,execContext:n})):(O(r,s.result),s)},e.prototype.combineExecResults=function(){for(var e=[],t=0;t=0)return!0;r[e].push(t)}else r[e]=[t];return!1}var B={fragmentMatcher:new T,dataIdFromObject:function(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null},addTypename:!0,resultCaching:!0};var R=Object.prototype.hasOwnProperty,L=function(e){function t(t,r,n){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=r,i.transaction=n,i}return Object(n.c)(t,e),t.prototype.toObject=function(){return Object(n.a)({},this.parent.toObject(),this.data)},t.prototype.get=function(e){return R.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(F),U=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;r.watches=new Set,r.typenameDocumentCache=new Map,r.cacheKeyRoot=new S,r.silenceBroadcast=!1,r.config=Object(n.a)({},B,t),r.config.customResolvers&&(r.config.cacheRedirects=r.config.customResolvers),r.config.cacheResolvers&&(r.config.cacheRedirects=r.config.cacheResolvers),r.addTypename=r.config.addTypename,r.data=r.config.resultCaching?new k:new F,r.optimisticData=r.data,r.storeReader=new C(r.cacheKeyRoot),r.storeWriter=new P;var i=r,o=i.maybeBroadcastWatch;return r.maybeBroadcastWatch=Object(c.wrap)(function(e){return o.call(r,e)},{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return i.data instanceof k?i.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),r}return Object(n.c)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){return"string"===typeof e.rootId&&"undefined"===typeof this.data.get(e.rootId)?null:this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:this.config.fragmentMatcher.match,previousResult:e.previousResult,config:this.config})},t.prototype.write=function(e){this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:this.config.fragmentMatcher.match}),this.broadcastWatches()},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:this.config.fragmentMatcher.match,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new f},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],r=0,n=this.optimisticData;n instanceof L;)n.optimisticId===e?++r:t.push(n),n=n.parent;if(r>0){for(this.optimisticData=n;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var r=this.data,n=this.silenceBroadcast;this.silenceBroadcast=!0,"string"===typeof t&&(this.data=this.optimisticData=new L(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=n,this.data=r}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(i.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach(function(t){return e.maybeBroadcastWatch(t)})},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(l)},function(e,t,r){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=r(744)},function(e,t,r){"use strict";function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(l){return void r(l)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)})}}r.d(t,"a",function(){return i})},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e){for(var t=1;to)throw new RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0)if(e>i)for(var u=0;u0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)o(u,this,t);else{var l=u.length,c=f(u,l);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){(function(e){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"===typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"===typeof e},t.isString=function(e){return"string"===typeof e},t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"===typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"===typeof e},t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=e.isBuffer}).call(this,r(24).Buffer)},function(e,t,r){var n=r(25).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"===typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){(function(e){var n=r(989),i=r(504),o=r(991),a=r(992),s=r(89),u=t;u.request=function(t,r){t="string"===typeof t?s.parse(t):o(t);var i=-1===e.location.protocol.search(/^https?:$/)?"http:":"",a=t.protocol||i,u=t.hostname||t.host,l=t.port,c=t.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),t.url=(u?a+"//"+u:"")+(l?":"+l:"")+c,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var p=new n(t);return r&&p.on("response",r),p},u.get=function(e,t){var r=u.request(e,t);return r.end(),r},u.ClientRequest=n,u.IncomingMessage=i.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=a,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,r(43))},function(e,t,r){"use strict";function n(e,t,r){var n=r?" !== ":" === ",i=r?" || ":" && ",o=r?"!":"",a=r?"":"!";switch(e){case"null":return t+n+"null";case"array":return o+"Array.isArray("+t+")";case"object":return"("+o+t+i+"typeof "+t+n+'"object"'+i+a+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+n+'"number"'+i+a+"("+t+" % 1)"+i+t+n+t+")";default:return"typeof "+t+n+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t){switch(e.length){case 1:return n(e[0],t,!0);default:var r="",i=o(e);for(var a in i.array&&i.object&&(r=i.null?"(":"(!"+t+" || ",r+="typeof "+t+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer,i)r+=(r?" && ":"")+n(a,t,!0);return r}},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(o="data"+(t-n||""),!i)return o}for(var s=o,l=i.split("/"),c=0;c0&&void 0!==arguments[0]?arguments[0]:{}).allowParameters,t=void 0!==e&&e;switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return t||0===this._parameters.size;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return t||0===this._parameters.size;default:return!1}default:return!1}}},{key:"isXML",value:function(){return"xml"===this._subtype&&("text"===this._type||"application"===this._type)||this._subtype.endsWith("+xml")}},{key:"isHTML",value:function(){return"html"===this._subtype&&"text"===this._type}},{key:"essence",get:function(){return"".concat(this.type,"/").concat(this.subtype)}},{key:"type",get:function(){return this._type},set:function(e){if(0===(e=u(String(e))).length)throw new Error("Invalid type: must be a non-empty string");if(!l(e))throw new Error("Invalid type ".concat(e,": must contain only HTTP token code points"));this._type=e}},{key:"subtype",get:function(){return this._subtype},set:function(e){if(0===(e=u(String(e))).length)throw new Error("Invalid subtype: must be a non-empty string");if(!l(e))throw new Error("Invalid subtype ".concat(e,": must contain only HTTP token code points"));this._subtype=e}},{key:"parameters",get:function(){return this._parameters}}],[{key:"parse",value:function(e){try{return new this(e)}catch(t){return null}}}]),e}();var p=function(){function e(t){n(this,e),this._map=t}return i(e,[{key:"get",value:function(e){return e=u(String(e)),this._map.get(e)}},{key:"has",value:function(e){return e=u(String(e)),this._map.has(e)}},{key:"set",value:function(e,t){if(e=u(String(e)),t=String(t),!l(e))throw new Error('Invalid MIME type parameter name "'.concat(e,'": only HTTP token code points are valid.'));if(!c(t))throw new Error('Invalid MIME type parameter value "'.concat(t,'": only HTTP quoted-string token code points are ')+"valid.");return this._map.set(e,t)}},{key:"clear",value:function(){this._map.clear()}},{key:"delete",value:function(e){return e=u(String(e)),this._map.delete(e)}},{key:"forEach",value:function(e,t){this._map.forEach(e,t)}},{key:"keys",value:function(){return this._map.keys()}},{key:"values",value:function(){return this._map.values()}},{key:"entries",value:function(){return this._map.entries()}},{key:Symbol.iterator,value:function(){return this._map[Symbol.iterator]()}},{key:"size",get:function(){return this._map.size}}]),e}()},function(e,t,r){var n={CSSStyleDeclaration:function(){this.length=0,this.parentRule=null,this._importants={}}};n.CSSStyleDeclaration.prototype={constructor:n.CSSStyleDeclaration,getPropertyValue:function(e){return this[e]||""},setProperty:function(e,t,r){this[e]?Array.prototype.indexOf.call(this,e)<0&&(this[this.length]=e,this.length++):(this[this.length]=e,this.length++);this[e]=t+"",this._importants[e]=r},removeProperty:function(e){if(!(e in this))return"";var t=Array.prototype.indexOf.call(this,e);if(t<0)return"";var r=this[e];return this[e]="",Array.prototype.splice.call(this,t,1),r},getPropertyCSSValue:function(){},getPropertyPriority:function(e){return this._importants[e]||""},getPropertyShorthand:function(){},isPropertyImplicit:function(){},get cssText(){for(var e=[],t=0,r=this.length;t1&&void 0!==arguments[1]?arguments[1]:{}).context,n=void 0===r?"The provided value":r;if(e.exports.is(t))return i.implForWrapper(t);throw new TypeError("".concat(n," is not of type 'Document'."))},create:function(e,t){var r=Object.create(d.prototype);return r=this.setup(r,e,t)},createImpl:function(e,t){var r=Object.create(d.prototype);return r=this.setup(r,e,t),i.implForWrapper(r)},_internalSetup:function(t){l._internalSetup(t),Object.defineProperty(t,"location",{get:function(){if(!this||!e.exports.is(this))throw new TypeError("Illegal invocation");return i.tryWrapperForImpl(t[u].location)},set:function(t){if(!this||!e.exports.is(this))throw new TypeError("Illegal invocation");this.location.href=t},enumerable:!0,configurable:!1})},setup:function(e,t,r){return r||(r={}),r.wrapper=e,this._internalSetup(e),Object.defineProperty(e,u,{value:new m.implementation(t,r),writable:!1,enumerable:!1,configurable:!0}),e[u][i.wrapperSymbol]=e,m.init&&m.init(e[u],r),e},interface:d,expose:{Window:{Document:d}}};e.exports=f,c._mixedIntoPredicates.push(e.exports.is),p._mixedIntoPredicates.push(e.exports.is),h._mixedIntoPredicates.push(e.exports.is);var m=r(368)},function(e,t,r){"use strict";var n=r(3),i=r(7),o=r(9),a=r(8),s=r(1),u=r(10),l=r(136).implementation,c=r(39).domSymbolTree,p=r(26).simultaneousIterators,h=r(31),d=r(38),f=r(557),m=r(225),v=r(91).documentBaseURLSerialized,g=r(163),y=g.clone,b=g.locateNamespacePrefix,w=g.locateNamespace,x=r(105);function E(e){return e.nodeType===d.ENTITY_NODE||e.nodeType===d.ENTITY_REFERENCE_NODE||e.nodeType===d.NOTATION_NODE||e.nodeType===d.CDATA_SECTION_NODE}var _=function(e){function t(e,r){var i;return n(this,t),i=o(this,a(t).call(this)),c.initialize(s(i)),i._ownerDocument=r.ownerDocument,i._childNodesList=null,i._childrenList=null,i._version=0,i._memoizedQueries={},i}return u(t,l),i(t,[{key:"getRootNode",value:function(){var e,t=!0,r=!1,n=void 0;try{for(var i,o=c.ancestorsIterator(this)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){e=i.value}}catch(a){r=!0,n=a}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}return e}},{key:"insertBefore",value:function(e,t){if(e.nodeType===d.DOCUMENT_TYPE_NODE&&(e._ownerDocument=this._ownerDocument),e.nodeType&&e.nodeType===d.ATTRIBUTE_NODE)throw new h("The operation would yield an incorrect node tree.","HierarchyRequestError");if(this._ownerDocument!==e._ownerDocument)this._ownerDocument.adoptNode(e);else{var r=!0,n=!1,i=void 0;try{for(var o,a=c.ancestorsIterator(this)[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){if(o.value===e)throw new h("The operation would yield an incorrect node tree.","HierarchyRequestError")}}catch(l){n=!0,i=l}finally{try{r||null==a.return||a.return()}finally{if(n)throw i}}}if(e.nodeType===d.DOCUMENT_FRAGMENT_NODE)for(var s;s=c.firstChild(e);)e.removeChild(s),this.insertBefore(s,t);else{if(e===t)return e;var u=c.parent(e);if(u&&u.removeChild(e),null===t)c.appendChild(this,e);else{if(c.parent(t)!==this)throw new h("The object can not be found here.","NotFoundError");c.insertBefore(t,e)}this._modified(),e.nodeType===d.TEXT_NODE&&this._childTextContentChangeSteps(),this._attached&&e._attach&&e._attach(),this._descendantAdded(this,e)}return e}},{key:"_modified",value:function(){this._version++;var e=!0,t=!1,r=void 0;try{for(var n,i=c.ancestorsIterator(this)[Symbol.iterator]();!(e=(n=i.next()).done);e=!0){n.value._version++}}catch(o){t=!0,r=o}finally{try{e||null==i.return||i.return()}finally{if(t)throw r}}this._childrenList&&this._childrenList._update(),this._childNodesList&&this._childNodesList._update(),this._clearMemoizedQueries()}},{key:"_childTextContentChangeSteps",value:function(){}},{key:"_clearMemoizedQueries",value:function(){this._memoizedQueries={};var e=c.parent(this);e&&e._clearMemoizedQueries()}},{key:"_descendantRemoved",value:function(e,t){var r=c.parent(this);r&&r._descendantRemoved(e,t)}},{key:"_descendantAdded",value:function(e,t){var r=c.parent(this);r&&r._descendantAdded(e,t)}},{key:"replaceChild",value:function(e,t){return this.insertBefore(e,t),this.removeChild(t)}},{key:"_attach",value:function(){this._attached=!0;var e=!0,t=!1,r=void 0;try{for(var n,i=c.childrenIterator(this)[Symbol.iterator]();!(e=(n=i.next()).done);e=!0){var o=n.value;o._attach&&o._attach()}}catch(a){t=!0,r=a}finally{try{e||null==i.return||i.return()}finally{if(t)throw r}}}},{key:"_detach",value:function(){this._attached=!1,this._ownerDocument&&this._ownerDocument._lastFocusedElement===this&&(this._ownerDocument._lastFocusedElement=null);var e=!0,t=!1,r=void 0;try{for(var n,i=c.childrenIterator(this)[Symbol.iterator]();!(e=(n=i.next()).done);e=!0){var o=n.value;o._detach&&o._detach()}}catch(a){t=!0,r=a}finally{try{e||null==i.return||i.return()}finally{if(t)throw r}}}},{key:"removeChild",value:function(e){if(!e||c.parent(e)!==this)throw new h("The object can not be found here.","NotFoundError");return this._ownerDocument&&this._ownerDocument._runPreRemovingSteps(e),c.remove(e),this._modified(),e._detach(),this._descendantRemoved(this,e),e.nodeType===d.TEXT_NODE&&this._childTextContentChangeSteps(),e}},{key:"appendChild",value:function(e){return this.insertBefore(e,null)}},{key:"hasChildNodes",value:function(){return c.hasChildren(this)}},{key:"normalize",value:function(){var e=!0,t=!1,r=void 0;try{for(var n,i=c.childrenIterator(this)[Symbol.iterator]();!(e=(n=i.next()).done);e=!0){var o=n.value;if(o.normalize&&o.normalize(),o.nodeType===d.TEXT_NODE)if(""!==o.nodeValue){var a=c.previousSibling(o);a&&a.nodeType===d.TEXT_NODE&&(a.appendData(o.nodeValue),this.removeChild(o))}else this.removeChild(o)}}catch(s){t=!0,r=s}finally{try{e||null==i.return||i.return()}finally{if(t)throw r}}}},{key:"compareDocumentPosition",value:function(e){if(E(this)||E(e))throw new Error("Obsolete node type");var t=c.compareTreePosition(this,e);return t===f.DOCUMENT_POSITION_DISCONNECTED?f.DOCUMENT_POSITION_DISCONNECTED|f.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|f.DOCUMENT_POSITION_FOLLOWING:t}},{key:"lookupPrefix",value:function(e){if(null===e||""===e)return null;switch(this.nodeType){case d.ELEMENT_NODE:return b(this,e);case d.DOCUMENT_NODE:return null!==this.documentElement?b(this.documentElement,e):null;case d.DOCUMENT_TYPE_NODE:case d.DOCUMENT_FRAGMENT_NODE:return null;case d.ATTRIBUTE_NODE:return null!==this._element?b(this._element,e):null;default:return null!==this.parentElement?b(this.parentElement,e):null}}},{key:"lookupNamespaceURI",value:function(e){return""===e&&(e=null),w(this,e)}},{key:"isDefaultNamespace",value:function(e){return""===e&&(e=null),w(this,null)===e}},{key:"contains",value:function(e){return null!==e&&(this===e||Boolean(this.compareDocumentPosition(e)&f.DOCUMENT_POSITION_CONTAINED_BY))}},{key:"isEqualNode",value:function(e){return null!==e&&(this===e||function e(t,r){if(t.nodeType!==r.nodeType)return!1;switch(t.nodeType){case d.DOCUMENT_TYPE_NODE:if(t.name!==r.name||t.publicId!==r.publicId||t.systemId!==r.systemId)return!1;break;case d.ELEMENT_NODE:if(t._namespaceURI!==r._namespaceURI||t._prefix!==r._prefix||t._localName!==r._localName||t._attributes.length!==r._attributes.length)return!1;break;case d.PROCESSING_INSTRUCTION_NODE:if(t._target!==r._target||t._data!==r._data)return!1;break;case d.TEXT_NODE:case d.COMMENT_NODE:if(t._data!==r._data)return!1}if(t.nodeType===d.ELEMENT_NODE&&!x.attributeListsEqual(t,r))return!1;var n=!0,i=!1,o=void 0;try{for(var a,s=p(c.childrenIterator(t),c.childrenIterator(r))[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;if(!u[0]||!u[1])return!1;if(!e(u[0],u[1]))return!1}}catch(l){i=!0,o=l}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return!0}(this,e))}},{key:"isSameNode",value:function(e){return this===e}},{key:"cloneNode",value:function(e){return e=Boolean(e),y(this,void 0,e)}},{key:"parentNode",get:function(){return c.parent(this)}},{key:"nodeName",get:function(){switch(this.nodeType){case d.ELEMENT_NODE:return this.tagName;case d.TEXT_NODE:return"#text";case d.CDATA_SECTION_NODE:return"#cdata-section";case d.PROCESSING_INSTRUCTION_NODE:return this.target;case d.COMMENT_NODE:return"#comment";case d.DOCUMENT_NODE:return"#document";case d.DOCUMENT_TYPE_NODE:return this.name;case d.DOCUMENT_FRAGMENT_NODE:return"#document-fragment"}return null}},{key:"firstChild",get:function(){return c.firstChild(this)}},{key:"isConnected",get:function(){var e=!0,t=!1,r=void 0;try{for(var n,i=c.ancestorsIterator(this)[Symbol.iterator]();!(e=(n=i.next()).done);e=!0){if(n.value.nodeType===d.DOCUMENT_NODE)return!0}}catch(o){t=!0,r=o}finally{try{e||null==i.return||i.return()}finally{if(t)throw r}}return!1}},{key:"ownerDocument",get:function(){return this.nodeType===d.DOCUMENT_NODE?null:this._ownerDocument}},{key:"lastChild",get:function(){return c.lastChild(this)}},{key:"childNodes",get:function(){var e=this;return this._childNodesList?this._childNodesList._update():this._childNodesList=m.createImpl([],{element:this,query:function(){return c.childrenToArray(e)}}),this._childNodesList}},{key:"nextSibling",get:function(){return c.nextSibling(this)}},{key:"previousSibling",get:function(){return c.previousSibling(this)}},{key:"parentElement",get:function(){var e=c.parent(this);return null!==e&&e.nodeType===d.ELEMENT_NODE?e:null}},{key:"baseURI",get:function(){return v(this._ownerDocument)}},{key:"nodeValue",get:function(){switch(this.nodeType){case d.ATTRIBUTE_NODE:return this._value;case d.TEXT_NODE:case d.CDATA_SECTION_NODE:case d.PROCESSING_INSTRUCTION_NODE:case d.COMMENT_NODE:return this._data;default:return null}},set:function(e){switch(null===e&&(e=""),this.nodeType){case d.ATTRIBUTE_NODE:x.setAnExistingAttributeValue(this,e);break;case d.TEXT_NODE:case d.CDATA_SECTION_NODE:case d.PROCESSING_INSTRUCTION_NODE:case d.COMMENT_NODE:this.replaceData(0,this.length,e)}}},{key:"textContent",get:function(){switch(this.nodeType){case d.DOCUMENT_FRAGMENT_NODE:case d.ELEMENT_NODE:var e="",t=!0,r=!1,n=void 0;try{for(var i,o=c.treeIterator(this)[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value;a.nodeType!==d.TEXT_NODE&&a.nodeType!==d.CDATA_SECTION_NODE||(e+=a.nodeValue)}}catch(s){r=!0,n=s}finally{try{t||null==o.return||o.return()}finally{if(r)throw n}}return e;case d.ATTRIBUTE_NODE:return this._value;case d.TEXT_NODE:case d.CDATA_SECTION_NODE:case d.PROCESSING_INSTRUCTION_NODE:case d.COMMENT_NODE:return this._data;default:return null}},set:function(e){switch(this.nodeType){case d.DOCUMENT_FRAGMENT_NODE:case d.ELEMENT_NODE:for(var t=c.firstChild(this);t;)this.removeChild(t),t=c.firstChild(this);null!==e&&""!==e&&this.appendChild(this._ownerDocument.createTextNode(e));break;case d.ATTRIBUTE_NODE:x.setAnExistingAttributeValue(this,e);break;case d.TEXT_NODE:case d.CDATA_SECTION_NODE:case d.PROCESSING_INSTRUCTION_NODE:case d.COMMENT_NODE:this.replaceData(0,this.length,e)}}}]),t}();e.exports={implementation:_}},function(e,t,r){"use strict";var n=r(105),i=r(39),o=i.cloningSteps,a=i.domSymbolTree,s=r(38),u=r(558).parse,l=r(71),c=l.asciiCaseInsensitiveMatch,p=l.asciiLowercase,h=r(70),d=h.HTML_NS,f=h.XMLNS_NS,m=r(94);e.exports.clone=function(t,r,i){var u;switch(void 0===r&&(r=t._ownerDocument),t.nodeType){case s.DOCUMENT_NODE:(u=r.implementation.createDocument(null,"",null))._encoding=t._encoding,u.contentType=t.contentType,u._URL=t._URL,u.origin=t.origin,u._parsingMode=t._parsingMode;break;case s.DOCUMENT_TYPE_NODE:u=r.implementation.createDocumentType(t.name,t.publicId,t.systemId);break;case s.ELEMENT_NODE:(u=r._createElementWithCorrectElementInterface(t._localName,t._namespaceURI))._prefix=t._prefix,n.copyAttributeList(t,u);break;case s.TEXT_NODE:u=r.createTextNode(t._data);break;case s.CDATA_SECTION_NODE:u=r.createCDATASection(t._data);break;case s.COMMENT_NODE:u=r.createComment(t._data);break;case s.PROCESSING_INSTRUCTION_NODE:u=r.createProcessingInstruction(t.target,t._data);break;case s.DOCUMENT_FRAGMENT_NODE:u=r.createDocumentFragment()}if(t[o]&&t[o](u,t,r,i),i){var l=!0,c=!1,p=void 0;try{for(var h,d=a.childrenIterator(t)[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){var f=h.value,m=e.exports.clone(f,r,!0);u.appendChild(m)}}catch(v){c=!0,p=v}finally{try{l||null==d.return||d.return()}finally{if(c)throw p}}}return u},e.exports.listOfElementsWithClassNames=function(e,t){var r=u(e);return 0===r.size?m.createImpl([],{element:t,query:function(){return[]}}):m.createImpl([],{element:t,query:function(){var e="BackCompat"===t._ownerDocument.compatMode;return a.treeToArray(t,{filter:function(n){if(n.nodeType!==s.ELEMENT_NODE||n===t)return!1;var i=n.classList;if(e){var o=!0,a=!1,u=void 0;try{for(var l,p=function(){var e=l.value;if(!i.tokenSet.some(function(t){return c(t,e)}))return{v:!1}},h=r[Symbol.iterator]();!(o=(l=h.next()).done);o=!0){var d=p();if("object"===typeof d)return d.v}}catch(w){a=!0,u=w}finally{try{o||null==h.return||h.return()}finally{if(a)throw u}}}else{var f=!0,m=!1,v=void 0;try{for(var g,y=r[Symbol.iterator]();!(f=(g=y.next()).done);f=!0){var b=g.value;if(!i.tokenSet.contains(b))return!1}}catch(w){m=!0,v=w}finally{try{f||null==y.return||y.return()}finally{if(m)throw v}}}return!0}})}})},e.exports.listOfElementsWithQualifiedName=function(e,t){if("*"===e)return m.createImpl([],{element:t,query:function(){return a.treeToArray(t,{filter:function(e){return e.nodeType===s.ELEMENT_NODE&&e!==t}})}});if("html"===t._ownerDocument._parsingMode){var r=p(e);return m.createImpl([],{element:t,query:function(){return a.treeToArray(t,{filter:function(n){return n.nodeType===s.ELEMENT_NODE&&n!==t&&(n._namespaceURI===d?n._qualifiedName===r:n._qualifiedName===e)}})}})}return m.createImpl([],{element:t,query:function(){return a.treeToArray(t,{filter:function(r){return r.nodeType===s.ELEMENT_NODE&&r!==t&&r._qualifiedName===e}})}})},e.exports.listOfElementsWithNamespaceAndLocalName=function(e,t,r){return""===e&&(e=null),"*"===e&&"*"===t?m.createImpl([],{element:r,query:function(){return a.treeToArray(r,{filter:function(e){return e.nodeType===s.ELEMENT_NODE&&e!==r}})}}):"*"===e?m.createImpl([],{element:r,query:function(){return a.treeToArray(r,{filter:function(e){return e.nodeType===s.ELEMENT_NODE&&e!==r&&e._localName===t}})}}):"*"===t?m.createImpl([],{element:r,query:function(){return a.treeToArray(r,{filter:function(t){return t.nodeType===s.ELEMENT_NODE&&t!==r&&t._namespaceURI===e}})}}):m.createImpl([],{element:r,query:function(){return a.treeToArray(r,{filter:function(n){return n.nodeType===s.ELEMENT_NODE&&n!==r&&(n._localName===t&&n._namespaceURI===e)}})}})},t.convertNodesIntoNode=function(e,t){if(1===t.length)return"string"===typeof t[0]?e.createTextNode(t[0]):t[0];for(var r=e.createDocumentFragment(),n=0;n1&&void 0!==arguments[1]?arguments[1]:{}).context,n=void 0===r?"The provided value":r;if(e.exports.is(t))return i.implForWrapper(t);throw new TypeError("".concat(n," is not of type 'Attr'."))},create:function(e,t){var r=Object.create(a.prototype);return r=this.setup(r,e,t)},createImpl:function(e,t){var r=Object.create(a.prototype);return r=this.setup(r,e,t),i.implForWrapper(r)},_internalSetup:function(e){},setup:function(e,t,r){return r||(r={}),r.wrapper=e,this._internalSetup(e),Object.defineProperty(e,o,{value:new u.implementation(t,r),writable:!1,enumerable:!1,configurable:!0}),e[o][i.wrapperSymbol]=e,u.init&&u.init(e[o],r),e},interface:a,expose:{Window:{Attr:a}}};e.exports=s;var u=r(1164)},function(e,t,r){"use strict";var n=r(3),i=r(7),o=r(9),a=r(8),s=r(10),u=r(4),l=r(230),c=r(103).implementation;function p(e){if("object"!==typeof e)return!1;var t=u.wrapperForImpl(e);return"object"===typeof t?t===t._globalProxy:p(u.implForWrapper(e))}var h=function(e){function t(e,r){n(this,t);var i=e[1];if(i&&null!==i.view&&void 0!==i.view&&!p(i.view))throw new TypeError("Failed to construct '".concat((this instanceof t?this.constructor:void 0).name.replace(/Impl$/,""),"': member view is not of ")+"type Window.");return o(this,a(t).call(this,e,r))}return s(t,c),i(t,[{key:"initUIEvent",value:function(e,t,r,n,i){if(null!==n&&!p(n))throw new TypeError("Failed to execute 'initUIEvent' on '".concat(this.constructor.name.replace(/Impl$/,""),"': ")+"parameter 4 is not of type 'Window'.");this._dispatchFlag||(this.initEvent(e,t,r),this.view=n,this.detail=i)}}]),t}();h.defaultInit=l.convert(void 0),e.exports={implementation:h}},function(e,t,r){"use strict";(function(e,n){var i=r(158),o=r(552),a=r(525),s=r(135),u=r(88),l=r(318),c=r(91).documentBaseURLSerialized,p=r(38),h=r(89),d="[object process]"!==Object.prototype.toString.call(e);function f(e,r,n){if("data:"===e.protocol)return function(e,t,r){var n=t.defaultEncoding,i=t.detectMetaCharset;try{var u=o(e);if(n){var l={transportLayerEncodingLabel:u.mimeType.parameters.get("charset"),defaultEncoding:n},c=i?a(u.body,l):s.getBOMEncoding(u.body)||s.labelToName(u.mimeType.parameters.get("charset"))||n,p=s.decode(u.body,c);u.mimeType.parameters.set("charset",c),r(null,p,{headers:{"content-type":u.mimeType.toString()}})}else r(null,u.body,{headers:{"content-type":u.mimeType.toString()}})}catch(h){r(h,null)}return null}(e.href,r,n);if(e.hostname)return t.download(e,r,n);var i=e.pathname.replace(/^file:\/\//,"").replace(/^\/([a-z]):\//i,"$1:/").replace(/%20/g," ");return t.readFile(i,r,n)}t.readFile=function(e,t,r){var i=t.defaultEncoding,o=t.detectMetaCharset,l=u.createReadStream(e),c=n.alloc(0);return l.on("error",r),l.on("data",function(e){c=n.concat([c,e])}),l.on("end",function(){if(i){var e=o?a(c,{defaultEncoding:i}):s.getBOMEncoding(c)||i,t=s.decode(c,e);r(null,t,{headers:{"content-type":"text/plain;charset="+e}})}else r(null,c)}),{abort:function(){l.destroy();var e=new Error("request canceled by user");e.isAbortError=!0,r(e)}}},t.wrapCookieJarForRequest=function(e){var t=l.jar();return t._jar=e,t},t.enqueue=function(e,t,r){var n=e.nodeType===p.DOCUMENT_NODE?e:e._ownerDocument;if(n._queue){var i=function(e,t,r,n){return void 0===n&&(n=function(){}),function(i,o,a){var s=r.createEvent("HTMLEvents");if(!i)try{n.call(e,o,t,a),s.initEvent("load",!1,!1)}catch(l){i=l}if(i){if(!i.isAbortError){s.initEvent("error",!1,!1),s.error=i,e.dispatchEvent(s);var u=new Error("Could not load ".concat(e.localName,': "').concat(t,'"'));u.detail=i,u.type="resource loading",r._defaultView._virtualConsole.emit("jsdomError",u)}}else e.dispatchEvent(s)}}(e,t||n.URL,n,r);return n._queue.push(i)}return function(){}},t.download=function(e,r,n){var o={pool:r.pool,agent:r.agent,agentOptions:r.agentOptions,agentClass:r.agentClass,strictSSL:r.strictSSL,gzip:!0,jar:t.wrapCookieJarForRequest(r.cookieJar),encoding:null,headers:{"User-Agent":r.userAgent,"Accept-Language":"en",Accept:r.accept||"*/*"}};r.referrer&&!d&&(o.headers.referer=r.referrer),r.proxy&&(o.proxy=r.proxy),Object.assign(o.headers,r.headers);var u=r.defaultEncoding,c=r.detectMetaCharset,p=l(e,o,function(e,t,r){if(e)n(e,null,t);else if(u){var o=i.parse(t.headers["content-type"])||new i("text/plain"),l={transportLayerEncodingLabel:o.parameters.get("charset"),defaultEncoding:u},p=c?a(r,l):s.getBOMEncoding(r)||s.labelToName(o.parameters.get("charset"))||u,h=s.decode(r,p);o.parameters.set("charset",p),t.headers["content-type"]=o.toString(),n(null,h,t)}else n(null,r,t)});return{abort:function(){p.abort();var e=new Error("request canceled by user");e.isAbortError=!0,n(e)}}},t.load=function(e,r,n,i){var o=e._ownerDocument,a=o.implementation;if(a._hasFeature("FetchExternalResources",e.tagName.toLowerCase())&&!a._hasFeature("SkipExternalResources",r)){var s=h.parse(r),u=t.enqueue(e,r,i),l=o._customResourceLoader,p=o._requestManager,d=o._cookieJar;n.accept=e._accept,n.cookieJar=d,n.referrer=o.URL,n.pool=o._pool,n.agentOptions=o._agentOptions,n.strictSSL=o._strictSSL,n.proxy=o._proxy,n.userAgent=o._defaultView.navigator.userAgent;var m=null;(m="function"===typeof l?l({element:e,url:s,cookie:d.getCookieStringSync(s,{http:!0}),baseUrl:c(o),defaultFetch:function(e){return f(s,n,e)}},v):f(s,n,v))&&p&&p.add(m)}function v(){m&&p&&p.remove(m),e._ownerDocument&&e._ownerDocument.defaultView.document&&u.apply(this,arguments)}}}).call(this,r(30),r(24).Buffer)},function(e,t,r){var n=r(111),i=r(44),o=r(68),a="[object String]";e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&n(e)==a}},function(e,t,r){"use strict";r.d(t,"a",function(){return a});var n=r(80),i=r.n(n),o={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven",12:"twelve",13:"thirteen",14:"fourteen",15:"fifteen",16:"sixteen"};function a(e){var t=i()(e);return"string"===t||"number"===t?o[e]||e:""}},function(e,t,r){"use strict";e.exports=function(e,t){t||(t={}),"function"===typeof t&&(t={cmp:t});var r,n="boolean"===typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){var i={key:t,value:e[t]},o={key:n,value:e[n]};return r(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"===typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!==typeof t)return JSON.stringify(t);var r,a;if(Array.isArray(t)){for(a="[",r=0;r=300&&l(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||t.hasOwnProperty("data")||t.hasOwnProperty("errors")||l(e,t,"Server response was missing for query '"+(Array.isArray(n)?n.map(function(e){return e.operationName}):n.operationName)+"'."),t})})).then(function(e){return r.next(e),r.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e))}),function(){y&&y.abort()}})})};var h=function(e){function t(t){return e.call(this,p(t).request)||this}return Object(n.c)(t,e),t}(i.a)},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}r.d(t,"a",function(){return n})},function(e,t,r){var n=r(310),i=r(149),o=r(204),a=r(44),s=r(87),u=r(205),l=r(206),c=r(250),p="[object Map]",h="[object Set]",d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||c(e)||o(e)))return!e.length;var t=i(e);if(t==p||t==h)return!e.size;if(l(e))return!n(e).length;for(var r in e)if(d.call(e,r))return!1;return!0}},function(e,t,r){"use strict";var n=r(6),i=r.n(n),o=r(12),a=r.n(o),s=(r(15),r(0)),u=r.n(s),l=r(20),c=r(108),p=r(109),h=r(127);function d(e){var t=e.children,r=e.className,n=e.computer,o=e.color,s=e.floated,h=e.largeScreen,f=e.mobile,m=e.only,v=e.stretched,g=e.tablet,y=e.textAlign,b=e.verticalAlign,w=e.widescreen,x=e.width,E=a()(o,Object(l.a)(v,"stretched"),Object(l.c)(m,"only"),Object(l.d)(y),Object(l.e)(s,"floated"),Object(l.f)(b),Object(l.g)(n,"wide computer"),Object(l.g)(h,"wide large screen"),Object(l.g)(f,"wide mobile"),Object(l.g)(g,"wide tablet"),Object(l.g)(w,"wide widescreen"),Object(l.g)(x,"wide"),"column",r),_=Object(c.a)(d,e),T=Object(p.a)(d,e);return u.a.createElement(T,i()({},_,{className:E}),t)}d.handledProps=["as","children","className","color","computer","floated","largeScreen","mobile","only","stretched","tablet","textAlign","verticalAlign","widescreen","width"],d.propTypes={},d.create=Object(h.e)(d,function(e){return{children:e}}),t.a=d},,function(e,t,r){var n=r(44),i=r(298),o=r(750),a=r(145);e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t){e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,r){var n=r(87),i=r(68);e.exports=function(e){return i(e)&&n(e)}},function(e,t,r){var n=r(798),i=r(68),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,r){(function(e){var n=r(86),i=r(799),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u}).call(this,r(117)(e))},function(e,t){var r=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},function(e,t){t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function o(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var a,s=t.isAbsolute(r),u=r.split(/\/+/),l=0,c=u.length-1;c>=0;c--)"."===(a=u[c])?u.splice(c,1):".."===a?l++:l>0&&(""===a?(u.splice(c+1,l),l=0):(u.splice(c,2),l--));return""===(r=u.join("/"))&&(r=s?"/":"."),n?(n.path=r,o(n)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),o(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,o(s);var u="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=u,o(s)):u}t.urlParse=i,t.urlGenerate=o,t.normalize=a,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var u=!("__proto__"in Object.create(null));function l(e){return e}function c(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function p(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=u?l:function(e){return c(e)?"$"+e:e},t.fromSetString=u?l:function(e){return c(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=p(e.source,t.source);return 0!==n?n:0!==(n=e.originalLine-t.originalLine)?n:0!==(n=e.originalColumn-t.originalColumn)||r?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=e.generatedLine-t.generatedLine)?n:p(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)||r?n:0!==(n=p(e.source,t.source))?n:0!==(n=e.originalLine-t.originalLine)?n:0!==(n=e.originalColumn-t.originalColumn)?n:p(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!==(r=e.generatedColumn-t.generatedColumn)?r:0!==(r=p(e.source,t.source))?r:0!==(r=e.originalLine-t.originalLine)?r:0!==(r=e.originalColumn-t.originalColumn)?r:p(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=i(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var u=n.path.lastIndexOf("/");u>=0&&(n.path=n.path.substring(0,u+1))}t=s(o(n),t)}return a(t)}},function(e,t,r){"use strict";var n,i=r(88),o=r(89).parse,a=r(34),s=r(459),u=r(461).Store,l=r(895).MemoryCookieStore,c=r(463).pathMatch,p=r(896);try{n=r(132)}catch(L){console.warn("tough-cookie: can't load punycode; won't use punycode for domain normalization")}var h=/^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/,d=/[\x00-\x1F]/,f=["\n","\r","\0"],m=/[\x20-\x3A\x3C-\x7E]+/,v=/[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/,g={jan:0,feb:1,mar:2,apr:3,may:4,jun:5,jul:6,aug:7,sep:8,oct:9,nov:10,dec:11},y=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],b=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],w=2147483647e3;function x(e,t,r,n){for(var i=0;i=58)break;i++}return ir?null:n||i==e.length?parseInt(e.substr(0,i),10):null}function E(e){var t=e.split(":"),r=[0,0,0];if(3!==t.length)return null;for(var n=0;n<3;n++){var i=2==n,o=x(t[n],1,2,i);if(null===o)return null;r[n]=o}return r}function _(e){e=String(e).substr(0,3).toLowerCase();var t=g[e];return t>=0?t:null}function T(e){if(e){var t=e.split(v);if(t){for(var r=null,n=null,i=null,o=null,a=null,s=null,u=0;u=70&&s<=99?s+=1900:s>=0&&s<=69&&(s+=2e3)):a=l:o=l}if(!(null===o||null===a||null===s||null===i||o<1||o>31||s<1601||r>23||n>59||i>59))return new Date(Date.UTC(s,a,o,r,n,i))}}}function S(e){var t=e.getUTCDate();t=t>=10?t:"0"+t;var r=e.getUTCHours();r=r>=10?r:"0"+r;var n=e.getUTCMinutes();n=n>=10?n:"0"+n;var i=e.getUTCSeconds();return i=i>=10?i:"0"+i,b[e.getUTCDay()]+", "+t+" "+y[e.getUTCMonth()]+" "+e.getUTCFullYear()+" "+r+":"+n+":"+i+" GMT"}function D(e){return null==e?null:(e=e.trim().replace(/^\./,""),n&&/[^\u0001-\u007f]/.test(e)&&(e=n.toASCII(e)),e.toLowerCase())}function k(e,t,r){if(null==e||null==t)return null;if(!1!==r&&(e=D(e),t=D(t)),e==t)return!0;if(i.isIP(e))return!1;var n=e.indexOf(t);return!(n<=0)&&(e.length===t.length+n&&"."===e.substr(n-1,1))}function A(e){if(!e||"/"!==e.substr(0,1))return"/";if("/"===e)return e;var t=e.lastIndexOf("/");return 0===t?"/":e.slice(0,t)}function C(e,t){var r,n,i=(e=function(e){for(var t=0;t1;){var r=e.lastIndexOf("/");if(0===r)break;e=e.substr(0,r),t.push(e)}return t.push("/"),t},t.canonicalDomain=D},function(e,t,r){"use strict";t.decode=t.parse=r(891),t.encode=t.stringify=r(892)},function(e,t,r){"use strict";var n=r(28),i=r(321),o=r(323),a=r(324),s=r(118);function u(e){s.call(this,"digest"),this._hash=e}n(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new u(a(e))}},function(e,t,r){(t=e.exports=r(470)).Stream=t,t.Readable=t,t.Writable=r(322),t.Duplex=r(133),t.Transform=r(473),t.PassThrough=r(911)},function(e,t,r){"use strict";var n=r(25).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!==typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=p,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){(function(t){e.exports=function(e,r){for(var n=Math.min(e.length,r.length),i=new t(n),o=0;o=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o2){if(r="md5","md5"===l[0].toLowerCase()&&(l=l.slice(1)),l=(l=l.map(function(t){for(;t.length<2;)t="0"+t;if(t.length>2)throw new h(e);return t})).join(""),!v.test(l)||l.length%2!==0)throw new h(e);try{a=i.from(l,"hex")}catch(c){throw new h(e)}}else{if(v.test(e))a=i.from(e,"hex");else{if(!m.test(e))throw new h(e);a=i.from(e,"base64")}switch(a.length){case 32:r="sha256";break;case 16:r="md5";break;case 20:r="sha1";break;case 64:r="sha512";break;default:throw new h(e)}void 0===t.hashType&&(u="spki")}if(void 0===r)throw new h(e);if(void 0===o.hashAlgs[r])throw new d(r);if(void 0!==s&&-1===(s=s.map(function(e){return e.toLowerCase()})).indexOf(r))throw new d(r);return new f({algorithm:r,hash:a,type:t.type||"key",hashType:u})},f.isFingerprint=function(e,t){return p.isCompatible(e,f,t)},f.prototype._sshpkApiVersion=[1,2],f._oldVersionDetect=function(e){return n.func(e.toString),n.func(e.matches),[1,0]}},function(e,t,r){(function(){var t;function r(e,t,r){null!=e&&("number"==typeof e?this.fromNumber(e,t,r):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function n(){return new r(null)}var i="undefined"!==typeof navigator;i&&"Microsoft Internet Explorer"==navigator.appName?(r.prototype.am=function(e,t,r,n,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var u=32767&this[e],l=this[e++]>>15,c=s*u+l*a;i=((u=a*u+((32767&c)<<15)+r[n]+(1073741823&i))>>>30)+(c>>>15)+s*l+(i>>>30),r[n++]=1073741823&u}return i},t=30):i&&"Netscape"!=navigator.appName?(r.prototype.am=function(e,t,r,n,i,o){for(;--o>=0;){var a=t*this[e++]+r[n]+i;i=Math.floor(a/67108864),r[n++]=67108863&a}return i},t=26):(r.prototype.am=function(e,t,r,n,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],l=this[e++]>>14,c=s*u+l*a;i=((u=a*u+((16383&c)<<14)+r[n]+i)>>28)+(c>>14)+s*l,r[n++]=268435455&u}return i},t=28),r.prototype.DB=t,r.prototype.DM=(1<>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function d(e){this.m=e}function f(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function w(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function x(){}function E(e){return e}function _(e){this.r2=n(),this.q3=n(),r.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}d.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},d.prototype.revert=function(e){return e},d.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},d.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},d.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},f.prototype.convert=function(e){var t=n();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(r.ZERO)>0&&this.m.subTo(t,t),t},f.prototype.revert=function(e){var t=n();return e.copyTo(t),this.reduce(t),t},f.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,n,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},f.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},f.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},r.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},r.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},r.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var i=e.length,o=!1,a=0;--i>=0;){var s=8==n?255&e[i]:c(e,i);s<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+n>this.DB?(this[this.t-1]|=(s&(1<>this.DB-a):this[this.t-1]|=s<=this.DB&&(a-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==e;)--this.t},r.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},r.prototype.drShiftTo=function(e,t){for(var r=e;r=0;--r)t[r+a+1]=this[r]>>i|s,s=(this[r]&o)<=0;--r)t[r]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},r.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var n=e%this.DB,i=this.DB-n,o=(1<>n;for(var a=r+1;a>n;n>0&&(t[this.t-r-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()},r.prototype.multiplyTo=function(e,t){var n=this.abs(),i=e.abs(),o=n.t;for(t.t=o+i.t;--o>=0;)t[o]=0;for(o=0;o=0;)e[r]=0;for(r=0;r=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},r.prototype.divRemTo=function(e,t,i){var o=e.abs();if(!(o.t<=0)){var a=this.abs();if(a.t0?(o.lShiftTo(c,s),a.lShiftTo(c,i)):(o.copyTo(s),a.copyTo(i));var p=s.t,d=s[p-1];if(0!=d){var f=d*(1<1?s[p-2]>>this.F2:0),m=this.FV/f,v=(1<=0&&(i[i.t++]=1,i.subTo(w,i)),r.ONE.dlShiftTo(p,w),w.subTo(s,s);s.t=0;){var x=i[--y]==d?this.DM:Math.floor(i[y]*m+(i[y-1]+g)*v);if((i[y]+=s.am(0,x,i,b,0,p))0&&i.rShiftTo(c,i),u<0&&r.ZERO.subTo(i,i)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},r.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},r.prototype.exp=function(e,t){if(e>4294967295||e<1)return r.ONE;var i=n(),o=n(),a=t.convert(this),s=h(e)-1;for(a.copyTo(i);--s>=0;)if(t.sqrTo(i,o),(e&1<0)t.mulTo(o,a,i);else{var u=i;i=o,o=u}return t.revert(i)},r.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var r,n=(1<0)for(s>s)>0&&(i=!0,o=l(r));a>=0;)s