PageSourceSearch

https://www.vgf-ffm.de/vgf_ffm/Build/728.1eaf8251.js?1789456477

js vgf-ffm.de collected 2026-09-24 21:19:17 UTC 15,386 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkvgf_ffm=self.webpackChunkvgf_ffm||[]).push([[728],{4728(t,e,i){i.d(e,{A:()=>z});var s=class{handlers;on(t,e,i){const s=this.handlers??(this.handlers={});return(s[t]||(s[t]=[])).push({fn:e,ctx:i}),this}once(t,e,i){const s=this;function n(){s.off(t,n),e.apply(i,arguments)}return n.onceCb=e,this.on(t,n,i)}emit(t,...e){const i=e,s=[...(this.handlers??(this.handlers={}))[t]||[]];let n=0;const o=s.length;for(;n<o;n+=1)s[n].fn.apply(s[n].ctx,i);return this}off(t,e){const i=this.handlers??(this.handlers={}),s=i[t],n=[];if(s&&e)for(let t=0,i=s.length;t<i;t+=1)s[t].fn!==e&&s[t].fn.onceCb!==e&&n.push(s[t]);return n.length>0?i[t]=n:delete i[t],this}};function n(){}function o(t){return[...new Set(t)]}let r=null;function l(){if(null!==r)return r;const t=document.body||document.documentElement,e=document.createElement("div");e.style.cssText="width:10px;padding:2px;box-sizing:border-box;",t.append(e);const{width:i}=globalThis.getComputedStyle(e,null);return r=10===Math.round(h(i)),e.remove(),r}function h(t){return Number.parseFloat(String(t))||0}function a(t,e,i=globalThis.getComputedStyle(t,null)){let s=h(i[e]);return l()||"width"!==e?l()||"height"!==e||(s+=h(i.paddingTop)+h(i.paddingBottom)+h(i.borderTopWidth)+h(i.borderBottomWidth)):s+=h(i.paddingLeft)+h(i.paddingRight)+h(i.borderLeftWidth)+h(i.borderRightWidth),s}function u(t,e=!1){const i=globalThis.getComputedStyle(t,null);let s=a(t,"width",i),n=a(t,"height",i);if(e){s+=a(t,"marginLeft",i)+a(t,"marginRight",i),n+=a(t,"marginTop",i)+a(t,"marginBottom",i)}return{width:s,height:n}}var d=class{x;y;constructor(t,e){this.x=h(t),this.y=h(e)}static equals(t,e){return t.x===e.x&&t.y===e.y}},c=class{id;left;top;width;height;constructor(t,e,i,s,n){this.id=n,this.left=t,this.top=e,this.width=i,this.height=s}static intersects(t,e){return t.left<e.left+e.width&&e.left<t.left+t.width&&t.top<e.top+e.height&&e.top<t.top+t.height}};const m={BASE:"shuffle",SHUFFLE_ITEM:"shuffle-item",VISIBLE:"shuffle-item--visible",HIDDEN:"shuffle-item--hidden"},f={ANY:"any",ALL:"all"},p={LAYOUT:"shuffle:layout",REMOVED:"shuffle:removed"},g={group:"all",speed:250,easing:"cubic-bezier(0.4, 0.0, 0.2, 1)",itemSelector:"*",sizer:null,gutterWidth:0,columnWidth:0,delimiter:null,buffer:0,columnThreshold:.01,initialSort:null,staggerAmount:15,staggerAmountMax:150,useTransforms:!0,filterMode:f.ANY,isCentered:!1,isRTL:!1,roundTransforms:!0};let y=0;var I=class t{id;element;isRTL;isVisible;isHidden;scale=1;point=new d;constructor(t,e){y+=1,this.id=y,this.element=t,this.isRTL=Boolean(e),this.isVisible=!0,this.isHidden=!1}show(){this.isVisible=!0,this.element.classList.remove(m.HIDDEN),this.element.classList.add(m.VISIBLE),this.element.removeAttribute("aria-hidden")}hide(){this.isVisible=!1,this.element.classList.remove(m.VISIBLE),this.element.classList.add(m.HIDDEN),this.element.setAttribute("aria-hidden","true")}init(){this.addClasses([m.SHUFFLE_ITEM,m.VISIBLE]),this.applyCss(t.Css.INITIAL),this.applyCss(this.isRTL?t.Css.DIRECTION.rtl:t.Css.DIRECTION.ltr),this.scale=t.Scale.VISIBLE,this.point=new d}addClasses(t){for(const e of t)this.element.classList.add(e)}removeClasses(t){for(const e of t)this.element.classList.remove(e)}applyCss(t){for(const[e,i]of Object.entries(t))this.element.style[e]=String(i)}dispose(){this.removeClasses([m.HIDDEN,m.VISIBLE,m.SHUFFLE_ITEM]),this.element.removeAttribute("style"),this.element=null}static Css={INITIAL:{position:"absolute",top:0,visibility:"visible",willChange:"transform"},DIRECTION:{ltr:{left:0},rtl:{right:0}},VISIBLE:{before:{opacity:1,visibility:"visible"},after:{transitionDelay:""}},HIDDEN:{before:{opacity:0},after:{visibility:"hidden",transitionDelay:""}}};static Scale={VISIBLE:1,HIDDEN:.001}};function T({visible:t,hidden:e}){for(const e of t)e.show();for(const t of e)t.hide()}function b(t){for(const e of t)e.init()}function E(t){for(const e of t)e.dispose()}function v(t){t.scale=I.Scale.HIDDEN,t.isHidden=!0,t.applyCss(I.Css.HIDDEN.before),t.applyCss(I.Css.HIDDEN.after)}const S={reverse:!1,by:null,compare:null,randomize:!1,key:"element"};function L(t,e){if(!Array.isArray(t))return[];const i={...S,...e},s=[...t];let n=!1;if(0===t.length)return[];if(i.randomize)return function(t){let e=t.length;for(;e;){e-=1;const i=Math.floor(Math.random()*(e+1)),s=t[i];t[i]=t[e],t[e]=s}return t}(t);if("function"==typeof i.by){const e=i.by;t.sort((t,s)=>{if(n)return 0;const o=t[i.key],r=s[i.key],l=e(o),h=e(r);return void 0===l&&void 0===h?(n=!0,0):l<h||"sortFirst"===l||"sortLast"===h?-1:l>h||"sortLast"===l||"sortFirst"===h?1:0})}else"function"==typeof i.compare&&t.sort(i.compare);return n?s:(i.reverse&&t.reverse(),t)}var C=class{#t=new Map;#e=0;#i(){return this.#e+=1,`transitionend${this.#e}`}waitForTransition(t,e){const i=this.#i(),s=t=>{t.currentTarget===t.target&&(this.cancelTransition(i),e(t))};return t.addEventListener("transitionend",s),this.#t.set(i,{element:t,listener:s}),i}cancelTransition(t){const e=this.#t.get(t);return!!e&&(e.element.removeEventListener("transitionend",e.listener),this.#t.delete(t),!0)}cancelAll(){for(const t of this.#t.keys())this.cancelTransition(t)}};function w({itemSize:t,positions:e,gridSize:i,total:s,threshold:n,buffer:o}
1){const r=function(t,e,i,s){let n=t/e;return Math.abs(Math.round(n)-n)<s&&(n=Math.round(n)),Math.min(Math.ceil(n),i)}(t.width,i,s,n),l=function(t,e,i){if(1===e)return t;const s=[];for(let n=0;n<=i-e;n+=1)s.push(Math.max(...t.slice(n,n+e)));return s}(e,r,s),h=function(t,e){const i=Math.min(...t);for(let s=0,n=t.length;s<n;s+=1)if(t[s]>=i-e&&t[s]<=i+e)return s;return 0}(l,o),a=new d(i*h,l[h]),u=l[h]+t.height;for(let t=0;t<r;t+=1)e[h+t]=u;return a}let D=0;var z=class t extends s{element;sizer;options;lastSort;group;lastFilter;isEnabled;isDestroyed;isInitialized;isTransitioning;id;items;sortedItems;visibleItems;cols;colWidth;containerWidth;positions;#s;#n;#o;#r=null;constructor(e,i={}){super(),this.options={...t.options,...i},this.lastSort={},this.group=t.ALL_ITEMS,this.lastFilter=t.ALL_ITEMS,this.isEnabled=!0,this.isDestroyed=!1,this.isInitialized=!1,this.#s=new C,this.isTransitioning=!1,this.#n=[];const s=this.#l(e);if(!s)throw new TypeError("Shuffle needs to be initialized with an element.");if(this.element=s,this.id=`shuffle_${D}`,D+=1,this.items=this.#h(),this.sortedItems=this.items,this.sizer=this.#l(this.options.sizer),this.element.classList.add(t.Classes.BASE),b(this.items),"complete"!==document.readyState){const t=this.layout.bind(this);window.addEventListener("load",function e(){window.removeEventListener("load",e),t()})}const n=globalThis.getComputedStyle(this.element,null),o=t.getSize(this.element).width;this.#a(n),this.#u(o),this.filter(this.options.group,this.options.initialSort),this.#o=null,this.#r=new ResizeObserver(this.#d.bind(this)),this.#r.observe(this.element),this.element.offsetWidth,this.setItemTransitions(this.items),this.element.style.transition=`height ${this.options.speed}ms ${this.options.easing}`,this.isInitialized=!0}on(t,e,i){return super.on(t,e,i)}once(t,e,i){return super.once(t,e,i)}emit(t,e){return this.isDestroyed?this:super.emit(t,e)}off(t,e){return super.off(t,e)}#l(t){return"string"==typeof t?this.element?this.element.querySelector(t):document.querySelector(t):t&&"nodeType"in t&&t.nodeType&&1===t.nodeType?t:t&&"jquery"in t?t[0]:null}#a(t){"static"===t.position&&(this.element.style.position="relative"),"hidden"!==t.overflow&&(this.element.style.overflow="hidden")}#c(t=this.lastFilter,e=this.items){const i=this.#m(t,e);return T(i),this.lastFilter=t,"string"==typeof t&&(this.group=t),i}#m(e,i){let s=[];const n=[];if(e===t.ALL_ITEMS)s=i;else for(const t of i)this.#f(e,t.element)?s.push(t):n.push(t);return{visible:s,hidden:n}}#f(e,i){if("function"==typeof e)return e.call(i,i,this);const s=i.dataset[t.FILTER_ATTRIBUTE_KEY]??"",n=this.options.delimiter?s.split(this.options.delimiter):JSON.parse(s);function o(t){return n.includes(t)}return Array.isArray(e)?this.options.filterMode===f.ANY?e.some(o):e.every(o):n.includes(e)}#p(){this.visibleItems=this.#g().length}setItemTransitions(t){const{speed:e,easing:i}=this.options,s=[...this.options.useTransforms?["transform"]:["top","left"],...Object.keys(I.Css.HIDDEN.before)].join(",");for(const n of t)n.element.style.transitionDuration=`${e}ms`,n.element.style.transitionTimingFunction=i,n.element.style.transitionProperty=s}#h(){return Array.from(this.element.children).filter(t=>t.matches(this.options.itemSelector)).map(t=>new I(t,this.options.isRTL))}#y(t){const e=Array.from(this.element.children);return L([...this.items,...t],{by:t=>e.indexOf(t)})}#g(){return this.items.filter(t=>t.isVisible)}#I(){return this.items.filter(t=>!t.isVisible)}#T(e,i){let s;return s="function"==typeof this.options.columnWidth?this.options.columnWidth(e):this.sizer?t.getSize(this.sizer).width:this.options.columnWidth?this.options.columnWidth:this.items.length>0?t.getSize(this.items[0].element,!0).width:e,0===s&&(s=e),s+i}#b(t){return"function"==typeof this.options.gutterWidth?this.options.gutterWidth(t):this.sizer?a(this.sizer,"marginLeft"):this.options.gutterWidth?this.options.gutterWidth:0}#u(e=t.getSize(this.element).width){const i=this.#b(e),s=this.#T(e,i);let n=(e+i)/s;const o=this.options.columnThreshold;Math.abs(Math.round(n)-n)<o&&(n=Math.round(n)),this.cols=Math.max(Math.floor(n||0),1),this.containerWidth=e,this.colWidth=s}#E(){this.element.style.height=`${this.#v()}px`}#v(){return Math.max(...this.positions)}#S(t){return Math.min(t*this.options.staggerAmount,this.options.staggerAmountMax)}#L(){let t=this.cols;for(this.positions=[];t;)t-=1,this.positions.push(0)}#C(t){const e=this.#w(t);let i=0;for(let s=0;s<t.length;s+=1){const n=t[s],o=()=>{n.applyCss(I.Css.VISIBLE.after)};if(d.equals(n.point,e[s])&&!n.isHidden){n.applyCss(I.Css.VISIBLE.before),o();continue}n.point=e[s],n.scale=I.Scale.VISIBLE,n.isHidden=!1;const r=this.getStylesForTransition(n,I.Css.VISIBLE.before);r.transitionDelay=`${this.#S(i)}ms`,this.#n.push({item:n,styles:r,callback:o}),i+=1}}#w(e){if(this.options.isCentered){const i=e.map((e,i)=>{const s=t.getSize(e.element,!0),n=this.#D(s);return new c(n.x,n.y,s.width,s.height,i)});return this.getTransformedPositions(i,this.containerWidth)}return e.map(e=>this.#D(t.getSize(e.element,!0)))}#D(t){return w({itemSize:t,positions:this.positions,gridSize:this.colWidth,total:this.cols,threshold:this.options.columnThreshold,buffer:this.options.buffer})}getTransformedPositions(t,e){return function(t,e){const i={};
1for(const e of t)void 0===i[e.top]?i[e.top]=[e]:i[e.top].push(e);const s=[],n=[],o=[];for(const t of Object.values(i)){n.push(t);const i=t.at(-1),r=i.left+i.width,l=Math.round((e-r)/2);let h=t,a=!1;if(l>0){const e=[];a=t.every(t=>{const i=new c(t.left+l,t.top,t.width,t.height,t.id),n=!s.some(t=>c.intersects(i,t));return e.push(i),n}),a&&(h=e)}if(!a){let e;if(t.some(t=>s.some(i=>{const s=c.intersects(t,i);return s&&(e=i),s}))){const t=o.findIndex(t=>t.includes(e));o.splice(t,1,n[t])}}s.push(...h),o.push(h)}return o.flat().toSorted((t,e)=>t.id-e.id).map(t=>new d(t.left,t.top))}(t,e)}#z(t=this.#I()){let e=0;for(const i of t){const t=()=>{i.applyCss(I.Css.HIDDEN.after)};if(i.isHidden){i.applyCss(I.Css.HIDDEN.before),t();continue}i.scale=I.Scale.HIDDEN,i.isHidden=!0;const s=this.getStylesForTransition(i,I.Css.HIDDEN.before);s.transitionDelay=`${this.#S(e)}ms`,this.#n.push({item:i,styles:s,callback:t}),e+=1}}#d(t){if(this.isEnabled&&!this.isDestroyed)for(const e of t)Math.round(e.contentRect.width)!==Math.round(this.containerWidth)&&(cancelAnimationFrame(this.#o),this.#o=requestAnimationFrame(()=>{this.update()}))}getStylesForTransition(t,e){const i={...e};return this.options.useTransforms?i.transform=`translate(${this.options.isRTL?"-":""}${this.options.roundTransforms?Math.round(t.point.x):t.point.x}px, ${this.options.roundTransforms?Math.round(t.point.y):t.point.y}px) scale(${t.scale})`:(this.options.isRTL?i.right=`${t.point.x}px`:i.left=`${t.point.x}px`,i.top=`${t.point.y}px`),i}#A(t,e,i){this.#s.waitForTransition(t,t=>{e(),i(null,t)})}#M(t){return e=>{t.item.applyCss(t.styles),this.#A(t.item.element,t.callback,e)}}#F(){this.isTransitioning&&this.#x();const e="number"==typeof this.options.speed&&this.options.speed>0,i=this.#n.length>0;var s;i&&e&&this.isInitialized?this.#N(this.#n):i?((s=this.#n).length>0&&function(t,e){const i=t.map(t=>{const{style:e}=t,i=e.transitionDuration,s=e.transitionDelay;return e.transitionDuration="0ms",e.transitionDelay="0ms",{duration:i,delay:s}});e(),t[0].offsetWidth;for(let e=0;e<t.length;e+=1)t[e].style.transitionDuration=i[e].duration,t[e].style.transitionDelay=i[e].delay}(s.map(t=>t.item.element),()=>{for(const t of s)t.item.applyCss(t.styles),t.callback()}),this.emit(t.EventType.LAYOUT,{type:t.EventType.LAYOUT,shuffle:this})):this.emit(t.EventType.LAYOUT,{type:t.EventType.LAYOUT,shuffle:this}),this.#n.length=0}#N(t){this.isTransitioning=!0,function(t,e,i){i||("function"==typeof e?(i=e,e=null):i=n);let s=t&&t.length;if(!s)return void i(null,[]);let o=!1;const r=new Array(s);for(let i=0,s=t.length;i<s;i++)t[i].call(e,l(i));function l(t){return function(e,n){if(!o){if(e)return i(e,r),void(o=!0);r[t]=n,--s||i(null,r)}}}}(t.map(t=>this.#M(t)),this.#O.bind(this))}#x(){this.#s.cancelAll(),this.isTransitioning=!1}#O(){this.isTransitioning=!1,this.emit(t.EventType.LAYOUT,{type:t.EventType.LAYOUT,shuffle:this})}filter(e,i){this.isEnabled&&(e&&0!==e.length||(e=t.ALL_ITEMS),this.#c(e),this.#z(),this.#p(),this.sort(i))}sort(t=this.lastSort){if(!this.isEnabled)return;this.#L();const e=L(this.#g(),t);this.sortedItems=e,this.#C(e),this.#F(),this.#E(),this.lastSort=t}update({recalculateSizes:t=!0,force:e=!1}={}){(this.isEnabled||e)&&(t&&this.#u(),this.sort())}layout(){this.update({recalculateSizes:!0})}add(t){const e=o(t).map(t=>new I(t,this.options.isRTL));b(e),this.#L();const i=L(this.#y(e),this.lastSort),s=this.#c(this.lastFilter,i),n=this.#w(s.visible);for(let t=0;t<s.visible.length;t+=1){const i=s.visible[t];e.includes(i)&&(i.point=n[t],v(i),i.applyCss(this.getStylesForTransition(i,{})))}for(const t of s.hidden)e.includes(t)&&v(t);this.element.offsetWidth,this.setItemTransitions(e),this.items=this.#y(e),this.filter(this.lastFilter)}disable(){this.isEnabled=!1}enable(t=!0){this.isEnabled=!0,t&&this.update()}remove(e){if(0===e.length)return;const i=o(e),s=i.map(t=>this.getItemByElement(t)).filter(Boolean);T({visible:[],hidden:s}),this.#z(s),this.sort(),this.items=this.items.filter(t=>!s.includes(t)),this.#p(),this.once(t.EventType.LAYOUT,()=>{E(s);for(const t of i)t.remove();this.emit(t.EventType.REMOVED,{type:t.EventType.REMOVED,shuffle:this,collection:i})})}getItemByElement(t){return this.items.find(e=>e.element===t)}resetItems(){E(this.items),this.isInitialized=!1,this.items=this.#h(),b(this.items),this.once(t.EventType.LAYOUT,()=>{this.setItemTransitions(this.items),this.isInitialized=!0}),this.filter(this.lastFilter)}destroy(){this.#x(),this.#r&&(this.#r.unobserve(this.element),this.#r=null),this.element.classList.remove("shuffle"),this.element.removeAttribute("style"),E(this.items),this.items.length=0,this.sortedItems.length=0,this.sizer=null,this.element=null,this.isDestroyed=!0,this.isEnabled=!1}static getSize=u;static ShuffleItem=I;static ALL_ITEMS="all";static FILTER_ATTRIBUTE_KEY="groups";static EventType=p;static Classes=m;static FilterMode=f;static options=g;static Point=d;static Rect=c}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.