7 lines
17 KiB
JavaScript
7 lines
17 KiB
JavaScript
|
var st={exports:{}},Nt=st.exports={};Nt.forEach=function(r,n){for(var c=0;c<r.length;c++){var e=n(r[c]);if(e)return e}};var Pt=function(r){var n=r.stateHandler.getState;function c(l){var s=n(l);return s&&!!s.isDetectable}function e(l){n(l).isDetectable=!0}function u(l){return!!n(l).busy}function g(l,s){n(l).busy=!!s}return{isDetectable:c,markAsDetectable:e,isBusy:u,markBusy:g}},Mt=function(r){var n={};function c(l){var s=r.get(l);return s===void 0?[]:n[s]||[]}function e(l,s){var h=r.get(l);n[h]||(n[h]=[]),n[h].push(s)}function u(l,s){for(var h=c(l),d=0,b=h.length;d<b;++d)if(h[d]===s){h.splice(d,1);break}}function g(l){var s=c(l);!s||(s.length=0)}return{get:c,add:e,removeListener:u,removeAllListeners:g}},Wt=function(){var r=1;function n(){return r++}return{generate:n}},Bt=function(r){var n=r.idGenerator,c=r.stateHandler.getState;function e(g){var l=c(g);return l&&l.id!==void 0?l.id:null}function u(g){var l=c(g);if(!l)throw new Error("setId required the element to have a resize detection state.");var s=n.generate();return l.id=s,s}return{get:e,set:u}},_t=function(r){function n(){}var c={log:n,warn:n,error:n};if(!r&&window.console){var e=function(u,g){u[g]=function(){var s=console[g];if(s.apply)s.apply(console,arguments);else for(var h=0;h<arguments.length;h++)s(arguments[h])}};e(c,"log"),e(c,"warn"),e(c,"error")}return c},dt={exports:{}},mt=dt.exports={};mt.isIE=function(r){function n(){var e=navigator.userAgent.toLowerCase();return e.indexOf("msie")!==-1||e.indexOf("trident")!==-1||e.indexOf(" edge/")!==-1}if(!n())return!1;if(!r)return!0;var c=function(){var e,u=3,g=document.createElement("div"),l=g.getElementsByTagName("i");do g.innerHTML="<!--[if gt IE "+ ++u+"]><i></i><![endif]-->";while(l[0]);return u>4?u:e}();return r===c};mt.isLegacyOpera=function(){return!!window.opera};var kt={exports:{}},Rt=kt.exports={};Rt.getOption=Ft;function Ft(r,n,c){var e=r[n];return e==null&&c!==void 0?c:e}var pt=kt.exports,qt=function(n){n=n||{};var c=n.reporter,e=pt.getOption(n,"async",!0),u=pt.getOption(n,"auto",!0);u&&!e&&(c&&c.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),e=!0);var g=yt(),l,s=!1;function h(S,A){!s&&u&&e&&g.size()===0&&C(),g.add(S,A)}function d(){for(s=!0;g.size();){var S=g;g=yt(),S.process()}s=!1}function b(S){s||(S===void 0&&(S=e),l&&(P(l),l=null),S?C():d())}function C(){l=m(d)}function P(S){var A=clearTimeout;return A(S)}function m(S){var A=function(M){return setTimeout(M,0)};return A(S)}return{add:h,force:b}};function yt(){var r={},n=0,c=0,e=0;function u(s,h){h||(h=s,s=0),s>c?c=s:s<e&&(e=s),r[s]||(r[s]=[]),r[s].push(h),n++}function g(){for(var s=e;s<=c;s++)for(var h=r[s],d=0;d<h.length;d++){var b=h[d];b()}}function l(){return n}return{add:u,process:g,size:l}}var ct="_erd";function $t(r){return r[ct]={},Dt(r)}function Dt(r){return r[ct]}function Ut(r){delete r[ct]}var Gt={initState:$t,getState:Dt,cleanState:Ut},Z=dt.exports,Vt=function(r){r=r||{};var n=r.reporter,c=r.batchProcessor,e=r.stateHandler.getState;if(!n)throw new Error("Missing required dependency: reporter.");function u(d,b){function C(){b(d)}if(Z.isIE(8))e(d).object={proxy:C},d.attachEvent("onresize",C);else{var P=s(d);if(!P)throw new Error("Element is not detectable by this strategy.");P.contentDocument.defaultView.addEventListener("resize",C)}}function g(d){var b=r.important?" !important; ":"; ";return(d.join(b)+b).trim()}function l(d,b,C){C||(C=b,b=d,d=null),d=d||{},d.debug;function P(m,S){var A=g(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),M=!1,W=window.getComputedStyle(m),k=m.offsetWidth,D=m.offsetHeight;e(m).startSize={width:k,height:D};function o(){function t(){if(W.position==="static"){m.style.setProperty("position","relative",d.important?"important":"");var z=function(T,w,H,f){function y(O){return O.replace(/[^-\d\.]/g,"")}var I=H[f];I!=="auto"&&y(I)!=="0"&&(T.warn("An element that is positioned static has style."+f+"="+I+" which is ignored due to the static po
|
||
|
`;w+="."+x+" > div::-webkit-scrollbar { "+d(["display: none"])+` }
|
||
|
|
||
|
`,w+="."+T+" { "+d(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+z,"animation-name: "+z])+` }
|
||
|
`,w+="@-webkit-keyframes "+z+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
|
||
|
`,w+="@keyframes "+z+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",i(w)}}function P(o){o.className+=" "+s+"_animation_active"}function m(o,t,x){if(o.addEventListener)o.addEventListener(t,x);else if(o.attachEvent)o.attachEvent("on"+t,x);else return n.error("[scroll] Don't know how to add event listeners.")}function S(o,t,x){if(o.removeEventListener)o.removeEventListener(t,x);else if(o.detachEvent)o.detachEvent("on"+t,x);else return n.error("[scroll] Don't know how to remove event listeners.")}function A(o){return e(o).container.childNodes[0].childNodes[0].childNodes[0]}function M(o){return e(o).container.childNodes[0].childNodes[0].childNodes[1]}function W(o,t){var x=e(o).listeners;if(!x.push)throw new Error("Cannot add listener to an element that is not detectable.");e(o).listeners.push(t)}function k(o,t,x){x||(x=t,t=o,o=null),o=o||{};function i(){if(o.debug){var a=Array.prototype.slice.call(arguments);if(a.unshift(u.get(t),"Scroll: "),n.log.apply)n.log.apply(null,a);else for(var v=0;v<a.length;v++)n.log(a[v])}}function z(a){function v(E){var B=E.getRootNode&&E.getRootNode().contains(E);return E===E.ownerDocument.body||E.ownerDocument.body.contains(E)||B}return!v(a)||window.getComputedStyle(a)===null}function T(a){var v=e(a).container.childNodes[0],E=window.getComputedStyle(v);return!E.width||E.width.indexOf("px")===-1}function w(){var a=window.getComputedStyle(t),v={};return v.position=a.position,v.width=t.offsetWidth,v.height=t.offsetHeight,v.top=a.top,v.right=a.right,v.bottom=a.bottom,v.left=a.left,v.widthCSS=a.width,v.heightCSS=a.height,v}function H(){var a=w();e(t).startSize={width:a.width,height:a.height},i("Element start size",e(t).startSize)}function f(){e(t).listeners=[]}function y(){if(i("storeStyle invoked."),!e(t)){i("Aborting because element has been uninstalled");return}var a=w();e(t).style=a}function I(a,v,E){e(a).lastWidth=v,e(a).lastHeight=E}function O(a){return A(a).childNodes[0]}function U(){return 2*g.width+1}function et(){return 2*g.height+1}function rt(a){return a+10+U()}function nt(a){return a+10+et()}function Ct(a){return a*2+U()}function zt(a){return a*2+et()}function ut(a,v,E){var B=A(a),G=M(a),Y=rt(v),K=nt(E),j=Ct(v),p=zt(E);B.scrollLeft=Y,B.scrollTop=K,G.scrollLeft=j,G.scrollTop=p}function lt(){var a=e(t).container;if(!a){a=document.createElement("div"),a.className=s,a.style.cssText=d(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),e(t).container=a,P(a),t.appendChild(a);var v=function(){e(t).onRendered&&e(t).onRendered()};m(a,"animationstart",v),e(t).onAnimationStart=v}return a}function Lt(){function a(){var L=e(t).style;if(L.position==="static"){t.style.setProperty("position","relative",o.important?"important":"");var F=function(X,J,Ot,at){function jt(It){return It.replace(/[^-\d\.]/g,"")}var ot=Ot[at];ot!=="auto"&&jt(ot)!=="0"&&(X.warn("An element that is positioned static has style."+at+"="+ot+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+at+" will be set to 0. Element: ",J),J.style[at]=0)};F(n,t,L,"top"),F(n,t,L,"right"),F(n,t,L,"bottom"),F(n,t,L,"left")}}function v(L,F,X,J){return L=L?L+"px":"0",F=F?F+"px":"0",X=X?X+"px":"0",J=J?J+"px":"0",["left: "+L,"top: "+F,"right: "+J,"bottom: "+X]}if(i("Injecting elements"),!e(t)){i("Aborting because element has been uninstalled");return}a();var E=e(t).container;E||(E=lt());var B=g.width,G=g.height,Y=d(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),K=d(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(v(-(1+B),-(1+G),-G,-B))),j=d(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),p=d(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),N=d(["position: absolute","left: 0","top: 0"]),V=d(["position: absolute","w
|