urbit/pkg/arvo/app/soto/js/tile.js

1 line
92 KiB
JavaScript
Raw Normal View History

!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("tile",t):(n=n||self).tile=t()}(this,function(){"use strict";var n="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};n.setTimeout,n.clearTimeout;var t=n.performance||{},e=(t.now||t.mozNow||t.msNow||t.oNow||t.webkitNow,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});function r(n,t){return n(t={exports:{}},t.exports),t.exports}var u=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;var a=function(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de","5"===Object.getOwnPropertyNames(n)[0])return!1;for(var t={},e=0;e<10;e++)t["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(n){return t[n]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(n){r[n]=n}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(n){return!1}}()?Object.assign:function(n,t){for(var e,r,a=function(n){if(null==n)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}(n),f=1;f<arguments.length;f++){for(var c in e=Object(arguments[f]))o.call(e,c)&&(a[c]=e[c]);if(u){r=u(e);for(var l=0;l<r.length;l++)i.call(e,r[l])&&(a[r[l]]=e[r[l]])}}return a};function f(n){for(var t=arguments.length-1,e="https://reactjs.org/docs/error-decoder.html?invariant="+n,r=0;r<t;r++)e+="&args[]="+encodeURIComponent(arguments[r+1]);!function(n,t,e,r,u,o,i,a){if(!n){if(n=void 0,void 0===t)n=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[e,r,u,o,i,a],c=0;(n=Error(t.replace(/%s/g,function(){return f[c++]}))).name="Invariant Violation"}throw n.framesToPop=1,n}}(!1,"Minified React error #"+n+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e)}var c={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},l={};function s(n,t,e){this.props=n,this.context=t,this.refs=l,this.updater=e||c}function p(){}function h(n,t,e){this.props=n,this.context=t,this.refs=l,this.updater=e||c}s.prototype.isReactComponent={},s.prototype.setState=function(n,t){"object"!=typeof n&&"function"!=typeof n&&null!=n&&f("85"),this.updater.enqueueSetState(this,n,t,"setState")},s.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")},p.prototype=s.prototype;var v=h.prototype=new p;v.constructor=h,a(v,s.prototype),v.isPureReactComponent=!0;var d=function(){},y="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_={},g=Function.call.bind(Object.prototype.hasOwnProperty);function m(n,t,e,r,u){for(var o in n)if(g(n,o)){var i;try{if("function"!=typeof n[o]){var a=Error((r||"React class")+": "+e+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[o]+"`.");throw a.name="Invariant Violation",a}i=n[o](t,o,r,e,null,y)}catch(n){i=n}if(!i||i instanceof Error||d((r||"React class")+": type specification of "+e+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in _)){_[i.message]=!0;var f=u?u():"";d("Failed "+e+" type: "+i.message+(null!=f?f:""))}}}d=function(n){var t="Warning: "+n;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(n){}},m.resetWarningCache=function(){_={}};var b=m,w=r(function(n){!function(){var t=a,e=b,r="function"==typeof Symbol&&Symbol.for,u=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragmen