@cainiaofe/cn-ui-m-onecode
Version:
7 lines • 1.14 MB
JavaScript
/*! @cainiaofe/cn-ui-m-onecode@0.11.27 (https://cone.cainiao-inc.com/dsm/common/material) */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@cainiaofe/cn-ui"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","@cainiaofe/cn-ui","react-dom"],t):"object"==typeof exports?exports.CNUIM=t(require("react"),require("@cainiaofe/cn-ui"),require("react-dom")):e.CNUIM=t(e.React,e.CNUI,e.ReactDOM)}(window,(function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=383)}([function(t,n){t.exports=e},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"g",(function(){return l}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function c(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,c)}s((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(o=0)),o;)try{if(n=1,r&&(a=2&c[0]?r.return:c[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;switch(r=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(6===c[0]&&o.label<a[1]){o.label=a[1],a=c;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],r=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}Object.create;function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function l(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a<i;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}Object.create},function(e,t,n){"use strict";n.d(t,"z",(function(){return a})),n.d(t,"a",(function(){return je})),n.d(t,"b",(function(){return F})),n.d(t,"c",(function(){return Ne})),n.d(t,"d",(function(){return Ee})),n.d(t,"e",(function(){return G})),n.d(t,"f",(function(){return de})),n.d(t,"g",(function(){return Be})),n.d(t,"h",(function(){return x})),n.d(t,"i",(function(){return qe})),n.d(t,"j",(function(){return Ye})),n.d(t,"k",(function(){return j})),n.d(t,"l",(function(){return S})),n.d(t,"m",(function(){return be})),n.d(t,"n",(function(){return P})),n.d(t,"o",(function(){return A})),n.d(t,"p",(function(){return H})),n.d(t,"q",(function(){return _e})),n.d(t,"r",(function(){return xe})),n.d(t,"s",(function(){return we})),n.d(t,"t",(function(){return _})),n.d(t,"u",(function(){return $e})),n.d(t,"v",(function(){return E})),n.d(t,"w",(function(){return w})),n.d(t,"x",(function(){return et})),n.d(t,"y",(function(){return ct})),n.d(t,"A",(function(){return Pe})),n.d(t,"B",(function(){return N})),n.d(t,"C",(function(){return st})),n.d(t,"D",(function(){return lt})),n.d(t,"E",(function(){return ut})),n.d(t,"F",(function(){return ft})),n.d(t,"G",(function(){return dt})),n.d(t,"H",(function(){return ht}));let r=y();const a=e=>m(e,r);let i=y();a.write=e=>m(e,i);let o=y();a.onStart=e=>m(e,o);let c=y();a.onFrame=e=>m(e,c);let s=y();a.onFinish=e=>m(e,s);let u=[];a.setTimeout=(e,t)=>{let n=a.now()+t,r=()=>{let e=u.findIndex(e=>e.cancel==r);~e&&u.splice(e,1),p-=~e?1:0},i={time:n,handler:e,cancel:r};return u.splice(l(n),0,i),p+=1,v(),i};let l=e=>~(~u.findIndex(t=>t.time>e)||~u.length);a.cancel=e=>{o.delete(e),c.delete(e),s.delete(e),r.delete(e),i.delete(e)},a.sync=e=>{h=!0,a.batchedUpdates(e),h=!1},a.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,a.onStart(n)}return r.handler=e,r.cancel=()=>{o.delete(n),t=null},r};let f="undefined"!=typeof window?window.requestAnimationFrame:()=>{};a.use=e=>f=e,a.now="undefined"!=typeof performance?()=>performance.now():Date.now,a.batchedUpdates=e=>e(),a.catch=console.error,a.frameLoop="always",a.advance=()=>{"demand"!==a.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):b()};let d=-1,p=0,h=!1;function m(e,t){h?(t.delete(e),e(0)):(t.add(e),v())}function v(){d<0&&(d=0,"demand"!==a.frameLoop&&f(g))}function g(){~d&&(f(g),a.batchedUpdates(b))}function b(){let e=d;d=a.now();let t=l(d);t&&(O(u.splice(0,t),e=>e.handler()),p-=t),p?(o.flush(),r.flush(e?Math.min(64,d-e):16.667),c.flush(),i.flush(),s.flush()):d=-1}function y(){let e=new Set,t=e;return{add(n){p+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(p-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,p-=t.size,O(t,t=>t(n)&&e.add(t)),p+=e.size,t=e)}}}function O(e,t){e.forEach(e=>{try{t(e)}catch(e){a.catch(e)}})}var C=n(0);function w(){}const x=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),_={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function E(e,t){if(_.arr(e)){if(!_.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const j=(e,t)=>e.forEach(t);function S(e,t,n){if(_.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],""+r);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}const N=e=>_.und(e)?[]:_.arr(e)?e:[e];function P(e,t){if(e.size){const n=Array.from(e);e.clear(),j(n,t)}}const A=(e,...t)=>P(e,e=>e(...t)),k=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let T,L,I=null,D=!1,M=w;const R=e=>{e.to&&(L=e.to),e.now&&(a.now=e.now),void 0!==e.colors&&(I=e.colors),null!=e.skipAnimation&&(D=e.skipAnimation),e.createStringInterpolator&&(T=e.createStringInterpolator),e.requestAnimationFrame&&a.use(e.requestAnimationFrame),e.batchedUpdates&&(a.batchedUpdates=e.batchedUpdates),e.willAdvance&&(M=e.willAdvance),e.frameLoop&&(a.frameLoop=e.frameLoop)};var F=Object.freeze({__proto__:null,get createStringInterpolator(){return T},get to(){return L},get colors(){return I},get skipAnimation(){return D},get willAdvance(){return M},assign:R});const z=new Set;let B=[],V=[],U=0;const H={get idle(){return!z.size&&!B.length},start(e){U>e.priority?(z.add(e),a.onStart(Y)):(W(e),a($))},advance:$,sort(e){if(U)a.onFrame(()=>H.sort(e));else{const t=B.indexOf(e);~t&&(B.splice(t,1),q(e))}},clear(){B=[],z.clear()}};function Y(){z.forEach(W),z.clear(),a($)}function W(e){B.includes(e)||q(e)}function q(e){B.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(B,t=>t.priority>e.priority),0,e)}function $(e){const t=V;for(let n=0;n<B.length;n++){const r=B[n];U=r.priority,r.idle||(M(r),r.advance(e),r.idle||t.push(r))}return U=0,V=B,V.length=0,B=t,B.length>0}const G={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},K="[-+]?\\d*\\.?\\d+";function J(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const X=new RegExp("rgb"+J(K,K,K)),Q=new RegExp("rgba"+J(K,K,K,K)),Z=new RegExp("hsl"+J(K,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),ee=new RegExp("hsla"+J(K,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",K)),te=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ne=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,re=/^#([0-9a-fA-F]{6})$/,ae=/^#([0-9a-fA-F]{8})$/;function ie(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function oe(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,i=ie(a,r,e+1/3),o=ie(a,r,e),c=ie(a,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*c)<<8}function ce(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function se(e){return(parseFloat(e)%360+360)%360/360}function ue(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function le(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function fe(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=re.exec(e))?parseInt(t[1]+"ff",16)>>>0:I&&void 0!==I[e]?I[e]:(t=X.exec(e))?(ce(t[1])<<24|ce(t[2])<<16|ce(t[3])<<8|255)>>>0:(t=Q.exec(e))?(ce(t[1])<<24|ce(t[2])<<16|ce(t[3])<<8|ue(t[4]))>>>0:(t=te.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ae.exec(e))?parseInt(t[1],16)>>>0:(t=ne.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Z.exec(e))?(255|oe(se(t[1]),le(t[2]),le(t[3])))>>>0:(t=ee.exec(e))?(oe(se(t[1]),le(t[2]),le(t[3]))|ue(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const de=(e,t,n)=>{if(_.fun(e))return e;if(_.arr(e))return de({range:e,output:t,extrapolate:n});if(_.str(e.output[0]))return T(e);const r=e,a=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,a,i,o,c,s){let u=s?s(e):e;if(u<t){if("identity"===o)return u;"clamp"===o&&(u=t)}if(u>n){if("identity"===c)return u;"clamp"===c&&(u=n)}if(r===a)return r;if(t===n)return e<=t?r:a;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=i(u),r===-1/0?u=-u:a===1/0?u+=r:u=u*(a-r)+r;return u}(e,i[t],i[t+1],a[t],a[t+1],s,o,c,r.map)}};const pe=1.70158,he=1.525*pe,me=2*Math.PI/3,ve=2*Math.PI/4.5,ge=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},be={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-pe*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+pe*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-he)/2:(Math.pow(2*e-2,2)*((he+1)*(2*e-2)+he)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*me),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*me)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ve)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ve)/2+1,easeInBounce:e=>1-ge(1-e),easeOutBounce:ge,easeInOutBounce:e=>e<.5?(1-ge(1-2*e))/2:(1+ge(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,a="end"===t?Math.floor(r):Math.ceil(r);return i=0,o=1,c=a/e,Math.min(Math.max(c,i),o);var i,o,c}};function ye(){return(ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}const Oe=Symbol.for("FluidValue.get"),Ce=Symbol.for("FluidValue.observers"),we=e=>Boolean(e&&e[Oe]),xe=e=>e&&e[Oe]?e[Oe]():e,_e=e=>e[Ce]||null;function Ee(e,t){let n=e[Ce];n&&n.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}class je{constructor(e){if(this[Oe]=void 0,this[Ce]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Se(this,e)}}const Se=(e,t)=>Ae(e,Oe,t);function Ne(e,t){if(e[Oe]){let n=e[Ce];n||Ae(e,Ce,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Pe(e,t){let n=e[Ce];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ce]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const Ae=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ke=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Te=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Le=new RegExp(`(${ke.source})(%|[a-z]+)`,"i"),Ie=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,De=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Me=e=>{const[t,n]=Re(e);if(!t||k())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&De.test(n)?Me(n):n||e},Re=e=>{const t=De.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]};let Fe;const ze=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,Be=e=>{Fe||(Fe=I?new RegExp(`(${Object.keys(I).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(e=>xe(e).replace(De,Me).replace(Te,fe).replace(Fe,fe)),n=t.map(e=>e.match(ke).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>de(ye({},e,{output:t})));return e=>{var n;const a=!Le.test(t[0])&&(null==(n=t.find(e=>Le.test(e)))?void 0:n.replace(ke,""));let i=0;return t[0].replace(ke,()=>`${r[i++](e)}${a||""}`).replace(Ie,ze)}},Ve="react-spring: ",Ue=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(Ve+"once requires a function parameter");return(...e)=>{n||(t(...e),n=!0)}},He=Ue(console.warn);function Ye(){He(Ve+'The "interpolate" function is deprecated in v9 (use "to" instead)')}const We=Ue(console.warn);function qe(){We(Ve+'Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions')}function $e(e){return _.str(e)&&("#"==e[0]||/\d/.test(e)||!k()&&De.test(e)||e in(I||{}))}let Ge;const Ke=new WeakMap,Je=e=>e.forEach(({target:e,contentRect:t})=>{var n;return null==(n=Ke.get(e))?void 0:n.forEach(e=>e(t))});const Xe=new Set;let Qe;const Ze=e=>(Xe.add(e),Qe||(Qe=(()=>{const e=()=>{Xe.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}})()),()=>{Xe.delete(e),!Xe.size&&Qe&&(Qe(),Qe=void 0)}),et=(e,{container:t=document.documentElement}={})=>t===document.documentElement?Ze(e):function(e,t){Ge||"undefined"!=typeof ResizeObserver&&(Ge=new ResizeObserver(Je));let n=Ke.get(t);return n||(n=new Set,Ke.set(t,n)),n.add(e),Ge&&Ge.observe(t),()=>{const n=Ke.get(t);n&&(n.delete(e),!n.size&&Ge&&Ge.unobserve(t))}}(e,t),tt={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};class nt{constructor(e,t){this.callback=void 0,this.container=void 0,this.info=void 0,this.createAxis=()=>({current:0,progress:0,scrollLength:0}),this.updateAxis=e=>{const t=this.info[e],{length:n,position:r}=tt[e];var a,i,o;t.current=this.container["scroll"+r],t.scrollLength=this.container["scroll"+n]-this.container["client"+n],t.progress=(a=0,i=t.scrollLength,o=t.current,i-a==0?1:(o-a)/(i-a))},this.update=()=>{this.updateAxis("x"),this.updateAxis("y")},this.sendEvent=()=>{this.callback(this.info)},this.advance=()=>{this.update(),this.sendEvent()},this.callback=e,this.container=t,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}}const rt=new WeakMap,at=new WeakMap,it=new WeakMap,ot=e=>e===document.documentElement?window:e,ct=(e,{container:t=document.documentElement}={})=>{let n=it.get(t);n||(n=new Set,it.set(t,n));const r=new nt(e,t);if(n.add(r),!rt.has(t)){const e=()=>{var e;return null==(e=n)||e.forEach(e=>e.advance()),!0};rt.set(t,e);const r=ot(t);window.addEventListener("resize",e,{passive:!0}),t!==document.documentElement&&at.set(t,et(e,{container:t})),r.addEventListener("scroll",e,{passive:!0})}const i=rt.get(t);return a(i),()=>{a.cancel(i);const e=it.get(t);if(!e)return;if(e.delete(r),e.size)return;const n=rt.get(t);var o;(rt.delete(t),n)&&(ot(t).removeEventListener("scroll",n),window.removeEventListener("resize",n),null==(o=at.get(t))||o())}};function st(e){const t=Object(C.useRef)(null);return null===t.current&&(t.current=e()),t.current}const ut=k()?C.useEffect:C.useLayoutEffect;function lt(){const e=Object(C.useState)()[1],t=(()=>{const e=Object(C.useRef)(!1);return ut(()=>(e.current=!0,()=>{e.current=!1}),[]),e})();return()=>{t.current&&e(Math.random())}}function ft(e,t){const[n]=Object(C.useState)(()=>({inputs:t,result:e()})),r=Object(C.useRef)(),a=r.current;let i=a;if(i){Boolean(t&&i.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.inputs))||(i={inputs:t,result:e()})}else i=n;return Object(C.useEffect)(()=>{r.current=i,a==n&&(n.inputs=n.result=void 0)},[i]),i.result}const dt=e=>Object(C.useEffect)(e,pt),pt=[];function ht(e){const t=Object(C.useRef)();return Object(C.useEffect)(()=>{t.current=e}),t.current}},function(e,t,n){var r;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var o=a.apply(null,r);o&&e.push(o)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var c in r)n.call(r,c)&&r[c]&&e.push(c);else e.push(r.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";n.d(t,"z",(function(){return h})),n.d(t,"d",(function(){return m})),n.d(t,"u",(function(){return v})),n.d(t,"x",(function(){return g})),n.d(t,"j",(function(){return x})),n.d(t,"k",(function(){return o})),n.d(t,"g",(function(){return c})),n.d(t,"o",(function(){return s})),n.d(t,"p",(function(){return u})),n.d(t,"h",(function(){return l})),n.d(t,"l",(function(){return f})),n.d(t,"m",(function(){return d})),n.d(t,"n",(function(){return p})),n.d(t,"c",(function(){return _})),n.d(t,"q",(function(){return S})),n.d(t,"r",(function(){return N})),n.d(t,"i",(function(){return P})),n.d(t,"t",(function(){return k})),n.d(t,"w",(function(){return M})),n.d(t,"y",(function(){return z})),n.d(t,"e",(function(){return b.a})),n.d(t,"a",(function(){return pt})),n.d(t,"b",(function(){return ht})),n.d(t,"s",(function(){return wt})),n.d(t,"v",(function(){return xt})),n.d(t,"f",(function(){return y})),n.d(t,"A",(function(){return jt}));var r=Object.prototype.toString,a=function(e){return function(t){return i(t)==="[object ".concat(e,"]")}},i=function(e){return r.call(e)},o=function(e){return"function"==typeof e},c=Array.isArray,s=a("Object"),u=a("String"),l=a("Boolean"),f=a("Number"),d=function(e){return f(e)||/^\d+$/.test(e)},p=function(e){return"object"==typeof e},h=(a("RegExp"),function(e){return c(e)?e:e?[e]:[]});function m(e,t,n){if(c(e)||u(e)){if(n){for(var r=e.length-1;r>=0;r--)if(!1===t(e[r],r))return}else for(r=0;r<e.length;r++)if(!1===t(e[r],r))return}else if(p(e)){var a=void 0;for(a in e)if(Object.hasOwnProperty.call(e,a)&&!1===t(e[a],a))return}}function v(e,t,n){var r=c(e)||u(e)?[]:{};return m(e,(function(e,n){var a=t(e,n);c(r)?r.push(a):r[n]=a}),n),r}function g(e,t,n,r){var a=n;return m(e,(function(e,n){a=t(a,e,n)}),r),a}var b=n(132),y=function(e,t){return o(t)?e instanceof t:!!u(t)&&(!!b.a[t]&&e instanceof b.a[t])},O=c,C=Object.keys,w=Object.prototype.hasOwnProperty;var x=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,a=O(t),i=O(n),o=void 0,c=void 0;if(a&&i){if((r=t.length)!==n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(a!==i)return!1;var s=t&&t._isAMomentObject,u=n&&n._isAMomentObject;if(s!==u)return!1;if(s&&u)return t.isSame(n);var l=t&&t.toJS;if(l!==(n&&n.toJS))return!1;if(l)return t.is?t.is(n):t===n;var f=y(t,"Date"),d=y(n,"Date");if(f!==d)return!1;if(f&&d)return t.getTime()===n.getTime();var p=y(t,"RegExp"),h=y(n,"RegExp");if(p!==h)return!1;if(p&&h)return t.toString()===n.toString();var m=y(t,"URL"),v=y(n,"URL");if(m!==v)return!1;if(m&&v)return t.href===n.href;var g=t&&t.toJSON,b=n&&n.toJSON;if(g!==b)return!1;if(g&&b)return e(t.toJSON(),n.toJSON());var x=C(t);if((r=x.length)!==C(n).length)return!1;for(o=r;0!=o--;)if(!w.call(n,x[o]))return!1;for(o=r;0!=o--;)if(!("_owner"===(c=x[o])&&t.$$typeof||e(t[c],n[c])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}},_=function(e){if(Array.isArray(e)){var t=[];return e.forEach((function(e){t.push(_(e))})),t}if(s(e)){if("$$typeof"in e&&"_owner"in e)return e;if(e._isAMomentObject)return e;if(e._isJSONSchemaObject)return e;if(o(e.toJS))return e.toJS();if(o(e.toJSON))return e.toJSON();var n={};for(var r in e)Object.hasOwnProperty.call(e,r)&&(n[r]=_(e[r]));return n}return e},E=Object.prototype.hasOwnProperty,j=Object.prototype.toString,S=function(e){return void 0===e},N=function(e){return null!=e};function P(e,t){if(void 0===t&&(t=!1),null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return!1;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e)){if(0===e.length)return!0;for(var n=0;n<e.length;n++)if(t){if(void 0!==e[n]&&null!==e[n])return!1}else if(void 0!==e[n]&&null!==e[n]&&""!==e[n]&&0!==e[n])return!1;return!0}if(y(e,"Error"))return""===e.message;if(e.toString===j)switch(e.toString()){case"[object File]":case"[object Map]":case"[object Set]":return 0===e.size;case"[object Object]":for(var r in e)if(E.call(e,r))return!1;return!0}return!1}var A=n(1);function k(e){return e.toLowerCase()}var T=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],L=/[^A-Z0-9]+/gi;function I(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function D(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function M(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?T:n,a=t.stripRegexp,i=void 0===a?L:a,o=t.transform,c=void 0===o?k:o,s=t.delimiter,u=void 0===s?" ":s,l=I(I(e,r,"$1\0$2"),i,"\0"),f=0,d=l.length;"\0"===l.charAt(f);)f++;for(;"\0"===l.charAt(d-1);)d--;return l.slice(f,d).split("\0").map(c).join(u)}(e,Object(A.a)({delimiter:"",transform:D},t))}var R,F=function(e){return"string"==typeof e?e.replace((t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),new RegExp(t,"g")),""):e;var t},z=function(e){return F(e).replace(t&&t.exact?new RegExp("^".concat("[\ud800-\udbff][\udc00-\udfff]","$")):new RegExp("[\ud800-\udbff][\udc00-\udfff]","g")," ").length;var t},B=function(){return(B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},V=function(e,t){return B({flag:e},t)},U=V("[]"),H=V("[\\d]"),Y=V("[[]]"),W=V("()"),q=V("{}"),$=V("{x}"),G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},K=function(e,t){return G({flag:e},t)},J=K("name",{expectNext:function(e){return this.includesContext($)?e===J||e===le||e===ie||e===re||e===te:e===Z||e===le||e===pe||e===ie||e===ue||e===te||e===de||e===ae}}),X=K("*",{expectNext:function(e){return e===Z||e===se||e===ae||e===pe||e===le||e===ue}}),Q=K("**",{expectNext:function(e){return e===Z||e===ae||e===pe||e===le||e===ue}}),Z=K(".",{expectNext:function(e){return e===Z||e===J||e===oe||e===X||e===Q||e===ae||e===ne||e===pe},expectPrev:function(e){return e===Z||e===J||e===ce||e===X||e===ue||e===ie||e===de||e===re}}),ee=K("!",{expectNext:function(e){return e===J||e===oe}}),te=K(":",{expectNext:function(e){return this.includesContext($)?e===J||e===ne||e===ae:e===J||e===oe||e===ie}}),ne=K("{",{expectNext:function(e){return e===J},expectPrev:function(e){return this.includesContext($)?e===te||e===le||e===ae:e===Z||e===te||e===se},updateContext:function(){this.state.context.push(q)}}),re=K("}",{expectNext:function(e){return this.includesContext($)?e===le||e===re||e===pe||e===ie:e===Z||e===pe||e===le},expectPrev:function(e){return e===J||e===re||e===ie},updateContext:function(){this.state.context.pop(q)}}),ae=K("[",{expectNext:function(e){return this.includesContext($)?e===J||e===ae||e===ne||e===ie:e===J||e===oe||e===te||e===ae||e===fe||e===ie},expectPrev:function(e){return this.includesContext($)?e===te||e===le||e===ae:e===X||e===ae||e===Z||e===J||e===se||e==le},updateContext:function(){this.state.context.push(U)}}),ie=K("]",{expectNext:function(e){return this.includesContext($)?e===le||e===re||e===ie||e===pe:e===Z||e===pe||e===le||e===ue||e===ie},updateContext:function(){if(!this.includesContext(H)){if(!this.includesContext(U))throw this.unexpect();this.state.context.pop()}}}),oe=K("[[",{updateContext:function(){this.state.context.push(Y)}}),ce=K("]]",{updateContext:function(){if(this.curContext()!==Y)throw this.unexpect();this.state.context.pop()}}),se=K("(",{expectNext:function(e){return e===J||e===oe||e===ne||e===ee||e===ae},expectPrev:function(e){return e===X},updateContext:function(){this.state.context.push(W)}}),ue=K(")",{expectNext:function(e){return e===Z||e===pe||e===le||e===ue},updateContext:function(){if(this.curContext()!==W)throw this.unexpect();this.state.context.pop()}}),le=K(",",{expectNext:function(e){return e===J||e===oe||e===ae||e===ne}}),fe=K("ignore",{expectNext:function(e){return e===ce},expectPrev:function(e){return e==oe}}),de=K("expandTok",{expectNext:function(e){return e===Z||e===pe||e===le||e===ue}}),pe=K("eof"),he=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,me=function(e){return 42===e||46===e||33===e||91===e||93===e||40===e||41===e||44===e||58===e||126===e||123===e||125===e},ve=function(e,t){var n=new Error(e);return Object.assign(n,t),n},ge=function(e,t,n){for(var r="",a=t;a<n;a++){var i=e.charAt(a);"\\"!==i&&(r+=i)}return r},be=function(){function e(e){this.input=e,this.state={context:[],type:null,pos:0},this.type_=null}return e.prototype.curContext=function(){return this.state.context[this.state.context.length-1]},e.prototype.includesContext=function(e){for(var t=this.state.context.length-1;t>=0;t--)if(this.state.context[t]===e)return!0;return!1},e.prototype.unexpect=function(e){return e=e||this.state.type,ve('Unexpect token "'.concat(e.flag,'" in ').concat(this.state.pos," char."),{pos:this.state.pos})},e.prototype.expectNext=function(e,t){if(e&&e.expectNext&&t&&!e.expectNext.call(this,t))throw ve('Unexpect token "'.concat(t.flag,'" token should not be behind "').concat(e.flag,'" token.(').concat(this.state.pos,"th char)"),{pos:this.state.pos})},e.prototype.expectPrev=function(e,t){if(e&&e.expectPrev&&t&&!e.expectPrev.call(this,t))throw ve('Unexpect token "'.concat(e.flag,'" should not be behind "').concat(t.flag,'"(').concat(this.state.pos,"th char)."),{pos:this.state.pos})},e.prototype.match=function(e){return this.state.type===e},e.prototype.skipSpace=function(){if(this.curContext()!==Y)e:for(;this.state.pos<this.input.length;){var e=this.input.charCodeAt(this.state.pos);switch(e){case 32:case 160:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos;break;default:if(!(e>8&&e<14||e>=5760&&he.test(String.fromCharCode(e))))break e;++this.state.pos}}},e.prototype.next=function(){if(this.type_=this.state.type,this.input.length<=this.state.pos)return this.finishToken(pe);this.skipSpace(),this.readToken(this.getCode(),this.state.pos>0?this.getCode(this.state.pos-1):-1/0)},e.prototype.getCode=function(e){return void 0===e&&(e=this.state.pos),function(e,t){if(String.fromCharCode)return e.codePointAt(t);var n=e.charCodeAt(t);return n<=55295||n>=57344?n:(n<<10)+e.charCodeAt(t+1)-56613888}(this.input,e)},e.prototype.eat=function(e){return!!this.match(e)&&(this.next(),!0)},e.prototype.readKeyWord=function(){for(var e=this.state.pos,t="";;){var n=this.getCode(),r=this.getCode(this.state.pos-1);if(this.input.length===this.state.pos){t=ge(this.input,e,this.state.pos+1);break}if(me(n)&&92!==r){t=ge(this.input,e,this.state.pos);break}if(32===n||160===n||10===n||8232===n||8233===n){t=ge(this.input,e,this.state.pos);break}if(13===n&&10===this.input.charCodeAt(this.state.pos+1)){t=ge(this.input,e,this.state.pos);break}if(n>8&&n<14||n>=5760&&he.test(String.fromCharCode(n))){t=ge(this.input,e,this.state.pos);break}this.state.pos++}this.finishToken(J,t)},e.prototype.readIgnoreString=function(){for(var e,t=this.state.pos,n="";;){var r=this.getCode();if(this.state.pos>=this.input.length)break;if(91!==r&&93!==r||92!==e){if(93==r&&93===e){n=this.input.slice(t,this.state.pos-1).replace(/\\([\[\]])/g,"$1"),this.state.pos++;break}this.state.pos++,e=r}else this.state.pos++,e=""}this.finishToken(fe,n),this.finishToken(ce)},e.prototype.finishToken=function(e,t){var n=this.state.type;this.state.type=e,void 0!==t&&(this.state.value=t),this.expectNext(n,e),this.expectPrev(e,n),e.updateContext&&e.updateContext.call(this,n)},e.prototype.readToken=function(e,t){if(92===t)return this.readKeyWord();if(this.input.length<=this.state.pos)this.finishToken(pe);else if(this.curContext()===Y)this.readIgnoreString();else if(123===e)this.state.pos++,this.finishToken(ne);else if(125===e)this.state.pos++,this.finishToken(re);else if(42===e){if(this.state.pos++,42===this.getCode())return this.state.pos++,this.finishToken(Q);this.finishToken(X)}else if(33===e)this.state.pos++,this.finishToken(ee);else if(46===e)this.state.pos++,this.finishToken(Z);else if(91===e){if(this.state.pos++,91===this.getCode())return this.state.pos++,this.finishToken(oe);this.finishToken(ae)}else 126===e?(this.state.pos++,this.finishToken(de)):93===e?(this.state.pos++,this.finishToken(ie)):40===e?(this.state.pos++,this.finishToken(se)):41===e?(this.state.pos++,this.finishToken(ue)):44===e?(this.state.pos++,this.finishToken(le)):58===e?(this.state.pos++,this.finishToken(te)):this.readKeyWord()},e}(),ye=function(e){return function(t){return t&&t.type===e}},Oe=ye("Identifier"),Ce=ye("IgnoreExpression"),we=ye("DotOperator"),xe=ye("WildcardOperator"),_e=ye("ExpandOperator"),Ee=ye("GroupExpression"),je=ye("RangeExpression"),Se=ye("DestructorExpression"),Ne=ye("ObjectPattern"),Pe=(ye("ObjectPatternProperty"),ye("ArrayPattern")),Ae=Object.prototype.toString,ke=function(e){return function(t){return Ae.call(t)==="[object ".concat(e,"]")}},Te=ke("Function"),Le=Array.isArray||ke("Array"),Ie=(ke("Object"),ke("String")),De=(ke("Boolean"),ke("Number")),Me=function(e){return"object"==typeof e},Re=ke("RegExp"),Fe=function(e){return De(e)||/^(\d+)(\.\d+)?$/.test(e)},ze=Le,Be=Object.keys,Ve=Object.prototype.hasOwnProperty,Ue=function(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n=ze(e),r=ze(t),a=void 0,i=void 0,o=void 0;if(n&&r){if((i=e.length)!==t.length)return!1;for(a=i;0!=a--;)if(!Ue(e[a],t[a]))return!1;return!0}if(n!==r)return!1;var c=Be(e);if((i=c.length)!==Be(t).length)return!1;for(a=i;0!=a--;)if(!Ve.call(t,c[a]))return!1;for(a=i;0!=a--;)if(o=c[a],!Ue(e[o],t[o]))return!1;return!0}return e!=e&&t!=t},He=new Map,Ye=function(e){return He.get(e)},We=function(e){var t=[];if(Ne(e)){var n=0;return e.properties.forEach((function(e){t[n]={path:[]},t[n].key=e.key.value,t[n].path.push(e.key.value),Oe(e.value)&&(t[n].key=e.value.value);var r=t[n].path,a=We(e.value),i=n;a.forEach((function(e){t[i]?(t[i].key=e.key,t[i].path=r.concat(e.path)):t[i]={key:e.key,path:r.concat(e.path)},i++})),i>n?n=i:n++})),t}if(Pe(e)){var r=0;return e.elements.forEach((function(e,n){t[r]={path:[]},t[r].key=n,t[r].path.push(n),Oe(e)&&(t[r].key=e.value);var a=t[r].path,i=We(e),o=r;i.forEach((function(e){t[o]?(t[o].key=e.key,t[o].path=a.concat(e.path)):t[o]={key:e.key,path:a.concat(e.path)},o++})),o>r?r=o:r++})),t}return Se(e)?We(e.value):t},qe=function(e,t,n,r){t.forEach((function(t){var a=t.key,i=t.path;r.setIn([a],e,r.getIn(i,n))}))},$e=function(e,t,n){var r={};return t.length&&De(t[0].path[0])&&(r=[]),e=null!=e?e:{},t.forEach((function(t){var a=t.key,i=t.path;n.setIn(i,r,e[a])})),r},Ge=function(e,t,n){t.forEach((function(t){var r=t.key;n.deleteIn([r],e)}))},Ke=function(e,t,n,r){return t.every((function(t){var a=t.key;return r.existIn([a],e,n)}))},Je=(R=function(e,t){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Xe=function(e,t,n){if(Fe(e)&&Fe(t)){if("+"===n)return String(Number(e)+Number(t));if("-"===n)return String(Number(e)-Number(t));if("*"===n)return String(Number(e)*Number(t));if("/"===n)return String(Number(e)/Number(t))}else{if("+"===n)return String(e)+String(t);if("-"===n)return"NaN";if("*"===n)return"NaN";if("/"===n)return"NaN"}return String(Number(t))},Qe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.isMatchPattern=!1,r.isWildMatchPattern=!1,r.haveExcludePattern=!1,r.haveRelativePattern=!1,r.base=n,r}return Je(t,e),t.prototype.parse=function(){var e;return this.data={segments:[]},this.eat(pe)||(this.next(),e=this.parseAtom(this.state.type)),this.data.tree=e,e},t.prototype.append=function(e,t){e&&t&&(e.after=t)},t.prototype.parseAtom=function(e){switch(e){case ne:case ae:return this.includesContext($)?e===ne?this.parseObjectPattern():this.parseArrayPattern():this.parseDestructorExpression();case J:return this.parseIdentifier();case de:return this.parseExpandOperator();case Q:case X:return this.parseWildcardOperator();case oe:return this.parseIgnoreExpression();case Z:return this.parseDotOperator()}},t.prototype.pushSegments=function(e){this.data.segments.push(e)},t.prototype.parseIdentifier=function(){var e={type:"Identifier",value:this.state.value},t=!this.includesContext($)&&!this.isMatchPattern&&!this.isWildMatchPattern;if(this.next(),this.includesContext(H)){if(this.state.type!==ie)throw this.unexpect();this.state.context.pop(),this.next()}else t&&this.pushSegments(e.value);if(this.state.type===ae){if(this.next(),this.state.type!==J)throw this.unexpect();this.state.context.push(H);var n=!1;/^\d+$/.test(this.state.value)&&(n=!0);var r=this.state.value;this.pushSegments(n?Number(r):r);var a=this.parseAtom(this.state.type);n&&(a.arrayIndex=!0),this.append(e,a)}else this.append(e,this.parseAtom(this.state.type));return e},t.prototype.parseExpandOperator=function(){var e={type:"ExpandOperator"};return this.isMatchPattern=!0,this.isWildMatchPattern=!0,this.data.segments=[],this.next(),this.append(e,this.parseAtom(this.state.type)),e},t.prototype.parseWildcardOperator=function(){var e={type:"WildcardOperator"};return this.state.type===Q&&(e.optional=!0),this.isMatchPattern=!0,this.isWildMatchPattern=!0,this.data.segments=[],this.next(),this.state.type===se?e.filter=this.parseGroupExpression(e):this.state.type===ae&&(e.filter=this.parseRangeExpression(e)),this.append(e,this.parseAtom(this.state.type)),e},t.prototype.parseDestructorExpression=function(){var e=this,t={type:"DestructorExpression"};this.state.context.push($);var n=this.state.pos-1;t.value=this.state.type===ne?this.parseObjectPattern():this.parseArrayPattern();var r,a,i=this.state.pos;return this.state.context.pop(),t.source=this.input.substring(n,i).replace(/\[\s*([\+\-\*\/])?\s*([^,\]\s]*)\s*\]/,(function(t,n,r){return void 0!==e.relative?n?Xe(e.relative,r||1,n):r?Xe(e.relative,r,"+"):String(e.relative):t})).replace(/\s*\.\s*/g,"").replace(/\s*/g,""),void 0===this.relative&&(r=t.source,a=We(t),He.set(r,a)),this.relative=void 0,this.pushSegments(t.source),this.next(),this.append(t,this.parseAtom(this.state.type)),t},t.prototype.parseArrayPattern=function(){var e={type:"ArrayPattern",elements:[]};return this.next(),e.elements=this.parseArrayPatternElements(),e},t.prototype.parseArrayPatternElements=function(){for(var e=[];this.state.type!==ie&&this.state.type!==pe;){if(e.push(this.parseAtom(this.state.type)),this.state.type===ie)return this.includesContext($)&&this.next(),e;this.next()}return e},t.prototype.parseObjectPattern=function(){var e={type:"ObjectPattern",properties:[]};return this.next(),e.properties=this.parseObjectProperties(),e},t.prototype.parseObjectProperties=function(){for(var e=[];this.state.type!==re&&this.state.type!==pe;){var t={type:"ObjectPatternProperty",key:this.parseAtom(this.state.type)};if(e.push(t),this.state.type===te&&(this.next(),t.value=this.parseAtom(this.state.type)),this.state.type===re)return this.includesContext($)&&this.next(),e;this.next()}return e},t.prototype.parseDotOperator=function(){var e={type:"DotOperator"};if(!this.type_&&this.base){if(this.base.isMatchPattern)throw new Error("Base path must be an absolute path.");for(this.data.segments=this.base.toArr();this.state.type===Z;)this.relative=this.data.segments.pop(),this.haveRelativePattern=!0,this.next();return function(e,t){void 0===e&&(e=[]);var n=e.length,r=function(a){void 0===a&&(a=0);var i=a<n-1?r(a+1):t,o=i&&{type:"DotOperator",after:i};return{type:"Identifier",value:e[a],after:o}};return r()}(this.data.segments.slice(),this.parseAtom(this.state.type))}return this.next(),this.append(e,this.parseAtom(this.state.type)),e},t.prototype.parseIgnoreExpression=function(){this.next();var e=String(this.state.value).replace(/\s*/g,""),t={type:"IgnoreExpression",value:e};return this.pushSegments(e),this.next(),this.append(t,this.parseAtom(this.state.type)),this.next(),t},t.prototype.parseGroupExpression=function(e){var t={type:"GroupExpression",value:[]};this.isMatchPattern=!0,this.data.segments=[],this.next();e:for(;;)switch(this.state.type){case le:this.next();break;case ee:t.isExclude=!0,this.haveExcludePattern=!0,this.next();break;case pe:case ue:break e;default:t.value.push(this.parseAtom(this.state.type))}return this.next(),this.append(e,this.parseAtom(this.state.type)),t},t.prototype.parseRangeExpression=function(e){var t={type:"RangeExpression"};this.next(),this.isMatchPattern=!0,this.data.segments=[];var n=!1,r=!1;e:for(;;)switch(this.state.type){case te:r=!0,n=!0,this.next();break;case ie:r||t.end||(t.end=t.start);break e;case le:throw this.unexpect();case pe:break e;default:n?t.end=this.parseAtom(this.state.type):t.start=this.parseAtom(this.state.type)}return this.next(),this.append(e,this.parseAtom(this.state.type)),t},t}(be),Ze=function(){function e(e,t){this.tree=e,this.stack=[],this.excluding=!1,this.wildcards=[],this.record=t}return e.prototype.next=function(e,t){if(e.after)return this.matchNode(e.after,t);if(xe(e)&&!e.filter)return!this.excluding&&(!(0!==t&&!e.optional)||!!this.take(t));if(t===this.path.length-1)return!!this.take(t);var n=this.wildcards.pop();return!(!n||!n.after)&&this.next(n,t)},e.prototype.shot=function(){var e;(null===(e=this.record)||void 0===e?void 0:e.score)>=0&&this.record.score++},e.prototype.take=function(e){var t;return String(null!==(t=this.path[e])&&void 0!==t?t:"")},e.prototype.matchExcludeIdentifier=function(e,t,n){var r=n===this.path.length-1,a=n<this.path.length;if(t.after||(this.excluding=!1),e){if(t.after)return this.next(t,n);if(r)return!1}return!!r||a},e.prototype.matchIdentifier=function(e,t){var n=this.take(t),r=!1;return _e(e.after)?(0===n.indexOf(e.value)&&(this.shot(),r=!0),this.excluding?this.matchExcludeIdentifier(r,e.after,t):r&&this.next(e.after,t)):(n===e.value&&(this.shot(),r=!0),this.excluding?this.matchExcludeIdentifier(r,e,t):r&&this.next(e,t))},e.prototype.matchIgnoreExpression=function(e,t){return Ue(e.value,this.take(t))&&this.next(e,t)},e.prototype.matchDestructorExpression=function(e,t){return Ue(e.source,this.take(t))&&this.next(e,t)},e.prototype.matchExpandOperator=function(e,t){return this.next(e,t)},e.prototype.matchWildcardOperator=function(e,t){var n=!1;return e.filter?(this.stack.push(e),n=this.matchNode(e.filter,t),this.stack.pop()):n=this.next(e,t),n},e.prototype.matchGroupExpression=function(e,t){var n,r=this,a=!1;return e.isExclude&&(a=!this.excluding),(n=e.value,Array.isArray(n)?n:void 0!==n?[n]:[])[a?"every":"some"]((function(e){return r.wildcards=r.stack.slice(),r.excluding=a,r.matchNode(e,t)}))},e.prototype.matchRangeExpression=function(e,t){var n=Number(this.take(t));return e.start?e.end?n>=Number(e.start.value)&&n<=Number(e.end.value):n>=Number(e.start.value):e.end?n<=Number(e.end.value):(this.wildcards=this.stack.slice(),this.next(e,t))},e.prototype.matchNode=function(e,t){return void 0===t&&(t=0),we(e)?this.next(e,t+1):Oe(e)?this.matchIdentifier(e,t):Ce(e)?this.matchIgnoreExpression(e,t):Se(e)?this.matchDestructorExpression(e,t):_e(e)?this.matchExpandOperator(e,t):xe(e)?this.matchWildcardOperator(e,t):Ee(e)?this.matchGroupExpression(e,t):!!je(e)&&this.matchRangeExpression(e,t)},e.prototype.match=function(e){return this.path=e,{matched:this.matchNode(this.tree),record:this.record}},e.matchSegments=function(e,t,n){if(e.length!==t.length)return{matched:!1,record:n};var r=function(a){void 0===a&&(a=0);var i,o,c=(i=e[a],o=t[a],(i="symbol"==typeof i?i:"".concat(i))===(o="symbol"==typeof o?o:"".concat(o)));return(null==n?void 0:n.score)>=0&&n.score++,c&&(!(a<e.length-1)||r(a+1))};return{matched:r(),record:n}},e}(),et=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},tt=function(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a<i;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))},nt=new Map,rt=Symbol("PATH_MATCHER"),at=function(e){return null!=e},it=function(e){return"object"==typeof e||"function"==typeof e},ot=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],a=Ye(r);if(a){t=$e(t,a,{setIn:ct,getIn:ot});break}if(!at(t))return;t=t[r]}return t},ct=function(e,t,n){for(var r=0;r<e.length;r++){var a=e[r],i=Ye(a);if(i){qe(t,i,n,{setIn:ct,getIn:ot});break}if(!at(t)||!it(t))return;if(Le(t)&&!(Ie(o=a)?/^\d+$/.test(o):De(o)))return;if(!at(t[a])){if(void 0===n)return void(null===t[a]&&(t[a]=n));r<e.length-1&&(t[a]=De(e[r+1])?[]:{})}r===e.length-1&&(t[a]=n),t=t[a]}var o},st=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],a=Ye(r);if(a){Ge(t,a,{setIn:ct,getIn:ot,deleteIn:st});break}if(n===e.length-1&&at(t))return void delete t[r];if(!at(t)||!it(t))return;if(t=t[r],!Me(t))return}},ut=Object.prototype.hasOwnProperty,lt=function(e,t,n){n instanceof pt&&(n=n.length);for(var r=n;r<e.length;r++){var a=e[r],i=Ye(a);if(i)return Ke(t,i,n,{setIn:ct,getIn:ot,deleteIn:st,existIn:lt});if(r===e.length-1)return ut.call(t,a);if(!at(t)||!it(t))return!1;if(t=t[a],!Me(t))return!1}},ft=function(e,t){if(e instanceof pt)return{entire:e.entire,segments:e.segments.slice(),isRegExp:!1,haveRelativePattern:e.haveRelativePattern,isWildMatchPattern:e.isWildMatchPattern,isMatchPattern:e.isMatchPattern,haveExcludePattern:e.haveExcludePattern,tree:e.tree};if(Ie(e)){if(!e)return{entire:"",segments:[],isRegExp:!1,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!1};if(-1===(i=e).indexOf("*")&&-1===i.indexOf("~")&&-1===i.indexOf("[")&&-1===i.indexOf("]")&&-1===i.indexOf(",")&&-1===i.indexOf(":")&&-1===i.indexOf(" ")&&"."!==i[0])return{entire:e,segments:e.split("."),isRegExp:!1,isWildMatchPattern:!1,haveExcludePattern:!1,isMatchPattern:!1};var n=new Qe(e,pt.parse(t)),r=n.parse();if(n.isMatchPattern)return{entire:e,segments:[],isRegExp:!1,haveRelativePattern:!1,isWildMatchPattern:n.isWildMatchPattern,haveExcludePattern:n.haveExcludePa